Skip to content

Harden the dashboard and document the security model - #3

Merged
WenjaDebug merged 1 commit into
mainfrom
security/dashboard-hardening
Nov 17, 2026
Merged

WenjaDebug merged 1 commit into
mainfrom
security/dashboard-hardening

Conversation

@WenjaDebug

Copy link
Copy Markdown
Owner

Security review of the public code and full history. No secrets, keys, passwords, IP addresses or personal data were found; .env is ignored and .env.example has no values.

Hardening for the dashboard, which binds to 127.0.0.1 and has no write endpoints:

  • Only known Host headers are answered (TURTLE_DASHBOARD__ALLOWED_HOSTS), which blocks DNS rebinding.
  • The WebSocket accepts connections only from the dashboard's own origin, so another website open in the same browser cannot read the live data.
  • The assistant is rate limited (TURTLE_DASHBOARD__CHAT_MAX_PER_MINUTE, default 6) and answers one question at a time.
  • turtlebot dashboard refuses to serve the assistant on a non-loopback address.
  • New SECURITY.md; CHANGELOG and .env.example updated.

Tests: 338 passed; ruff, black and mypy clean.


Generated by Claude Code

Allow only known Host headers, accept WebSocket connections only from the
dashboard's own origin, rate-limit the assistant and refuse to serve it on
a non-loopback address. SECURITY.md describes secrets, dashboard and data.
@WenjaDebug
WenjaDebug merged commit 1d89100 into main Nov 17, 2026
8 checks passed
WenjaDebug added a commit that referenced this pull request Nov 17, 2026
Harden the dashboard and document the security model
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