Prevent a retry from issuing multiple replacement credentials
The rotation response is lost and a retry creates another active successor that the customer never receives.
- Focused work estimate
- 3h 30m + prerequisites
- Priority in the scenario
- Medium
- Engineering practice
- Idempotency · Credential lifecycle
Estimated field mix
- Security60%
- Backend40%
Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.
Review it, then add it to your workspace.
The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.
Project context
A fictional B2B export API uses long-lived tokens. Tokens copied between organizations can access too much, and revocation takes effect unpredictably.
Setup prerequisites
- Create a local synthetic API and two isolated organizations.
- Use generated disposable credentials only.
Preceding work
Complete these dependencies, or supply their agreed outputs before taking this ticket.
- ATOKEN-101 · Define token scopes as an explicit allowlist of export operations
- ATOKEN-102 · Store only token verification material and a safe display prefix
- ATOKEN-103 · Bind API token queries to the issuing organization
- ATOKEN-104 · Enforce token expiration at the request authorization boundary
- ATOKEN-105 · Rotate a token with a bounded overlap window
- ATOKEN-106 · Make revocation override cached authentication results
Acceptance criteria
- Bind rotation idempotency to actor, predecessor and requested scope.
- One successful command creates one successor.
- Changed rotation parameters under the same key conflict.
Implementation constraints
- Store only a bounded issuance response under the declared secret-handling policy.
Verification to include
- Retry a completed rotation and count one successor.
- Reuse its key with broader scopes and verify rejection.
Deliverables
- Idempotent rotation transaction
Rollout and recovery
Enable rotation retries with a short documented response lifetime; revoke orphan test tokens during recovery.
Value of the work
For the engineer: Practice authorization boundaries, credential lifecycle and safe diagnostics.
For the team: Review denial paths and operational control over service access.
Evidence boundaries
Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.
Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.