firebase / extensions

Source code for official Firebase extensions
https://firebase.google.com/products/extensions
Apache License 2.0
882 stars 372 forks source link

🐛 [[Trigger Email]] SMTP password "There was an error creating a secret" #1985

Open Spitzbua opened 3 months ago

Spitzbua commented 3 months ago

[READ] Step 1: Are you in the right place?

Extension name: firestore-send-email Extension version: 0.1.31

[REQUIRED] Step 2: Describe your configuration

SMTP-Password cannot be set

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I am trying to configure the extension. I am assuming that I am supposed to enter my SMTP password into the field for it and then click "Create secret", but when I click the button, a small box pops up saying: "There was an error creating a secret".

I see the same error whether on the initial install attempt or if I install the extension and try to add the password via Manage Configuration later.

Expected result

The secret is successfully created and used by the extension

Actual result

Although i am the owner of the project following errors occur:

{ "error": { "code": 403, "message": "Permission 'secretmanager.secrets.setIamPolicy' denied for resource 'projects/471113337/secrets/firestore-send-email-SMTP_PASSWORD-tdy9' (or it may not exist).", "status": "PERMISSION_DENIED" } }

I tried manually creating the secret but it wont be picked by the extension.

pr-Mais commented 1 month ago

@Spitzbua are you still seeing this issue? is your project part of an organization which perhaps has some rules restricting the creation of secrets?