| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This pull request adds the "run" platform to the list of supported platforms for secrets during deployment validation. Feedback indicates that while this change enables validation, the overall support for secrets on the "run" platform remains incomplete in other parts of the codebase, such as secret updates. Additionally, it is recommended to use a central constant for platform lists to improve maintainability.
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #10489 +/- ##
=======================================
Coverage ? 57.08%
=======================================
Files ? 599
Lines ? 38025
Branches ? 7682
=======================================
Hits ? 21707
Misses ? 14550
Partials ? 1768 ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Wouldn't hurt to add a test, but I think the code change makes sense. Thanks for the update.
Sorry, something went wrong.
I'll add tests now |
Sorry, something went wrong.
…0489) * fix: support secret environment variables for Cloud Run (platform=run) functions * fix: use backend.AllFunctionsPlatforms * lint errors * test: add validation for Cloud Run functions with secret environment variables
| Back | FazBrowse Home | New Git URL |
Dart functions (and any language deploying as Cloud Run services) use platform=run. The secretsSupportedPlatforms allowlist in validate.ts only included gcfv1 and gcfv2, causing deploys with secrets to fail with:
Fix
Add "run" to secretsSupportedPlatforms.
Known limitations
Secret rotation (firebase functions:secrets:set) is not yet supported for Cloud Run functions.
The following code in src/functions/secrets.ts still throws for platform=run:
https://github.com/firebase/firebase-tools/blob/main/src/functions/secrets.ts#L382-L385
Related