fix: restrict legacy server entrypoint to loopback - #270
Conversation
|
Release-lane classification: needs-human. Although the change is small and defensive, it sets the authentication/network exposure policy for the legacy |
|
Release-lane classification: needs human decision. This changes a security-sensitive or externally exposed policy surface. It requires Korgo's explicit product/security decision and a focused security review before an autonomous merge; local test success alone is not authorization to land it. |
|
Release classification: needs-human. This change affects an externally visible security/default-exposure policy. It should not be merged autonomously without Korgo’s explicit decision on the intended compatibility and threat-model behavior. Please retain as a draft pending that decision; any follow-up must be rebased on current |
|
Release review: needs-human. Restricting the legacy server entrypoint to loopback changes network exposure and deployment behavior. This security/deployment policy requires Korgo approval before merge. |
|
Release classification: needs-human decision. This changes externally reachable server binding behavior. The scheduled lane will not make network-exposure/default-binding policy decisions. Please confirm the intended deployment compatibility and secure-default policy before a dedicated security/release review. |
Summary
python server.pycompatibility entrypoint to127.0.0.1when it starts without API keys.callstack servewith API keys.Closes #4.
Verification
PYTHONPATH=. uv run --no-project --with pytest --with pytest-asyncio --with pytest-aiohttp --with pyserial-asyncio --with aiosqlite pytest tests/test_api_auth.py -q— 25 passedgit diff --check— passedPYTHONPATH=. uv run --no-project --with pytest --with pytest-asyncio --with pytest-aiohttp --with pyserial-asyncio --with aiosqlite pytest tests/ -q— 1028 passedRisk
This affects only the legacy
python server.pyno-key compatibility path. The packagedcallstack servepolicy andrun_server(...)API are unchanged. Remote use should continue throughcallstack servewith configured API keys.