You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, the instructions don't mention that one must enable the Secrets product in GCP for your project. Once that is done, the instructions also don't mention the page or a short command on how to set the secret firebase functions:secrets:set when deploying beyond the local emulator (which prompts for the secret).
Lastly, the storing secrets in via the instructions doesn't actually work and appears not supported because of the error: Error: Failed to load function definition from source: Failed to generate manifest from function source: Error: Cannot access the value of secret "APIKEY" during function deployment. Secret values are only available at runtime.
So, if they're only available at runtime, how does one deploy a function at depends on them? Is there an option that is required when running npm run deploy that should be in the linked document on using secret parameters? If so, it should be readily apparent in link above on how to use secret parameters. If not, the section on secret parameters should be omitted as functions that rely on them are non-deployable?
Were you able to successfully deploy your functions?
no
The text was updated successfully, but these errors were encountered:
[REQUIRED] Version info
node:
node v21.4.0
firebase-functions:
13.0.2
firebase-tools:
firebase-admin:
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
Following the instructions at (https://firebase.google.com/docs/functions/config-env?gen=2nd#secret_parameters)
it gives instructions that one can use the secret in your typescript function, not really explaining the caveat about the secret not available at configuration and its implications.
[REQUIRED] Expected behavior
Follow the instructions correctly, and it works.
[REQUIRED] Actual behavior
First, the instructions don't mention that one must enable the Secrets product in GCP for your project. Once that is done, the instructions also don't mention the page or a short command on how to set the secret
firebase functions:secrets:set
when deploying beyond the local emulator (which prompts for the secret).Lastly, the storing secrets in via the instructions doesn't actually work and appears not supported because of the error:
Error: Failed to load function definition from source: Failed to generate manifest from function source: Error: Cannot access the value of secret "APIKEY" during function deployment. Secret values are only available at runtime.
So, if they're only available at runtime, how does one deploy a function at depends on them? Is there an option that is required when running
npm run deploy
that should be in the linked document on using secret parameters? If so, it should be readily apparent in link above on how to use secret parameters. If not, the section on secret parameters should be omitted as functions that rely on them are non-deployable?Were you able to successfully deploy your functions?
no
The text was updated successfully, but these errors were encountered: