fix(firestore-send-email): kit/extension parity – a required placeholder SMTP_PASSWORD overrides the password in SMTP_CONNECTION_URI
Los mantenedores suelen responder en 7 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 56/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- firebase, typescript
- Área
- authentication, backend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 979
- Forks
- 436
- Merge medio
- 4 d 12 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de firebase/extensions
-
fix(firestore-send-email): kit/extension parity – ext:migrate truncates settings containing #Abiertokits parity type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
firebase/extensions#3303 ·
Los mantenedores suelen responder en 7 días
-
kits parity type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
firebase/extensions#3301 ·
Los mantenedores suelen responder en 7 días
-
documentation kits parity
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
firebase/extensions#3300 ·
Los mantenedores suelen responder en 7 días
-
kits parity type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
firebase/extensions#3296 ·
Los mantenedores suelen responder en 7 días
-
kits parity type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
firebase/extensions#3294 ·
Los mantenedores suelen responder en 7 días
Todos los issues de firebase/extensions
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
formbricks/formbricks#9918 ·
Los mantenedores suelen responder en 1 día
-
Chat: Resize question overlayAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
thecodacus/pithagoras#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
openclimatefix/quartz-frontend#823 ·
Los mantenedores suelen responder en 4 días
-
area:agent-manager community needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
`contacts.create` posts to `/audiences/undefined/contacts` when `audienceId` is undefinedPosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
resend/resend-node#1176 ·
Los mantenedores suelen responder en 1 día