Skip to content

Commit

Permalink
add comment re api key and github secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Apr 3, 2024
1 parent 95a3fd1 commit 69a31dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ const productionDB = "https://cioos-metadata-form.firebaseio.com";
const devDB = "https://cioos-metadata-form-dev.firebaseio.com";

const config = {
// see https://console.cloud.google.com/apis/credentials?project=cioos-metadata-form
// and https://console.cloud.google.com/apis/credentials?project=cioos-metadata-form-dev
// for api key location which is then stored in a github secret and added to several
// github actions to support testing and deployment.
// see https://firebase.google.com/docs/projects/api-keys for a discussion of why we
// don't need to restrict api keys for firebase but might in some situations.
// To prevent the future foot gun, we are restricting the key now.
apiKey: process.env.REACT_APP_GOOGLE_CLOUD_API_KEY,
authDomain: "cioos-metadata-form.firebaseapp.com",
databaseURL:
Expand Down

0 comments on commit 69a31dc

Please sign in to comment.