Dev-iL commented on issue #49495: URL: https://github.com/apache/airflow/issues/49495#issuecomment-2820742358
Airflow log when connecting to the containerized webserver... - ...using the hostname, from the hostname itself: ```none airflow-apiserver-1 | INFO: 172.30.116.82:56770 - "GET / HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 172.30.116.82:56770 - "GET /ui/config HTTP/1.1" 401 Unauthorized airflow-apiserver-1 | INFO: 172.30.116.82:56770 - "GET /api/v2/auth/login?next=http%3A%2F%2Fmy-hostname%3A8080%2F HTTP/1.1" 307 Temporary Redirect airflow-apiserver-1 | INFO: 172.30.116.82:56770 - "GET /auth/token/login?next=http://my-hostname:8080/ HTTP/1.1" 307 Temporary Redirect airflow-apiserver-1 | INFO: 172.30.116.82:56770 - "GET / HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 172.30.116.82:56770 - "GET /ui/config HTTP/1.1" 401 Unauthorized ... ``` - ...using `localhost`, from the hostname itself: ```none airflow-apiserver-1 | INFO: 192.168.2.1:32896 - "GET / HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32896 - "GET /ui/config HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32896 - "GET /ui/auth/menus HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32896 - "GET /api/v2/plugins HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32896 - "GET /api/v2/version HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32930 - "GET /api/v2/importErrors HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32896 - "GET /ui/dashboard/historical_metrics_data?start_date=2025-04-21T09%3A24%3A16.320Z HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32912 - "GET /api/v2/monitor/health HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 192.168.2.1:32924 - "GET /api/v2/assets/events?limit=6&order_by=-timestamp×tamp_gte=2025-04-21T09%3A24%3A16.320Z×tamp_lte=2025-04-22T09%3A24%3A16.320Z HTTP/1.1" 200 OK ``` - ...from a different machine, using the hostname [for completeness]: ```none airflow-apiserver-1 | INFO: 172.30.94.97:61067 - "GET / HTTP/1.1" 200 OK airflow-apiserver-1 | INFO: 172.30.94.97:61067 - "GET /ui/config HTTP/1.1" 401 Unauthorized airflow-apiserver-1 | INFO: 172.30.94.97:61067 - "GET /api/v2/auth/login?next=http%3A%2F%2Fmy-hostname%3A8080%2F HTTP/1.1" 307 Temporary Redirect airflow-apiserver-1 | INFO: 172.30.94.97:61067 - "GET /auth/token/login?next=http://my-hostname:8080/ HTTP/1.1" 307 Temporary Redirect airflow-apiserver-1 | INFO: 172.30.94.97:61067 - "GET / HTTP/1.1" 200 OK ... ``` The obvious difference is the network interface - 192.168.* seems fine, but 172.30.* seems to be unauthorized. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
