# Security hardening: CSP, session revocation, and login fixes - #117
Open
MSami625 wants to merge 37 commits into
Open
# Security hardening: CSP, session revocation, and login fixes#117MSami625 wants to merge 37 commits into
MSami625 wants to merge 37 commits into
Conversation
…3 artifacts on preview
…and actor stamping
…oved task dispatching
…ics across services
… for usage features
…tion in Docker and API
…rocess_evaluator_result.py
…ing and cache/Ui fixes
…r available models
…iguration for periodic job scheduling
…R(255) and add migration function
…on to clear cache before seeding pricing rates
…sage pricing routes; enhance usage snapshot billability checks
…eamline cost calculations for pending usage deltas
…ed references in the documentation
…ations; enforce CSP and adjust token lifetimes
|
Too many files changed for review (176 files, 100 file limit). Bypass the limit by tagging |
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.
What Changed?
Content-Security-Policyby default; addsecurityconfig and env vars for CSP.debug: falseinconfig.docker.yml.GET /metricsto trusted IPs /operational.public(not session auth).Why?
Closes security gaps around CSP, session lifecycle, and ops endpoint exposure, and fixes a login UI crash when the API returns structured validation errors.
How to Test?
curl -sI http://localhost:8000/ -X GET | grep -i content-security-policy→ enforcing CSP header present.400with policy error.curl -s http://localhost:8000/metrics→404from a public client.401on/api/v1/auth/me.pytest tests/test_api/test_auth_routes.py tests/test_api/test_platform_admin.py tests/test_core/test_security_headers_middleware.py tests/test_core/test_operational_access_middleware.py -qRelease Label
major- breaking change, next release bumps major versionminor- backward-compatible feature, next release bumps minor versionfix- backward-compatible bug fix, next release bumps patch versionChecklist
CONTRIBUTING.mdguide.