Commit graph

4 commits

Author SHA1 Message Date
google-labs-jules[bot]
224cd673b2 Sentinel: [MEDIUM] Fix exception leakage in web dashboard
💡 Vulnerability: The web dashboard was returning raw exception strings in HTTP 500 responses, potentially exposing internal file paths or sensitive system information.
🎯 Impact: Attackers could gather reconnaissance data about the internal environment.
🔧 Fix: Catch exceptions, log them securely using `logging.error`, and return a generic "Internal Server Error" message to the user.
 Verification: Added `test_error_handling_no_leak` to `scripts/test_web_dashboard.py` which mocks a failure and asserts that the sensitive info is NOT present in the response.
2026-02-12 11:29:56 +00:00
google-labs-jules[bot]
0b8a09a572 Add security headers to web dashboard (CSP, HSTS, X-Frame-Options)
- Implemented `@app.after_request` in `scripts/web_dashboard.py` to inject security headers.
- Added `Content-Security-Policy` with `default-src 'self'`, blocking inline scripts.
- Added `X-Content-Type-Options: nosniff`.
- Added `X-Frame-Options: SAMEORIGIN`.
- Added `Referrer-Policy: strict-origin-when-cross-origin`.
- Added unit test `test_security_headers` to `scripts/test_web_dashboard.py` to verify header presence.
- Mitigates Stored XSS, Clickjacking, and MIME sniffing risks.
2026-02-09 11:27:48 +00:00
google-labs-jules[bot]
644c00e696 🎨 Palette: Add skip-to-content link for accessibility 2026-02-08 11:20:56 +00:00
google-labs-jules[bot]
9d93a21039 Bolt: Optimize health check endpoint
💡 What: Separated the /health endpoint from the main dashboard rendering logic. It now returns a lightweight JSON response.
🎯 Why: The previous implementation rendered the full Markdown dashboard for every health check, consuming unnecessary CPU and I/O resources during frequent polling.
📊 Impact: Reduces health check processing time from file reading + markdown parsing (~milliseconds) to a simple JSON return (~microseconds).
🔬 Measurement: Verified with new test script scripts/test_web_dashboard.py and updated render.yaml/app.yaml to use the new endpoint.
2026-01-21 05:17:23 +00:00