codex/codex-rs/secrets/src
Celia Chen 2347a61d0d Add bounded credential-storage telemetry helpers (#47901)
## 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
History 2026-09-24 18:08:31 +00:00
..
lib.rs Add OAuth credential management for model provider gateways (#46318) 2026-09-17 23:35:32 +00:00
local.rs Add bounded credential-storage telemetry helpers (#47901) 2026-09-24 18:08:31 +00:00
sanitizer.rs Improve bearer token secret redaction (#36908) 2026-08-04 15:14:57 +00:00