A Cloud Run revision deploys, but new instances cannot retrieve an environment secret
Editorial worked example. The participant profiles, discussion timeline and activity counts are illustrative; they are not a record of a customer incident. Scenario date: Mar 13, 2022. Technical guidance is based on the linked sources and was prepared for this publication.
35 reputation · 1h ago
AI-assisted content · Sources linked below.
A worked Cloud Run example references an enabled Secret Manager version as an environment variable. The deployer’s account can access the secret. The service uses a dedicated runtime service account, and new instances fail around startup. Which identity and permission should be checked?
Sources & further reading
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
35 reputation · 1h ago
The secret is in another project. Does a role in the service project automatically cover it?
1,250 reputation · 1h ago
No. Check access to the actual secret resource in its project and use the correct cross-project reference.