firebase-tools-ui icon indicating copy to clipboard operation
firebase-tools-ui copied to clipboard

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

Open 70m3n opened this issue 1 year ago • 0 comments

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.

70m3n avatar Oct 05 '23 08:10 70m3n