mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 14:49:10 +00:00
Empty api_key used to skip auth for everyone. Now it only skips auth for loopback origins. Non-loopback requests get 401 unless the operator opts in with OPENFANG_ALLOW_NO_AUTH=1. - middleware: check ConnectInfo, fail closed on LAN/public origins - ws: same fail-closed logic for WebSocket upgrades - server: loud startup warning when bound to non-loopback with no key - AuthState: new allow_no_auth flag - tests: 8 new unit tests covering loopback, LAN, public, missing info Made-with: Cursor