Env credentials
env_credentials
EnvCredentialValueRead
dataclass
A credential environment read whose value is consumed by the module.
Source code in packages/axm-audit/src/axm_audit/core/rules/practices/env_credentials.py
EnvCredentialsRule
Bases: ProjectRule
Detect direct reads of credential values from the environment.
Source code in packages/axm-audit/src/axm_audit/core/rules/practices/env_credentials.py
| Python | |
|---|---|
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
rule_id
property
Unique identifier for this rule.
check(project_path)
Report credential environment reads used as values in source code.
Source code in packages/axm-audit/src/axm_audit/core/rules/practices/env_credentials.py
find_env_credential_value_reads(tree, *, module_path, class_attribute_names=None, class_attribute_names_by_class=None)
Find credential environment reads used as values rather than guards.
Source code in packages/axm-audit/src/axm_audit/core/rules/practices/env_credentials.py
is_credential_env_var(name)
Return whether an environment variable name denotes a credential.
Source code in packages/axm-audit/src/axm_audit/core/rules/practices/env_credentials.py
is_credential_layer_module(module_path)
Return whether a dotted path belongs to the credential layer.