API key issuance
Each recipient gets their own key (D-2). Run the commands from the root of a rag-sample-app checkout with credentials that can read the infra/roots/<env> Terraform state and call the Data API. <env> is qa or prod.
Issue a key
Section titled “Issue a key”make key-issue ENV=<env> RECIPIENT="<company>" REQUESTS=25 EXPIRES_DAYS=60Send the printed rks_... token to the recipient privately. It is shown once and cannot be recovered. Keys are capped at 1000 requests and 365 days.
Reissue or revoke
Section titled “Reissue or revoke”- Reissue: issue a new key with the same
RECIPIENT, then revoke the old one. Quota and expiry are fixed at issuance. - Revoke:
make key-revoke ENV=<env> ID=<key-id>.make key-list ENV=<env>shows each key’s ID, label, expiry and remaining requests.
When the key-exhausted alarm fires
Section titled “When the key-exhausted alarm fires”rag-sample-<env>-api-key-exhausted fires when a request uses a key’s last request or is denied on an exhausted key. It covers every key and emails only on state changes, so check make key-list ENV=<env> for all keys at 0. Reissue a key if the recipient should get more requests; if the usage looks like abuse, revoke it and check the spend and abuse alerts.
© 2026 Benjamin Arunski