Startup safety checks run only in Production, and two unsafe defaults ship switched on
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start with DependencyInjection/ProductionStartupChecks.cs, PublicOriginCheck.cs, and UnencryptedKeyRingCheck.cs, then read docs/host-configuration.md and the named OpenAPI cache policy and .env.example entries. Check the existing tests around the environment gate and cache policy. Done means checks run outside Development, both opt-ins are off by default, and OpenAPI caching is shared across Host values with a relative server URL when no origin is configured.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
- Startup safety checks run only in
Production.DependencyInjection/ProductionStartupChecks.cs:19returns unlessIsProduction();PublicOriginCheck.cs:11andUnencryptedKeyRingCheck.cs:11gate again.docs/host-configuration.md:195documents it. A Staging or custom-named environment starts with noPublicOrigin, a generated signing key and an unencrypted key ring, and builds reset links from a forged Host (Api/Account/ForgotPasswordModel.cs:23). .env.exampleships two unsafe opt-ins switched on.src/FluentCMS.Host/.env.example:20-21setFLUENTCMS_ALLOW_GENERATED_SIGNING_KEY=trueandFLUENTCMS_ALLOW_UNENCRYPTED_KEY_RING=true; compose defaults both to false.- The OpenAPI document is cached per Host value.
Api/OpenApi/OpenApiDocumentCachePolicy.cs:27-35varies by host for one day when no public origin is set. Forged hosts each cost a document build and evict other entries of the shared output cache.
Paths are under src/FluentCMS.Core/ unless they start with src/ or docs/.
Proposal
- Enforce the checks in every environment except
Development; updatedocs/host-configuration.md. - Ship the two opt-ins commented out, with the line that explains them.
- Do not vary the OpenAPI cache by host; emit a relative server URL when no origin is set.
Done together with #3286 and #3275, which touch the same host startup and probe code.
Acceptance
- A host in
Stagingwithout the settings refuses to start and names what is missing -
Developmentstill starts without them - A copy of
.env.examplehas neither opt-in on - Requests with different Host values share one cached OpenAPI document
- Tests for the environment gate and the cache policy
Found in the code review of 17 Nov 2026.
- Lingua principale
- C#
- Stelle
- 569
- Fork
- 107
- Merge medio
- 2h 49m
- PR unite (30g)
- 397
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un 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 fluentcms/FluentCMS
-
area:host area:operations type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:build security type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:sdk security type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:content security type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area:build type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fluentcms/FluentCMS
Issue simili
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
microsoft/microsoft-ui-reactor#1567 ·
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openclaw/openclaw-windows-node#2287 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
kind:ux needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
elsa-workflows/elsa-foundation#4742 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue help wanted new-language
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100