Skip to content

Harden public demo security (CORS, rate limits, LIVE_MODE) - #6

Merged
devtechedge merged 1 commit into
mainfrom
harden/security-2026-09-06
Sep 6, 2026
Merged

devtechedge merged 1 commit into
mainfrom
harden/security-2026-09-06

Conversation

@devtechedge

Copy link
Copy Markdown
Owner

Summary

  • Gate /debug behind ENABLE_DEBUG (default off)
  • Replace CORS * with explicit CORS_ORIGINS allowlist
  • Rate-limit /invoke, /stream, resume endpoints (in-memory per IP)
  • Force demo/sim unless LIVE_MODE=true + LLM key; optional PUBLIC_RUN_TOKEN / x-run-token
  • Tighten code_executor token bans; security headers on /ui
  • Update SECURITY.md (2026-09-06) — public portfolio residual, not bank-grade

Test plan

  • pytest tests/test_api.py tests/test_tool_guards.py
  • Vercel: /ui loads; demo stream works without LIVE_MODE
  • /debug returns 404 by default

…g off

- Gate /debug behind ENABLE_DEBUG
- Explicit CORS_ORIGINS (no * with credentials)
- Rate-limit invoke/stream/resume
- LIVE_MODE + optional PUBLIC_RUN_TOKEN for live path
- Tighten code_executor bans; security headers on /ui
- Update SECURITY.md (2026-09-06)
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
aegis-api Building Building Preview Sep 6, 2026 2:16am UTC

@devtechedge
devtechedge merged commit 1e45a1a into main Sep 6, 2026
2 of 3 checks passed
@devtechedge
devtechedge deleted the harden/security-2026-09-06 branch September 6, 2026 02:16
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