Skip to content

fix(cli): mask private key and API key inputs in shade auth#22

Open
mattlockyer wants to merge 1 commit intomainfrom
fix/auth-hide-private-keys
Open

fix(cli): mask private key and API key inputs in shade auth#22
mattlockyer wants to merge 1 commit intomainfrom
fix/auth-hide-private-keys

Conversation

@mattlockyer
Copy link
Collaborator

Summary

  • Switches the NEAR private key and Phala API key prompts in shade auth set from @inquirer/input to @inquirer/password with mask: true, so sensitive values are displayed as * characters instead of plaintext
  • Adds @inquirer/password as a new dependency

Closes #21

Test plan

  • Run shade auth set and select near — verify the private key input is masked
  • Run shade auth set and select phala — verify the API key input is masked
  • Run shade auth set and select all — verify both private key and API key inputs are masked
  • Confirm account ID input remains visible (not sensitive)

Made with Cursor

Use @inquirer/password instead of @inquirer/input for the NEAR private
key and Phala API key prompts so sensitive values are not visible in the
terminal.

Closes #21

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shade Auth - Private Keys should be private (blank)

1 participant