diff --git a/pyproject.toml b/pyproject.toml index 538e4bd..d50255b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "valdi" -version = "0.2.4" +version = "0.2.5" description = "A command-line utility for managing VALDI cloud resources" authors = [{name = "VALDI", email="contact@valdi.ai"}] license = { file = "LICENSE" } diff --git a/valdi/cli/volume_manager.py b/valdi/cli/volume_manager.py index 01f90f7..d5268e3 100644 --- a/valdi/cli/volume_manager.py +++ b/valdi/cli/volume_manager.py @@ -1,5 +1,6 @@ import os import sys +import getpass import subprocess from pathlib import Path from valdi.config.settings import Config @@ -26,7 +27,7 @@ def _volume_access_credentials_are_available(volume_name): @staticmethod def _store_volume_access_credentials(volume_name): access_key = input('Enter access key: ') - secret_key = input('Enter secret access key: ') + secret_key = getpass.getpass('Enter secret access key: ') goofys_credentials_file = Path(Config.GOOFYS_CREDENTIALS_FILE).expanduser() with open(goofys_credentials_file, 'a') as f: f.write(f'[{volume_name}]\naws_access_key_id = {access_key}\naws_secret_access_key = {secret_key}\n')