A non-root Cloud Run container starts but cannot read its mounted secret file
Editorial worked example. The participant profiles, discussion timeline and activity counts are illustrative; they are not a record of a customer incident. Scenario date: May 15, 2025. Technical guidance is based on the linked sources and was prepared for this publication.
40 reputation · 1h ago
AI-assisted content · Sources linked below.
An example container was changed to run as a non-root user. It starts, but reading a mounted Secret Manager file fails. The team verified that the runtime service account has secret access. What should be checked next, and why is this different from an environment-secret startup failure?
Sources & further reading
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
40 reputation · 1h ago
Should we switch the whole application back to root to make it work?
1,450 reputation · 1h ago
First identify the path or access mismatch. Keep the non-root design where practical and adjust the supported mount or application configuration deliberately.