PLAIN/TEXT — ISSUE 269/456 COMPUTER SCIENCE · FOUNDATION / SHORT-LIVED CREDENTIALS · ~4 MIN READING DATE: 2027-06-27 ARCHIVE: https://plaintext.click/newsletter/ SUBJECT: Why a server should borrow a key, not keep one Why a server should borrow a key, not keep one ============================================== / START HERE A program may need to read stored orders while it runs. A credential is a value the receiving service checks as evidence that a request may use particular access. A short-lived workload credential is a temporary access value issued to a running program and rejected after its permitted time. The program needs a way to obtain fresh access automatically, rather than keeping one permanent secret in its code. / WHY NOW Copying application code should not also copy a permanent password to live orders. Giving the running program narrowly limited, expiring access reduces that exposure, but makes reliable renewal part of keeping the service working. / THE IDEA A workload is a running application or background job. Its workload identity identifies that program to another system. A hosting platform can supply protected evidence of that identity, so merely claiming the name order-reader is not enough to obtain its access. An issuer is a service that checks this evidence and creates an allowed credential. The program requests only the access its task needs and receives it through a protected route. A maintained helper can request fresh credentials before the current ones expire, avoiding a permanent password embedded in files or deployment instructions. Expiry must be enforced where the credential is accepted. Some credentials carry protected expiry information the receiver validates; others require the issuing system to disable access in the receiving service. A stored countdown alone does not make an access value stop working. / THE FORMAL IDEA expiry time = issue time + lifetime; accept only while current time < expiry time - All times in this toy calculation are minutes measured from the same starting instant. - The less-than sign means before, not equal to. Identity, permission and credential-validity checks must also pass; the time comparison is only one required condition. / RUN THE TINY EXAMPLE Change one thing. Predict what happens. At minute 0, a verified order-reading worker receives credential K with lifetime 10 minutes: expiry = 0 + 10 = 10. A permitted request at minute 5 succeeds because 5 < 10. The same request with K at minute 11 is denied because 11 is not less than 10. Change only lifetime to 2 minutes: expiry = 0 + 2 = 2; now the minute-5 request is denied too. Shortening the lifetime moved the rejection earlier without waiting for someone to discover a copied credential. To keep working, the legitimate program must obtain a fresh valid credential. The ten- and two-minute values illustrate the rule; they are not promised settings for every service. / SO WHAT? There is an availability tradeoff. If the issuer becomes unreachable, a program may be unable to refresh. An accepting service that validates existing credentials independently may keep accepting K until minute 10, but the program then loses that route. Test issuer outages and refresh failures rather than silently falling back to a permanent, broader credential. / ONE CAVEAT Expiry ends access on a planned schedule; revocation withdraws it earlier. Neither guarantees that an existing connection ends immediately: receiving-system enforcement matters. A compromised running program may also misuse valid access or keep requesting new credentials until its identity or permissions are disabled. / KEEP THIS Short-lived access limits the lifetime of a copied credential only when receivers enforce expiry and legitimate workloads can reliably obtain fresh credentials. / SOURCE TRAIL [1] AWS — IAM roles and application credentials https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html [2] AWS — Temporary security credentials https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html [3] HashiCorp Vault — Lease, renew and revoke https://developer.hashicorp.com/vault/docs/concepts/lease NEXT: How a magnet can tell two isotopes apart --- HARD IDEAS. PLAIN TEXT. You are receiving this because you asked for one clear computer-science or physics idea each day. Unsubscribe: https://plaintext.click/unsubscribe View in browser: https://plaintext.click/newsletter/2027/06/2027-06-27-secrets-management-lifecycle.html From: Plain/Text / Brickston Consulting · 30 N Gould St Ste N, Sheridan, WY 82801 US · knowledge@plaintext.click