From 9e26c0ab14de49580bc6fb052ae00a70c1760c6a Mon Sep 17 00:00:00 2001 From: johnson2427 Date: Mon, 1 Jul 2024 08:38:58 -0500 Subject: [PATCH] fix: use click prompt to hide password --- ape_aws/kms/_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ape_aws/kms/_cli.py b/ape_aws/kms/_cli.py index 71e7be7..2ca26e2 100644 --- a/ape_aws/kms/_cli.py +++ b/ape_aws/kms/_cli.py @@ -119,6 +119,7 @@ def import_key( import_from_mnemonic: bool, hd_path: str, ): + breakpoint() if private_key_path: if isinstance(private_key_path, str): private_key_path = Path(private_key_path) @@ -135,7 +136,7 @@ def import_key( private_key = account.key.hex() else: - private_key = input("Enter your private key: ") + private_key = click.prompt("Enter your private key: ", hide_input=True) key_spec = ImportKeyRequest( alias=alias_name,