Startup safety checks run only in Production, and two unsafe defaults ship switched on
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C#
- Stars
- 569
- Forks
- 107
- Avg merge
- 2h 49m
- Merged PRs (30d)
- 397
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluentcms/FluentCMS
-
area:host area:operations type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:build security type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:sdk security type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:content security type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area:build type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in fluentcms/FluentCMS
Similar issues
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
microsoft/microsoft-ui-reactor#1567 ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openclaw/openclaw-windows-node#2287 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
kind:ux needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
elsa-workflows/elsa-foundation#4742 ·
Maintainers usually reply within 1 day
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue help wanted new-language
Difficulty 2/5 1-3 hours Newbie friendliness 82/100