Contain access before tidying the evidence
A published credential can authenticate requests until revoked or expired. Replacing the local environment value alone leaves the old credential usable elsewhere. Repositories, build artifacts, screenshots and log aggregation may retain earlier copies, so cleanup and credential invalidation are separate tasks. Keep an incident timeline without reproducing the secret.
What to do next
- 01
Revoke the matching entry
Confirm the name and visible prefix of the compromised key. Record the revocation time and avoid disabling unrelated application credentials without identifying them.
- 02
Restore the legitimate integration
Create a narrowly scoped replacement with an appropriate expiry and monthly cap. Update private server configuration and verify /models before restoring normal generation controls.
- 03
Review account activity
Check usage and known job identifiers around the exposure window. Distinguish your own expected requests, uncertain jobs and unrecognized activity before deciding what needs support review.
A concrete example
Illustrative incident: a deployment log printed the Authorization header. Removing that log from a dashboard is useful cleanup, but the operator also revokes the credential and prevents the header from being logged again.
Before you call it ready
- The exposed key is actually revoked.
- The replacement is absent from public artifacts.
- Recent usage is reviewed without new paid probes.
When to stop or choose another method
If you cannot confidently identify the compromised entry, pause the affected integration and inventory its credentials. Do not leave a known exposure active merely to avoid a configuration change.
