rouse-context/core
Jason Monk cd40f32dff Fix high-severity security findings from audit (5-12)
- Validate redirect_uris at /register: reject non-http/https schemes and
  registrations with no valid URIs (Finding 5)
- Use per-integration rate limiter keys (e.g. "health/register") instead of
  global keys to prevent cross-integration interference (Finding 6)
- Validate integration path parameter against ^[a-zA-Z0-9_-]{1,64}$ regex
  at all route handlers to prevent path traversal (Finding 7)
- Finding 8 (SQLCipher for token DB) deferred: no SQLCipher dependency yet,
  tokens already hashed
- Add security headers (X-Frame-Options, CSP, nosniff, HSTS) to the
  /authorize HTML response (Finding 9)
- Add per-integration rate limiting to /mcp endpoint via separate
  mcpRateLimiter parameter (Finding 10)
- Increase display/user code entropy from ~41 bits (4+4 chars) to ~61 bits
  (6+6 chars) and switch from kotlin.random.Random to java.security.SecureRandom
  in both AuthorizationCodeManager and DeviceCodeManager (Finding 11)
- Finding 12 (origin validation in device code approval) confirmed mitigated
  by phone-side approval UI requiring physical user interaction

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 08:56:55 -04:00
..
bridge Extract core:bridge module for TLS accept + MCP session bridging 2026-04-06 14:22:37 -04:00
mcp Fix high-severity security findings from audit (5-12) 2026-04-07 08:56:55 -04:00
tunnel Refactor EndToEndSessionTest to exercise TunnelClientImpl production code path 2026-04-06 18:42:09 -04:00