API Key and Token Service · View 08 of 22 · Act 3 · Structure
The critical absence
- There is no edge on this page to the credential store. A cold read to Spanner on the request path is the failure this design exists to prevent, and it would appear first as a latency regression and later as a correlated outage.
- The pepper is cached in the sidecar by version, so KMS being unreachable stops issuance and not verification.
Open question
- Full projection or demand-filled cache? A full replica of 2.5 million records is roughly 400 MB per point at the assumed record size — affordable for a few hundred fleet-wide sidecars, not for a few thousand. The set assumes full projection and names the memory ceiling as the trigger to revisit.
Risks
- Constant-cost miss handling matters: a faster "not found" than "found" leaks which key identifiers exist.
- The remote verification API is the escape hatch for thin clients and is the one place a network hop returns. It is bounded at p99 ≤ 15 ms and is not the intended path.