Skip to content

feat(server): add browser protections for the operator console - #349

Merged
BaaRai merged 1 commit into
BaaRai:mainfrom
anqorithm:abdallah/console-browser-protections
Nov 19, 2026
Merged

BaaRai merged 1 commit into
BaaRai:mainfrom
anqorithm:abdallah/console-browser-protections

Conversation

@anqorithm

Copy link
Copy Markdown
Contributor

The embedded operator console now restricts framing to the same origin and keeps referrer information on the same origin. The policies are applied on console routes, with a regression test that also checks the API health response.

Verified with go build ./..., go vet ./..., and go test -p 1 ./.... The new test passed with and without an embedded HTML fixture. PostgreSQL integration tests were outside the local run.

@BaaRai BaaRai left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The console routes get frame-ancestors self, X-Frame-Options SAMEORIGIN and Referrer-Policy same-origin; /api/health keeps its response and the test covers both. CI green.

@BaaRai
BaaRai merged commit a88bc26 into BaaRai:main Nov 19, 2026
6 checks passed
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.

2 participants