Skip to content

fix(rules): ${VAR} / $VAR interpolation is flagged as a hardcoded secret in env, .properties and shell files #617

Closed

Description

@ajianaz

False positives: DB_PASSWORD=${...}, db.password=${DB_PASSWORD}, export X="$VAULT_...". YAML password: ${X} is already fine.

Found by the table-driven secret heuristics tests (src/engine/secret_heuristics_tests.rs, KNOWN_GAPS row group; PR #615, refs #610). Current behaviour is pinned by the table; fix by moving the rows to CASES.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions