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

Firebase Functions should use process.env.SECRET_KEY #22

Open
asharonbaltazar opened this issue Sep 13, 2022 · 0 comments
Open

Firebase Functions should use process.env.SECRET_KEY #22

asharonbaltazar opened this issue Sep 13, 2022 · 0 comments
Labels
enhancement New feature or request functions Issue pertaining to functions backend

Comments

@asharonbaltazar
Copy link
Owner

Firebase Functions are using the config to access secret API keys. According to the Firebase docs, not only is this the outdated way of accessing environment variables, but it's also insecure for sensitive API keys. Firebase ships with Secret Manager to allow us to securely access our secrets.

Have the functions use runWith and process.env. to access the API keys.

@asharonbaltazar asharonbaltazar added enhancement New feature or request functions Issue pertaining to functions backend labels Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request functions Issue pertaining to functions backend
Projects
None yet
Development

No branches or pull requests

1 participant