docs: document the v2 hardening the README never caught up with - #10
Merged
Conversation
Three hardening properties were real, tested, and undocumented: the systemd sandbox on the Linux unit, the security response headers and CSP, and the auth-failure throttle plus request bounds. Also corrects a stale claim. The tech stack said fonts came from the Google Fonts CDN. They have been vendored and served same-origin since the asset vendoring work, and the app's own CSP is font-src 'self', so a real CDN load would be blocked by HumWatch itself. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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
Three hardening properties were real, tested, and undocumented. The README now covers them:
humwatchuser,NoNewPrivileges,ProtectSystem=strict,ProtectHome,PrivateTmp,RestrictSUIDSGID,LockPersonality,UMask=027, withReadWritePathsscoped to/var/lib/humwatchand/var/log/humwatch.default-src 'self'CSP, nosniff, no-referrer,X-Frame-Options: DENY, a Permissions-Policy blocking camera / microphone / geolocation / USB / payment,Cache-Control: no-storeon protected API paths, HSTS over HTTPS, and every asset vendored same-origin.429withRetry-After, tracking table bounded at 1024 sources with LRU eviction, 1 MiB body cap, and ceilings on metrics per request, SSE subscribers, history window, and sample resolution.Also
Corrects a stale claim in the tech stack. It said fonts came from the Google Fonts CDN. They have been vendored and served same-origin since the asset vendoring work, and HumWatch's own CSP is
font-src 'self', so a real CDN load would be blocked by the app itself. Chart.js and Lucide get the same correction.Docs only, no code touched.
🤖 Generated with Claude Code