You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- auth/endpoints.py parsed AAI_AUTH_PORT with a module-level int() at import
time. This module is on the CLI's import hot path, so a malformed value
(e.g. AAI_AUTH_PORT=abc) raised a raw ValueError that crashed *every* aai
command, even 'aai --help' — not just 'aai login'. Resolve the port lazily
in a validated loopback_port() that raises a clean CLIError (with range
check) only on the login path.
- init/runner.spawn() passed log_path.open("w") straight to Popen and never
closed the parent's handle, leaking a file descriptor for the lifetime of
the (long-lived) tunnel process. Close it after Popen returns; the child
keeps its own dup.
Tests updated to drive the port via AAI_AUTH_PORT, with added boundary
coverage (1, 65535, 65536, 0, non-integer).
0 commit comments