Closed tinonetic closed 3 years ago
I found a few problems with this issue:
Is this an advisable way to do it?
Service account files should never be checked into version control.
Your dev environment should make it available to your application via some scripting or automation (or just set it up manually for local testing). In production environments like Cloud Functions, Compute Engine and App Engine, you don't have to do anything extra as the environment will automatically provide app default credentials for you.
Please refer to https://cloud.google.com/docs/authentication/production for more information and best practices on app default credentials.
Hi there,
I am a newbie to the Firebase Admin SDK.
I have gone through the docs on how to configure it for use. We have a CI/CD setup (using Git, Rancher & K8s... also our early attempt).
We know that you are not supposed to commit credentials.
But the documentation says:
I am trying to test setting of the environment in my development environment (Windows).
The recommended way means I should run the following Powershell command:
So that I can initialise as follows:
If I am running this, as advised, then for this to work, I will have to upload my credentials at some point in my CI/CD pipeline right? Is this an advisable way to do it?