Tuesday, October 27, 2026 Today’s Paper
Log in Join free
Vol. I · No. 28 Texas Edition
Tuesday, Oct 27
Texas first. Then the world.
Always free Updated 4 minutes ago
Read. React. Discuss.
Tech

GCP Secret Manager, Live-Reloaded in Go With mamori

By Xavier Portilla Edo 1 min read 6 views 0 comments
GCP Secret Manager, Live-Reloaded in Go With mamori
Image: DZone

Google Cloud Secret Manager has a clean, opinionated model: a secret is a container, and inside it live immutable, numbered versions. You never edit a version — you add a new one (1, 2, 3, …) and, when it's ready, you move traffic to it, usually by resolving the latest alias (or by disabling the old version).

It's a genuinely good design. But it collides with how most Go services consume secrets: you call AccessSecretVersion("latest") exactly once, at startup, and cache the result. From that moment your process is pinned to whatever latest meant at boot. Add version 4, disable version 3, and your service happily keeps using 3 until someone restarts it — which, at best, is a scheduled redeploy and, at worst, an incident when the disabled version stops resolving.

DZone Original story · dzone.com
Read the full story

Discussion (0)

No comments yet. Start the conversation!