Skip to main content

Module redact

Module redact 

Source
Expand description

Credential scrubbing for a published permission subject (#7948).

Why: an Event::PermissionRequested carries the command an operator is asked to approve, which routinely carries the credential it needs (GITHUB_TOKEN=ghp_... gh pr create). The event reaches every attached client and the session ring buffer, so the credential must not survive. What: redact_subject. Test: permissions::tests::gate_tests::redacts_*.

Functions§

redact_subject
Redact credential-shaped text out of a subject, then bound its length.