algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Algolia API Key: creation failure #86

Closed maxmarchionda closed 2 years ago

maxmarchionda commented 2 years ago

I would like to use this extension, however my organization at work has put in restrictions around where secrets can be created in the Google Secret Manager so simply creating a secret using this extension fails:

Error: HTTP Error: 400, Constraint constraints/gcp.resourceLocations violated for [redacted] attempting to create a secret in [global]. For more information, see https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations.

A solution to this problem would be to allow myself to create the secret ahead of time and skip this step. Interested in hearing your thoughts.

smomin commented 2 years ago

Hey Max,

It may look like this would be a conversation with the Firebase team who is managing the Extension installation and configuration flow. I would recommend talking to them first.

joehan commented 2 years ago

Hey @maxmarchionda - Joe from the Firebase Extensions team here. Thanks for the suggestion, we will definitely consider adding support for this to our console install flow.

Fortunately, you can do this today! You can use existing secret if you deploy the extension via firebase deploy. Docs for the feature can be found here: https://firebase.google.com/docs/extensions/reuse-project-config - for your specific case, I recommend doing the following:

smomin commented 2 years ago

hey @maxmarchionda, is the issue resolved?