Skip to content

docs: document secret mount path caveat#763

Open
Haihan-Jiang wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Haihan-Jiang:docs-secret-workspace-mount
Open

docs: document secret mount path caveat#763
Haihan-Jiang wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Haihan-Jiang:docs-secret-workspace-mount

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

What

Adds a short deployment note about gcloud functions deploy --set-secrets: do not mount a secret over /workspace, because Cloud Run functions load the deployed source from that directory. The note points users at safer file mount locations such as /etc/secrets or /tmp.

Fixes #696.

Testing

  • git diff --check -- README.md
  • npm ci
  • npm run check (passes with the existing src/function_registry.ts unused-vars warning)
  • npm run compile
  • npx mocha 'build/test/**/*.js' --exclude 'build/test/system-test/**' (105 passing)

I also tried the full npm test; the non-system tests passed, but the pack-n-play system test failed while npm was resolving undici-types@>=7.24.0 <7.24.7 for a temporary package install.

@Haihan-Jiang Haihan-Jiang changed the title Document secret mount path caveat docs: document secret mount path caveat May 26, 2026
@Haihan-Jiang Haihan-Jiang force-pushed the docs-secret-workspace-mount branch from ca8be13 to 86e0300 Compare May 26, 2026 04:49
@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 26, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using gcloud functions deploy --set-secrets=/workspace will trigger an error

1 participant