Skip to content

[P2.4] Gate the test-only POST /test/broadcast behind an env flag #753

Description

@frankbria

Severity: low | Category: security | Phase: P2.4

Problem

Verified: mounted unconditionally with only require_auth; any authenticated principal can push arbitrary JSON to every WebSocket subscriber. Docstring says "integration tests only" but nothing gates it.

Evidence

codeframe/ui/server.py:714

Acceptance criteria

Registered only when CODEFRAME_ENABLE_TEST_ENDPOINTS is set, or moved to a test-only app factory.

Dependencies

None


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions