A non-root Cloud Run container starts but cannot read its mounted secret file
Editorial Q&A · Published for learning, with scripted participants and replies. Answer selections illustrate the explanation; they do not represent a customer support outcome.
40 reputation · 2h ago
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?
- Environment
- Editorial worked example. See the question for the scenario and assumptions.
1,450 reputation · 2h ago
First identify the path or access mismatch. Keep the non-root design where practical and adjust the supported mount or application configuration deliberately.