admin管理员组

文章数量:1122832

I am working on a project that generates short-form content for social media platforms. The back end uses Laravel, the front end uses React, and Firebase stores the video assets. Additionally, I use Google Cloud's Text-to-Speech API.

To integrate Firebase and Google Cloud APIs, I downloaded the JSON service account files from Google Console and placed them in my project’s root directory. However, when I push the project to my GitHub repository, these JSON files (containing sensitive credentials) get flagged by Google as exposed, and they are disabled for security reasons.

My question:
Is there a secure way to upload and manage these JSON files on my production server without pushing them to GitHub?

Thank you!

I am working on a project that generates short-form content for social media platforms. The back end uses Laravel, the front end uses React, and Firebase stores the video assets. Additionally, I use Google Cloud's Text-to-Speech API.

To integrate Firebase and Google Cloud APIs, I downloaded the JSON service account files from Google Console and placed them in my project’s root directory. However, when I push the project to my GitHub repository, these JSON files (containing sensitive credentials) get flagged by Google as exposed, and they are disabled for security reasons.

My question:
Is there a secure way to upload and manage these JSON files on my production server without pushing them to GitHub?

Thank you!

Share Improve this question asked Nov 22, 2024 at 19:18 Vusal NovruzovVusal Novruzov 191 silver badge4 bronze badges 4
  • Did you consider sharing them with trusted collaborators outside of the (public) GitHub repo? E.g. on an intranet location, Google Drive, or even a private GitHub repo for such credentials. – Frank van Puffelen Commented Nov 22, 2024 at 19:21
  • I did the last thing that you mentioned. I made my repo private and then pushed my credentials there and immediately received an email from Google that my service account got disabled. – Vusal Novruzov Commented Nov 22, 2024 at 19:24
  • Oh wow, I didn't expect that alert to also apply to private repos.

    本文标签: