Omit cluster secret request bodies from REST debug logs - #959
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-01a0329d-9627-72fe-ad8f-c776efa2f64d Co-authored-by: Lachlan Donald <lachlan@buildkite.com>
There was a problem hiding this comment.
I found no code issues. This changes secret-redaction behavior in the shared debug transport, so it needs human review under the repository's approval policy.
Want to dig deeper?
Paste this into your agent to explore the findings from this review's Buildkite build:
Download the buildsworth logs from build 20206, then answer my questions about the findings.
Install the reading-buildsworth-logs skill to run this.
About buildsworth
Model: gpt-5.6-sol with xhigh thinking.
How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.
Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. Unless repository policy already allows L2 approval, grant it by mentioning @buildsworth-bk (see approval ceiling and L2 approval grant):
- L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
- L2 — Standard risk (new UI, additive API fields, refactors). Approved only when repository policy or a verified grant allows it; otherwise comment-only.
- L3 — High risk (auth, migrations, payments, secrets, perf-critical paths). Human review always required.
Co-authored-by: Lachlan Donald <lachlan@buildkite.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a03277-54a9-75bb-92a3-61efa877ba0b
There was a problem hiding this comment.
One blocking redaction gap remains in the existing malformed-path thread.
Want to dig deeper?
Paste this into your agent to explore the findings from this review's Buildkite build:
Download the buildsworth logs from build 20426, then answer my questions about the findings.
Install the reading-buildsworth-logs skill to run this.
Co-authored-by: Lachlan Donald <lachlan@buildkite.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a03277-54a9-75bb-92a3-61efa877ba0b
Previous concerns have been addressed.
There was a problem hiding this comment.
The URL-delimiter redaction gap is fixed, and I found no new code issues. This still changes secret handling in the shared debug transport, so it needs human review.
Want to dig deeper?
Paste this into your agent to explore the findings from this review's Buildkite build:
Download the buildsworth logs from build 20751, then answer my questions about the findings.
Install the reading-buildsworth-logs skill to run this.
Co-authored-by: Lachlan Donald <lachlan@buildkite.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a03277-54a9-75bb-92a3-61efa877ba0b
There was a problem hiding this comment.
I found no code issues in the latest revision. This changes secret handling in the shared debug transport, so it still needs human review.
Want to dig deeper?
Paste this into your agent to explore the findings from this review's Buildkite build:
Download the buildsworth logs from build 20782, then answer my questions about the findings.
Install the reading-buildsworth-logs skill to run this.
Co-authored-by: Lachlan Donald <lachlan@buildkite.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a03277-54a9-75bb-92a3-61efa877ba0b
There was a problem hiding this comment.
I found no code issues in the latest revision. This changes handling of plaintext secrets in the shared REST debug transport, so it remains above the L1 approval ceiling and needs human review.
Want to dig deeper?
Paste this into your agent to explore the findings from this review's Buildkite build:
Download the buildsworth logs from build 20826, then answer my questions about the findings.
Install the reading-buildsworth-logs skill to run this.
Description
bk --debugdumps REST request bodies to stderr. Cluster secret create and value-update requests contain plaintext secret material, which should never be copied into terminal or CI logs.Changes
Testing
go test ./...)go fmt ./...)Disclosures / Credits
Amp implemented and tested this change under my direction.