Class: Kamal::Lint::Checks::SecretInEnvClear
- Inherits:
-
Kamal::Lint::Check
- Object
- Kamal::Lint::Check
- Kamal::Lint::Checks::SecretInEnvClear
- Defined in:
- lib/kamal/lint/checks/secret_in_env_clear.rb
Constant Summary collapse
- SECRET_KEY_PATTERN =
/(\A|_)(KEY|SECRET|TOKEN|PASSWORD|PWD|CREDENTIALS?)(_|\z)/i
Instance Attribute Summary
Attributes inherited from Kamal::Lint::Check
Instance Method Summary collapse
Methods inherited from Kamal::Lint::Check
applies_to?, autofixable, id, #initialize, severity, since, title, until_version
Constructor Details
This class inherits a constructor from Kamal::Lint::Check
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/kamal/lint/checks/secret_in_env_clear.rb', line 14 def call findings = [] scan_env(parsed["env"], [ "env" ], findings) (parsed["accessories"] || {}).each do |name, accessory| scan_env(accessory["env"], [ "accessories", name, "env" ], findings) if accessory.is_a?(Hash) end findings end |