Network issues upgrading dbt-core from 1.7 to 1.8

Hey! We are experiencing seemingly firewall-issues when running dbt deps after upgrading from dbt-core 1.7.15 to 1.8.9.

I don’t understand why I suddenly get handshake error when I haven’t changed any of the packages. Is dbt suddenly trying to communicate elsewhere in the background?

dbt debug works fine (only including relevant log):

Running with dbt=1.8.9
dbt version: 1.8.9
python version: 3.11.11
python path: /opt/app-root/bin/python3.11
os info: Linux-6.1.109-x86_64-with-glibc2.28
adapter type: snowflake
adapter version: 1.8.4
Registered adapter: snowflake=1.8.4
Connection test: OK connection ok 
All checks passed! 
Finished in state Completed()

dbt deps gives me handshake issues:

PID 8614 triggered with 1 commands running inside the '.' directory.
PID 8614 stream output:
Running with dbt=1.8.9
Encountered an error:
External connection exception occurred: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 791, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 492, in _make_request
    raise new_e
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 468, in _make_request
    self._validate_conn(conn)
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 1097, in _validate_conn
    conn.connect()
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connection.py", line 642, in connect
    sock_and_verified = _ssl_wrap_socket_and_match_hostname(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connection.py", line 783, in _ssl_wrap_socket_and_match_hostname
    ssl_sock = ssl_wrap_socket(
               ^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/util/ssl_.py", line 471, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/util/ssl_.py", line 515, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ssl.py", line 1104, in _create
    self.do_handshake()
  File "/usr/lib64/python3.11/ssl.py", line 1382, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.11/site-packages/requests/adapters.py", line 589, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 845, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/util/retry.py", line 470, in increment
    raise reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/util/util.py", line 38, in reraise
    raise value.with_traceback(tb)
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 791, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 492, in _make_request
    raise new_e
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 468, in _make_request
    self._validate_conn(conn)
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connectionpool.py", line 1097, in _validate_conn
    conn.connect()
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connection.py", line 642, in connect
    sock_and_verified = _ssl_wrap_socket_and_match_hostname(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/connection.py", line 783, in _ssl_wrap_socket_and_match_hostname
    ssl_sock = ssl_wrap_socket(
               ^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/util/ssl_.py", line 471, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/urllib3/util/ssl_.py", line 515, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ssl.py", line 1104, in _create
    self.do_handshake()
  File "/usr/lib64/python3.11/ssl.py", line 1382, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

This is what I should be expecting to happen when running dbt deps which works perfectly in 1.7:

PID 30810 triggered with 1 commands running inside the '.' directory.
PID 30810 stream output:
Running with dbt=1.7.19
Installing dbt-utils-v1.1.0
Installed from tarball (url: https://github.com/dbt-labs/dbt-utils/archive/refs/tags/1.1.1.tar.gz)

Installing dbt-codegen-v0.10.0
Installed from tarball (url: https://github.com/dbt-labs/dbt-codegen/archive/refs/tags/0.10.0.tar.gz)

Installing dbt-audit-helper-v0.9.0
Installed from tarball (url: https://github.com/dbt-labs/dbt-audit-helper/archive/refs/tags/0.9.0.tar.gz)

Installing dbt-expectations-v0.8.5
Installed from tarball (url: https://github.com/calogica/dbt-expectations/archive/refs/tags/0.8.5.tar.gz)

Installing dbt_artifacts-v2.6.4
Installed from tarball (url: https://github.com/brooklyn-data/dbt_artifacts/archive/refs/tags/2.6.4.tar.gz)

PID 30810 completed with return code 0.
Finished in state Completed()

Problem solved, apparently dbt 1.8 is requesting <http://hub.getdbt.com|hub.getdbt.com> when running dbt deps

This url needs to be whitelisted.

Note: @Adam originally posted this reply in Slack. It might not have transferred perfectly.