A removed domain is released while its route still serves traffic
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- docker, typescript
Piste de recherche
Start with apps/api/src/modules/apps/infrastructure/prisma-application.store.ts and the syncDomains behavior described in the issue. Then trace how the deployment pipeline tracks active releases and route changes, since the fix must coordinate reservation release with route removal. Add a test for removing a domain without redeploying and attempting to claim it from another application; done means the claim is rejected while the route still exists or is switching.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What
Removing a domain from an application's configuration deletes its reservation at once (syncDomains in apps/api/src/modules/apps/infrastructure/prisma-application.store.ts). The release that is still running keeps serving that domain through Caddy until the next successful deployment, and for longer if that deployment fails.
Meanwhile another application of the same organization can claim the domain. The reservation and the live route then name two different applications, and traffic can reach the wrong service.
Found by a security audit of the repository on 8 November 2026, still true on main. The audit reproduced the reassignment at the store level; the full behavior with Caddy has not been tested.
Design question
A reservation should last as long as something can serve the domain. Options:
- Keep the reservation while the active release, or a deployment in progress, still lists the domain; release it when the route is removed.
- Mark it as "releasing" and refuse new claims until the route is gone.
Both need the deployment pipeline to tell the apps module when a route was removed.
Done when
- A domain cannot be claimed by another application while a route for it exists or is being switched.
- A test covers: remove the domain, do not redeploy, try to claim it from another application.
- Langage dominant
- TypeScript
- Étoiles
- 2
- Forks
- 1
- Merge moyen
- 7 h 17 min
- PR mergées (30 j)
- 197
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de shipkeepdev/shipkeep
-
good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
shipkeepdev/shipkeep#295 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue priority:P2 track:control-plane
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
shipkeepdev/shipkeep#212 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue priority:P3 track:web
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
shipkeepdev/shipkeep#144 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue priority:P3 track:control-plane
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
shipkeepdev/shipkeep#143 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue priority:P3 track:control-plane
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
shipkeepdev/shipkeep#142 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de shipkeepdev/shipkeep
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
vercel-labs/ui#540 ·
Les mainteneurs répondent en général sous 1 jour
-
accepted ai-dev ai-implementing
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
livesport/homer#218 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffixOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
figma/code-connect#419 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Negative values skip k/M abbreviation and medium decimal format on line, stacked-area, and tooltipOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
britecharts/britecharts#1255 ·
Les mainteneurs répondent en général sous 1 jour