Skip to content

fix(config): find a plaintext secret at any depth in audit-keys - #3546

Merged
dan-petty merged 2 commits into
mainfrom
fix/2511-audit-keys-nested-secret
Nov 4, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/2511-audit-keys-nested-secret

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The audit scanner of devops config audit-keys examined only <section>.<option> keys. It missed a plaintext service.github_app.private_key and reported the config compliant. The scanner now walks the parsed YAML at any depth and matches the dotted key of each entry against the credential registry. A leak names <path>:<dotted key>.

Closes #2511

Change: openspec/changes/archive/2026-11-04-2511-audit-keys-nested-secret/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/config Settings, OS Keyring, environment variables, and defaults labels Nov 4, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

fail-to-pass (devops ci fail-to-pass --base origin/main): 1 test failed on base: test_config_audit_keys_finds_a_plaintext_secret_at_its_full_dotted_key[section1-service.github_app.private_key]. It passes on the branch. Local devops ci: all jobs passed; the test job was over the 5 minute budget because other agents ran CI on the same host.

@dan-petty
dan-petty marked this pull request as ready for review November 4, 2026 23:38
@dan-petty
dan-petty merged commit 19b740e into main Nov 4, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/2511-audit-keys-nested-secret branch November 4, 2026 23:57
dan-petty pushed a commit that referenced this pull request Nov 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.57.0](v0.56.5...v0.57.0)
(2026-11-04)


### Features

* **review:** one command fetches the osv and trivy databases
([#3543](#3543))
([0d290b4](0d290b4))


### Bug Fixes

* **config:** find a plaintext secret at any depth in audit-keys
([#3546](#3546))
([19b740e](19b740e))
* **roadmap:** one failed item does not suspend the stage row
([#3539](#3539))
([0af847c](0af847c))
* **roadmap:** shorten a long item title before a job needs it
([#3541](#3541))
([910312e](910312e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/config Settings, OS Keyring, environment variables, and defaults type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(config): devops config audit-keys does not find a plaintext secret under a nested key such as service.github_app.private_key

1 participant