Skip to content

Harden CoreAdmin authorization and antiforgery protection - #125

Open
sakecrystal wants to merge 1 commit into
edandersen:masterfrom
sakecrystal:local/coreadmin-security-hardening
Open

sakecrystal wants to merge 1 commit into
edandersen:masterfrom
sakecrystal:local/coreadmin-security-hardening

Conversation

@sakecrystal

Copy link
Copy Markdown

Summary

  • Replace async void authorization with IAsyncAuthorizationFilter and Task-based authorization.
  • Require explicit opt-in for unauthenticated access in Development.
  • Apply antiforgery validation to CRUD POST actions and add security tests.
  • Update the README and .NET 10 demo application to reflect the security defaults.

Validation

  • Debug integration tests: 24 passed, 0 failed.
  • Release integration tests: 24 passed, 0 failed.
  • .NET 10 demo application Release build: succeeded.
  • git diff --check: passed.

Note: HTTPS redirection middleware emits test-host warnings about the HTTPS port; the test suites pass.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant