Skip to content

Hide secret input with getpass for AWS/Azure manual entry - #58

Merged
bencehezso merged 1 commit into
mainfrom
task/hide-secret-input-getpass
Jul 26, 2026
Merged

Hide secret input with getpass for AWS/Azure manual entry#58
bencehezso merged 1 commit into
mainfrom
task/hide-secret-input-getpass

Conversation

@bencehezso

@bencehezso bencehezso commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Manual credential entry echoed secrets to the terminal in plaintext. This swaps the two sensitive prompts from input() to getpass.getpass(), so the values are no longer displayed on screen or left in shell scrollback.

Changes

  • Added import getpass (stdlib — no new dependency, no requirements.txt change)
  • AWS secret_key (_aws_provider_from_prompt) now read via getpass.getpass()
  • Azure client_secret (_azure_provider_from_prompt) now read via getpass.getpass()

Non-secret identifiers (AWS access key ID, Azure tenant ID, client ID) remain visible input() so users can catch typos.

@bencehezso bencehezso self-assigned this Jul 26, 2026
@bencehezso bencehezso added the enhancement New feature or request label Jul 26, 2026
@bencehezso
bencehezso merged commit e890fb4 into main Jul 26, 2026
3 checks passed
@bencehezso
bencehezso deleted the task/hide-secret-input-getpass branch July 26, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant