PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 5, 2022

[FIXED] How can I safely share environment variables with my team

 November 05, 2022     environment-variables, firebase, github     No comments   

Issue

I want to collaborate on a project with a colleague of mine, so I shared my private GitHub repository with them.

The problem is that my API keys are in an .env file and this .env file is included in the .gitignore file. Because of this, they are not able to access the database and backend (in Google Firebase), which we need them to, so we both can work in the same Firebase project.

Is there any way they can access my Firebase project without the need of me explicitly sharing my API key to them? Or does he have to copy all the API keys and Firebase project information in his own .env file?


Solution

You will need to add them to your Firebase Project. They can then copy the Firebase Config from the settings page into their own .env. It is not possible to generate user specific API keys for Firebase.



Answered By - Rafael Zasas
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing