fix(firestore-send-email): kit/extension parity – kit uninstall leaves the function running or its secrets behind
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 51/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- firebase, typescript
Direzione di ricerca
Start with the kit README at kits/firestore-send-email/README.md#L49 and #L85-L90, then inspect firebase-tools' commands/functions-kits-uninstall.js, which the issue identifies as the source of the behavior. Compare uninstall handling for plain .env and .env.<project> files and check how kit secrets and IAM bindings are cleaned up. Done means the README’s documented uninstall layout no longer leaves the function or secrets behind, or clearly explains the required cleanup.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
firestore-send-email kit/extension parity. Priority: medium. Uninstalling a kit set up the way the README describes leaves the function running and still sending mail. A successful uninstall also leaves the instance's secrets behind.
Difference
- Extension: deleting the instance removes the function, the service account, its IAM bindings and its managed secrets.
- Kit (
firebase functions:kits:uninstall --instance <id>, firebase-tools 15.31.0):- Plain
.env(the README's Usage layout): the command exits 0 and removes the instance fromfirebase.json, but deletes nothing. It warns only that the config folder "still contains files (.env)". The function stays deployed and keeps processing the mail collection. - Any other
.env.<x>file in the folder (for example.env.bak): the command fails withInstance at … contains no .env file for current project. - With
.env.<projectId>: the function and service account are deleted, but the fourkit-<id>-*secrets stay in Secret Manager (one holds the SMTP password), along with fourdeleted:serviceAccount:…IAM bindings.
- Plain
Reproduced
- Plain
.env: uninstall exited 0, the instance leftfirebase.json, andkit-sepeu-processQueuestayedACTIVE. - With
.env.corie-testing: the function and service account were deleted.kit-sepmig2-{SMTP_PASSWORD,CLIENT_ID,CLIENT_SECRET,REFRESH_TOKEN}and four dangling project IAM bindings remained. - Extension: deleting the instance left no function, service account or IAM binding.
Code
- Kit README tells users to configure with
.env: README.md#L49, #L85-L90 - The behaviour itself is in firebase-tools
commands/functions-kits-uninstall.js(only.env.<project>files are acted on; secrets are not deleted).
Resolution
Same as #3262 for delete-user-data:
- the CLI should also act on a plain
.env, or refuse with a clear error; - it should offer to delete the
kit-<id>-*secrets.
Until then, the README should say to use .env.<projectId> and to delete the secrets by hand.
- Lingua principale
- TypeScript
- Stelle
- 979
- Fork
- 436
- Merge medio
- 4g 12h
- PR unite (30g)
- 13
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 7 giorni
-
kits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
firebase/extensions#3301 ·
I maintainer di solito rispondono entro 7 giorni
-
documentation kits parity
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
firebase/extensions#3300 ·
I maintainer di solito rispondono entro 7 giorni
-
kits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
firebase/extensions#3296 ·
I maintainer di solito rispondono entro 7 giorni
-
kits parity type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
firebase/extensions#3294 ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di firebase/extensions
Issue simili
-
needs investigation
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Makefile names visualizer gate targets that do not exist; the TS packages have no test runnerApertaarea:visualizer tech-debt
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 66/100
jmbarzee/temporal-architect#292 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
riverqueue/river#1576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
colbymchenry/codegraph#3228 ·
I maintainer di solito rispondono entro 1 giorno