Lion Cipher Lab

Manage service accounts and API keys safely (mint, scope, use, rotate, revoke)

Why it matters

Not every login is a human typing a password. Software constantly needs to prove who it is to OTHER software -- a script pulling data from a service, a deploy pipeline pushing code, a backup job talking to storage. The credentials that let one machine or program authenticate to another are called NON-HUMAN credentials, and they come in a few flavors you will hear constantly: an API key (a secret string a program sends to identify itself to a service's Application Programming Interface -- the doorway other programs call), a token (a similar secret string, usually scoped and time-limited, that…

What you'll learn

Steps in this lab

  1. Learn the words: API key, token, service account, scope, least privilege
  2. First, the safety rules for this lab
  3. Pick (or create) the ONE repository this token will be allowed to touch
  4. Mint a scoped, expiring token: the exact click path
  5. Open your terminal and store the token in an environment variable
  6. USE the token: make a real authenticated API call
  7. Understand storage: why the token must never live in your code
  8. ROTATE the token: issue a fresh one, retire the old
  9. REVOKE both tokens and PROVE they are dead
  10. Make it a habit, and where to go next

Open the full interactive lab →