fix(firestore-send-email): kit/extension parity – a required placeholder SMTP_PASSWORD overrides the password in SMTP_CONNECTION_URI
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- firebase, typescript
- Ambito
- authentication, backend
Direzione di ricerca
Start with kits/firestore-send-email/src/helpers.ts around lines 93–99 and compare its SMTP password handling with the extension helper at functions/src/helpers.ts around lines 61–68. Read the kit README section around lines 157–169 and inspect the migration and secret binding references in the issue. Done means a kit migrated from a URI with an inline password can send successfully, with the intended behavior documented or covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
firestore-send-email kit/extension parity. Priority: high. After migrating, every email fails to send if the SMTP password was kept in the connection URI.
Difference
- Extension:
SMTP_PASSWORDis optional. Installs that put the password inSMTP_CONNECTION_URI(the "backwards compatible" form in the param's description) have no secret, and the URI's password is used. - Kit:
- All four secrets are always bound, so
SMTP_PASSWORDmust exist and must not be empty.ext:migrateandfunctions:kits:installprompt for it, and Secret Manager rejects an empty value. - Any non-blank value then replaces the URI's password, the same as in the extension.
- Users who enter a placeholder (the README recommends placeholders for the unused secrets) get an authentication failure on every send. A placeholder also adds auth to SMTP relays that need none.
- All four secrets are always bound, so
Reproduced
- Extension installed with
SMTP_CONNECTION_URI=smtp://user:[email protected]:587and noSMTP_PASSWORD: mail sends (SUCCESS). firebase ext:migrateon that instance: it prompts "Enter a value for SMTP password". An empty answer fails withSecret Payload cannot be empty, so "placeholder" was entered.- The migrated kit fails every document with
delivery.error: "Error: Invalid login: 535 Authentication failed". A README-setup kit with the same URI and a placeholder secret fails the same way. - Setting the secret to a single space works around it: the kit trims it to unset, and mail sends.
Code
- Extension:
- extension.yaml#L212-L244 (URI with an inline password, and
SMTP_PASSWORDwithrequired: false) - helpers.ts#L61-L68
- extension.yaml#L212-L244 (URI with an inline password, and
- Kit:
- all four secrets bound: index.ts#L70, #L114, config.ts#L307-L312
- the override: helpers.ts#L93-L99
- the trim: export-config.ts#L95-L98
- README: README.md#L157-L169
Resolution
- Only use
SMTP_PASSWORDwhen the URI carries no password of its own. That is a behaviour change only for configs that set both. - Or, at a minimum, document in the README and the migration notes: move an inline password into
SMTP_PASSWORD, or set that secret to a single space.
- Lingua principale
- TypeScript
- Stelle
- 979
- Fork
- 436
- Merge medio
- 2g 13h
- PR unite (30g)
- 18
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/extensions
-
fix(firestore-send-email): kit/extension parity – ext:migrate truncates settings containing #Apertakits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
firebase/extensions#3303 ·
I maintainer di solito rispondono entro 1 giorno
-
kits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
firebase/extensions#3301 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation kits parity
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
firebase/extensions#3300 ·
I maintainer di solito rispondono entro 1 giorno
-
kits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
firebase/extensions#3296 ·
I maintainer di solito rispondono entro 1 giorno
-
kits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
firebase/extensions#3294 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di firebase/extensions
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
LucasSantana-Dev/Lucky#2951 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2567 ·
I maintainer di solito rispondono entro 9 giorni
-
refactor(react-pi): classify base64 images with core's parseBase64Forse già presa @jimmyallinai l’ha presa oggi. Apertamaintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
assistant-ui/assistant-ui#10293 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
brijeshb42/monaco-vim#175 ·