Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gen2 functions should fail in the suite when using secret keys in functions.config() instead of Secret Manager #995

Open
70m3n opened this issue Oct 5, 2023 · 0 comments

Comments

@70m3n
Copy link

70m3n commented Oct 5, 2023

The Firebase Emulator Suite is very handy when developing apps using Firebase. So thanks for making it!

I recently updated a Firebase function to gen2. When deploying the function to production it failed because gen2 doesn't support storing secret keys in the functions.config(), part of the firebase-functions package. Instead one has to use Secret Manager in GC and read the values via process.env.

The Firebase Emulator Suite doesn't have the same requirement. It still supports "the old way". Thus, I was unable to detect this error in my code before updating my function in production.

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

No branches or pull requests

1 participant