Skip to content

Add bounded credential-storage telemetry helpers - #47901

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/18e7201566a3b09061a6014fd6bd90eae96e3fc2
Sep 24, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/18e7201566a3b09061a6014fd6bd90eae96e3fc2

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Add bounded credential-storage telemetry helpers

What changed

  • Add StorageTelemetry to record operation counts, durations, secure-store outcomes, and file fallback reasons using bounded labels. Emit fallback warnings without credential payloads or error text.
  • Add task-local client attribution with explicit propagation across task boundaries.
  • Preserve typed keyring error causes through std::io::Error and the local secrets backend, classifying supported native failures without parsing error messages.
  • Remove service names, account names, value lengths, and error text from keyring trace logs.

Testing

Add tests for buffered metric emission, fallback outcomes, exclusion of sensitive error contents, client attribution isolation, and typed native error classification.

## What changed

- Add `StorageTelemetry` to record operation counts, durations, secure-store outcomes, and file fallback reasons using bounded labels. Emit fallback warnings without credential payloads or error text.
- Add task-local client attribution with explicit propagation across task boundaries.
- Preserve typed keyring error causes through `std::io::Error` and the local secrets backend, classifying supported native failures without parsing error messages.
- Remove service names, account names, value lengths, and error text from keyring trace logs.

## Testing

Add tests for buffered metric emission, fallback outcomes, exclusion of sensitive error contents, client attribution isolation, and typed native error classification.

GitOrigin-RevId: 18e7201566a3b09061a6014fd6bd90eae96e3fc2
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/18e7201566a3b09061a6014fd6bd90eae96e3fc2 branch from 61fa700 to 2347a61 Compare September 24, 2026 18:08
@copyberry
copyberry Bot merged commit 2347a61 into main Sep 24, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/18e7201566a3b09061a6014fd6bd90eae96e3fc2 branch September 24, 2026 18:08
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant