Disable and revoke secret access¶
You end up with a binding or integration revision that no project can start using, or, in an emergency, one that no project can use at all, starting immediately. Disable stops new use and lets running work finish. Revoke stops all use at once and cannot be undone.
Prerequisites¶
- For a binding: the
owner,adminordeveloperrole in the workspace. - For an integration: the organization
owneroradminrole. - The revision number, from
describe.
Disable a binding revision¶
xratu config set organization acme
xratu config set workspace payments
xratu secret describe binding customer-facing-model
REASON="moving to the new payments vault path"
xratu secret disable binding customer-facing-model 2 "$REASON"
Example output:
Revoke in an emergency¶
REASON="credential exposure, incident 4471"
xratu secret revoke binding customer-facing-model 2 "$REASON"
xratu secret revoke integration corp-vault-production 3 "$REASON"
The next fetch under a revoked revision is refused, including for work already running. If the integration lets its XSRP gateways work briefly through a control-plane outage, permissions issued just before the revoke stop working when they expire, a short time set by the integration; an integration that requires live checks has no delay.
Revoking in Xratu stops projects from using the credential. Rotate or disable the credential itself in your secret manager as well.
Verify¶
The binding shows Revoked, and check project lists the consumers that
used it. Map them to a new binding with
Configure project auth and deploy the project
again.
When it fails¶
| You see | Cause | Fix |
|---|---|---|
| Refused: wrong state | Disable works on Active revisions; revoke works on any revision except Revoked |
Check the state with describe |
| Refused: reason missing | Disable and revoke need a reason, for the audit log | Add the reason as the last argument |
| Cannot activate a disabled revision | A disabled revision stays disabled | Apply and activate a new revision |
What changed¶
The revision is Disabled or Revoked, with your reason in the audit log.
Projects mapped to it cannot be deployed again until they are mapped to
another binding; after a revoke, running work is refused too.