Skip to content

contextzip 0.6.2 — secrets in Spring Boot config are always redacted

Choose a tag to compare

@akadeepesh akadeepesh released this 05 Nov 18:48
· 12 commits to main since this release

Security

  • Secrets in Spring Boot config files are always redacted.
    application.properties and application.yml (with profile variants
    such as application-prod.yml, and bootstrap.*) are included because
    the AI needs your configuration, but they often hold live database
    passwords and signing secrets as plain values that the opt-in
    limits.redact_secrets scan didn't catch. Now, whatever that setting
    says, the value of every password, secret, token, credentials, API-key
    and private-key setting becomes [REDACTED], as does a password inside
    any URL (jdbc:postgresql://app:[REDACTED]@db/app, ?password=).
    ${ENV_VAR} references are kept; a fallback such as
    ${DB_PASSWORD:hunter2} is redacted. Multi-line YAML values and
    ISO-8859-1 .properties files are handled. This covers normal runs,
    --git-changes, the MCP server and contextzip watch, and apply-zip
    keeps your real values when the file comes back.