Skip to content

Resolve a secret use that requires approval

You end up with an approved, time-bounded exception for one secret use that policy holds for review, and a project that admits once the exception is recorded. Use it when check project reports a consumer whose use policy requires approval.

Prerequisites

  • The project's auth.xratu maps the consumer.
  • An approver with effective approval.decide: an owner, admin or operator, other than the requester when the operation is marked sensitive.

1. Find the consumer waiting for approval

xratu config set organization acme
xratu config set workspace payments
xratu secret check project ./refunds

Example output:

consumer       charge-payment / stripe.charge@2.3.1 / charge / api_key
binding        stripe-production
use policy     ApprovalRequired

2. Request and decide the exception

Request an exception that names the consumer's use, its purpose and the time it is needed for, and have an approver decide it. Which approval interface records decisions for secret use is an open design decision; the approver needs approval.decide, and the exception falls inside the integration's scope.

3. Verify and apply

xratu secret check project ./refunds
xratu apply -f ./refunds

The consumer's use policy shows Active once the approval is recorded, and the project deploys.

What an approval covers

An approval lets one named use go ahead for a limited time, within what the integration allows. Everything else applies as usual: the node's identity, revocation, coverage and the record of every fetch. See Break-glass authority.

What changed

The consumer's use policy is Active, the approval is in the audit log, and the deployed project can use the credential until the approval's time limit ends.