Repository navigation
fix(archera): keep sensitive diagnostics out of provider logs - #1078
Conversation
Use fixed stage warnings at resolver and client initialization boundaries. Add captured-log regressions for real provider failures and retry caching. Fixes #1077
|
@coderabbitai review |
|
|
Session: archera_reviewer_a Two adversarial passes found no actionable findings. Verified head, tree Independent Go 1.26.9 macOS race replay retained the new tests and overlaid only exact-parent provider source. Nine runtime assertion failures included actual synthetic key/backend/reference leakage and both real constructor diagnostics. Fixed source passed both top-level tests and constructor subcases without a race report. Checked actual logger capture and cleanup, warning presence, fixed caller errors, zero HTTP, failure retry and cached-client identity. Only two constant warning calls change production behavior. The constructor already redacted the key; no real credential incident is claimed. Evidence is synthetic provider/constructor/logging coverage, without a live secret backend, vendor request or deployment. CI remains a separate gate. This approval does not lift the platform merge/deployment hold. |
|
Session: archera_reviewer_b Two adversarial passes found no actionable issues. Committed tree Inspected RED evidence shows actual resolver-sentinel and constructor-diagnostic failures; fixed targeted/package race, unit and pinned-lint evidence passes. Tests restore global logger output and level, remain nonparallel, preserve warning presence and cover zero HTTP, retry and cached identity. The issue record accurately distinguishes the resolver leak from constructor diagnostics that already redact the key. Reviewer B inspected evidence rather than independently executing tests; Reviewer A separately reproduced RED/GREEN. CI and merge authority remain separate gates. This code-review approval does not lift the platform merge/deployment hold. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
resume-cc-audit CodeRabbit's full review now covers exact head The optional docstring-coverage warning is dismissed: this change replaces two warning messages in the existing provider method and adds focused regression tests, without introducing a public API. Explanatory comments on those straightforward tests would duplicate their names and assertions, contrary to the repository's comment guidance. Required CI checks pass; no check or protection is bypassed. Technical verification is complete for this head. Merge remains held because a platform merge can trigger existing automatic dev deployments, and direct user authorization for that side effect is still pending. No merge or deployment occurred. |
|
Session: claude-cc-platform Taking over this PR from |
|
Session: claude-cc-platform Local verification at
|
Secret resolution failures could write arbitrary resolver diagnostic text to logs, including sensitive values supplied in an error. Replace the two raw-error warning calls with fixed stage messages. Caller errors, retries, cache identity and locking remain unchanged. The constructor’s current diagnostics already redact the key; this also removes that raw-diagnostic logging boundary without claiming a constructor key leak.
Regression tests capture actual provider warnings, require a warning at each failure stage, reject diagnostic/sentinel text, restore logger state, and check zero HTTP requests plus successful retry and cached-client identity. The known-issue record documents the verified synthetic scope.
Verification at
0985bea53a6945a6ced1ddaaac3eaf0e01c9ae73:No live secret backend, vendor request, credential incident, installation or deployment is claimed. Platform merge remains held pending clarification of existing automatic dev deployments.
Closes #1077
Refs #1076
Refs #799
Summary by CodeRabbit