Startup safety checks run only in Production, and two unsafe defaults ship switched on
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 569
- Forks
- 107
- Merge medio
- 2 h 49 min
- PR fusionados (30 d)
- 397
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 fluentcms/FluentCMS
-
area:host area:operations type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:build security type:chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:sdk security type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:content security type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
area:build type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de fluentcms/FluentCMS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
microsoft/microsoft-ui-reactor#1567 ·
Los mantenedores suelen responder en 1 día
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
openclaw/openclaw-windows-node#2287 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
kind:ux needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
elsa-workflows/elsa-foundation#4742 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100