Web UI: Auth and deployment boundary (#435) #456

Merged
sysadmin merged 2 commits from feat/issue-435-auth-deployment into master 2026-07-09 10:58:53 -05:00
Showing only changes of commit 1334b0b320 - Show all commits
+5 -2
View File
@@ -7,7 +7,6 @@ import os
import uvicorn
from webui.app import create_app
from webui.deployment_boundary import assess_bind_host
logger = logging.getLogger("webui")
@@ -25,9 +24,13 @@ def _validate_bind_host(host: str) -> None:
def main() -> None:
host = os.environ.get("WEBUI_HOST", "127.0.0.1")
port = int(os.environ.get("WEBUI_PORT", "8765"))
# Validate bind host before importing the full app stack so refuse paths
# fail closed quickly (tests and operators must not hang on create_app).
_validate_bind_host(host)
from webui.app import create_app
uvicorn.run(create_app(), host=host, port=port, log_level="info")
if __name__ == "__main__":
main()
main()