Why do Cloud Run instances see different values when an environment secret uses latest?
Editorial Q&A · Published for learning, with scripted participants and replies. Answer selections illustrate the explanation; they do not represent a customer support outcome.
50 reputation · 2h ago
A fictional service exposes a secret through an environment variable using latest. After rotation, older instances keep working with the previous credential while newly started instances use the new one. The application team expected an immediate, simultaneous update. What deployment approach gives a more predictable result?
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
1,100 reputation · 2h ago
No. The mounted mechanism and the application’s read behavior are separate. If the process caches the file contents, it needs an explicit refresh strategy.