opentrace-community / opentrace-cloud-functions

OpenTrace Cloud Functions. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
273 stars 121 forks source link

Add 'project number' to config #25

Closed rburhum closed 4 months ago

rburhum commented 4 years ago

When creating firebase projects inside an organization and then using the SecretManager of GCP, the project-id does not always match the project id. More often than not, you will get a project number. In these cases, getEncryptionKey is not finding the encryption key because the path does not match it. You need to specify a projectNumber instead. This configuration allows you to specify the number from GCP so the key can be found