Repository navigation
Make the template safe by default - #87
Merged
Merged
Conversation
…sion-from-versioninfo
…e/security-headers
…ployed-without-auth
…limiting # Conflicts: # .agents/skills/template-authoring/SKILL.md # .github/workflows/build-pipeline.yml
This was referenced Dec 5, 2026
Contributor
Build Pipeline✅ Ready to merge. Every stage passed.
Commit |
An authority without an audience used to reject every token without saying why. The deployment guard now stops at startup and names the setting, and --audience is required with --include-auth.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A new solution shouldn't expose itself by accident once it's deployed. This is the December security work for the 1 January release, in one pull request.
docker compose uppublishes every port on127.0.0.1only, so it listens on your machine and not your whole network.service.versionon traces, metrics and logs comes fromVersionInfo, the same version the app reports about itself.X-Content-Type-Options: nosniff,X-Frame-Options: DENYandReferrer-Policy: no-referrer.dotnet runuses the standardDevelopmentenvironment instead oflocal, soappsettings.local.jsonbecomesappsettings.Development.json.Authentication:AllowAnonymousistrue. With--include-autha set authority must be anhttpsURL. The image defaults toProduction.--include-auth,dotnet runacceptsdotnet user-jwtstokens, so the protected app can be tried without a real authority.docs/RUN.mdhas the steps.--include-rate-limitingoption, off by default: a fixed window per client IP address that stays off untilRateLimiting:PermitLimitis set. Verify Template checks it on its own and with every option on.security-defaultsskill, with the other skills anddocs/RUN.mdupdated to match.Related issues
Closes LeanMeanCleanApps/.github#35
Closes LeanMeanCleanApps/.github#38
Closes LeanMeanCleanApps/.github#39
Part of LeanMeanCleanApps/.github#34
Part of LeanMeanCleanApps/.github#37
Part of LeanMeanCleanApps/.github#40
Part of LeanMeanCleanApps/.github#42
Part of LeanMeanCleanApps/.github#48
Type of change
Shared layers
Checklist
dotnet buildanddotnet testpass locally with no warnings..agents/skills.