Closed maxmarchionda closed 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.
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:
npm install firebase-tools -g
)firebase init
firebase ext:export
. This will add any extensions currently installed on your project to your firebase.json
& extensions/
directoryextensions
section offirebase.json
, add a new entry for an instance of the Algolia search extension, like so:
"extensions": { "my-algolia-instance": "algolia/firestore-algolia-search@0.5.6" }
{instance-id}.env
(in the example above, this will be my-algolia-instance.env
, containing the configuration for the extension. You can reference an already existing secret here.firebase deploy --only extensions
to deploy extensions to your projecthey @maxmarchionda, is the issue resolved?
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:
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.