Repository navigation
fix(roadmap): the stage gate log names each refused finding - #5441
Conversation
|
Local checks on the head (branch at
Render diff: no Release: the stage job runs in the Service image, so the Scope: the issue text says "for each refused reply", and its Proposed Solution says "the last refused reply". The change logs the findings of the last refused reply, from the same call as the counts line. The |
When the checks refused a stage plan, the log gave only the counts of the gates and the codes of the last refused reply. Item #1976 failed with 10 trace findings, and no log named the paths. So nobody could tell a fault of the plan from a false positive of the trace gate. After the counts line, which does not change, log_gate_returns now logs one "stage gate refused finding" line for each of the first 20 findings of the last refused reply: its place, the count, the gate, the code and the subject. The subject is the path, the tool or the command that the template of the code names (finding_subject). mask_secrets masks it, the line keeps the first 200 characters, and json.dumps quotes it. The line holds no other text of the plan. The stage job runs in the Service image, so the new lines need a release. Closes #5433.
CodeQL (py/clear-text-logging-sensitive-data) takes the value of a call whose name holds secret as a secret, so it gave an alert for the log of the value of mask_secrets. mask_secrets only calls redact_text, so the mask does not change.
3dc1bd0 to
4734fa8
Compare
Check resultsHead commit:
Skipped check: Plan Check |
|
Review fix on head 4734fa8 (rebased on
|
🤖 I have created a release *beep* *boop* --- ## [0.130.0](v0.129.1...v0.130.0) (2026-11-13) ### Features * **k8s:** add RuntimeClass gvisor for the runsc nodes ([#5436](#5436)) ([0d9ffa1](0d9ffa1)) * **roadmap:** make the attempt limits of the failing jobs settings ([#5490](#5490)) ([a13e520](a13e520)), closes [#5440](#5440) ### Bug Fixes * **infra:** a plan shows a skip by a check-mode when as unchecked ([#5442](#5442)) ([499b42c](499b42c)) * **infra:** the apply gate leaves out alerts of offline nodes ([#5478](#5478)) ([3f0d0f0](3f0d0f0)) * **roadmap:** a named fix-plan run can skip the 6-hour wait ([#5459](#5459)) ([94a1999](94a1999)), closes [#5413](#5413) * **roadmap:** a review finding must name a part of the plan ([#5418](#5418)) ([34cdf12](34cdf12)) * **roadmap:** the stage gate log names each refused finding ([#5441](#5441)) ([47b1ec5](47b1ec5)) --- 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>
When the checks refuse a stage plan, the Service logged only the counts of the gates and the codes of the last refused reply. On item #1976 the trace gate refused 10 paths, and nobody could tell if the planner claimed reads that it did not make, or if the gate refused true reads (#4590).
After the
stage gate returns:line,log_gate_returnslogs onestage gate refused finding:line for each of the first 20 findings of the last refused reply: its place, the count of all findings, the gate, the code and the subject. The subject is the path, the tool or the command that the message of the finding names (finding_subject).redact_text, the mask ofmask_secrets, masks it before the line keeps its first 200 characters. The line holds no other text of the plan or of the model. The counts line keeps its fields, so the queries of the shepherd keep their matches.Closes #5433
Change:
openspec/changes/archive/2026-11-13-5433-the-stage-gate-log-names-each/