@@ -332,7 +332,7 @@ def check_gpg_keys(db: ReleaseShelf) -> None:
332332def check_ssh_connection (db : ReleaseShelf ) -> None :
333333 client = paramiko .SSHClient ()
334334 client .load_system_host_keys ()
335- client .set_missing_host_key_policy (paramiko .WarningPolicy )
335+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
336336 client .connect (
337337 DOWNLOADS_SERVER , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ]
338338 )
@@ -346,7 +346,7 @@ def check_ssh_connection(db: ReleaseShelf) -> None:
346346def check_sigstore_client (db : ReleaseShelf ) -> None :
347347 client = paramiko .SSHClient ()
348348 client .load_system_host_keys ()
349- client .set_missing_host_key_policy (paramiko .WarningPolicy )
349+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
350350 client .connect (
351351 DOWNLOADS_SERVER , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ]
352352 )
@@ -768,7 +768,7 @@ def mkdir(
768768def upload_files_to_server (db : ReleaseShelf , server : str ) -> None :
769769 client = paramiko .SSHClient ()
770770 client .load_system_host_keys ()
771- client .set_missing_host_key_policy (paramiko .WarningPolicy )
771+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
772772 client .connect (server , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ])
773773 transport = client .get_transport ()
774774 assert transport is not None , f"SSH transport to { server } is None"
@@ -813,7 +813,7 @@ def upload_files_to_downloads_server(db: ReleaseShelf) -> None:
813813def place_files_in_download_folder (db : ReleaseShelf ) -> None :
814814 client = paramiko .SSHClient ()
815815 client .load_system_host_keys ()
816- client .set_missing_host_key_policy (paramiko .WarningPolicy )
816+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
817817 client .connect (
818818 DOWNLOADS_SERVER , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ]
819819 )
@@ -866,7 +866,7 @@ def unpack_docs_in_the_docs_server(db: ReleaseShelf) -> None:
866866
867867 client = paramiko .SSHClient ()
868868 client .load_system_host_keys ()
869- client .set_missing_host_key_policy (paramiko .WarningPolicy )
869+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
870870 client .connect (
871871 DOCS_SERVER , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ]
872872 )
@@ -1002,7 +1002,7 @@ def create_release_object_in_db(db: ReleaseShelf) -> None:
10021002def wait_until_all_files_are_in_folder (db : ReleaseShelf ) -> None :
10031003 client = paramiko .SSHClient ()
10041004 client .load_system_host_keys ()
1005- client .set_missing_host_key_policy (paramiko .WarningPolicy )
1005+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
10061006 client .connect (
10071007 DOWNLOADS_SERVER , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ]
10081008 )
@@ -1053,7 +1053,7 @@ def wait_until_all_files_are_in_folder(db: ReleaseShelf) -> None:
10531053def run_add_to_python_dot_org (db : ReleaseShelf ) -> None :
10541054 client = paramiko .SSHClient ()
10551055 client .load_system_host_keys ()
1056- client .set_missing_host_key_policy (paramiko .WarningPolicy )
1056+ client .set_missing_host_key_policy (paramiko .RejectPolicy )
10571057 client .connect (
10581058 DOWNLOADS_SERVER , port = 22 , username = db ["ssh_user" ], key_filename = db ["ssh_key" ]
10591059 )
0 commit comments