Why can rotating a secret break only some running processes?
After this you can answer: Why can rotating a secret break only some running processes?
Say it in 30 seconds
Section titled “Say it in 30 seconds”The deeper answer
Section titled “The deeper answer”There are three separate states: the value in Secrets Manager, the credential accepted by the destination and the value held by each consumer. A mismatch can appear only when a database connection is renewed, making an incident look intermittent.
AWS documents that ECS environment secrets do not update automatically. New tasks retrieve current values. A controlled replacement must preserve serving capacity and verify fresh connections; reading or logging the secret is not a useful diagnostic requirement.
The ticket signingSecret helper caches only successful reads. A transient failed read can be retried, but a successful cached value has no refresh interval. The current token format has no key identifier or multi-key rotation protocol. A future rotation design would retain verification keys for valid issued tickets and define revocation and expiry rules. Do not describe that design as implemented merely because Secrets Manager stores the secret.
Counter-questions
Section titled “Counter-questions”Would adding IAM permissions fix password authentication failures?
Why cache a secret at all?
Can you immediately delete the old ticket key?
Where in MiniTickets
Section titled “Where in MiniTickets”Read the path chapter, select the relevant map piece →, then inspect apps/worker/src/tickets/assets.ts → signingSecret. Work through the related case for a diagnostic example.
Read this book online: https://book.theversehub.in/