Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
127 views
in Technique[技术] by (71.8m points)

node.js - Can firebase admin json file be public on github?

I'm doing a use case for an job application. First time using nodejs + firebase. After setting up firebase I see there is an xxxx-firebase-adminsdk.json file which holds among other things, private_key_id and private_key. This is a bit different from what I am used to from react, where I know sharing the firestore config does not bear any issues.

The case is supposed to be shared in a public repository, but I'm pretty certain it's bad practice to expose this file on a public repository, right? The option would be to send it seperate via email or something instead, for them to be able to test the app?

question from:https://stackoverflow.com/questions/66047169/can-firebase-admin-json-file-be-public-on-github

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No never. Anyone can access your database with the xxxx-firebase-adminsdk.json file.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...