fix(mosaic): mask password input in TUI login prompt #449
Reference in New Issue
Block a user
Delete Branch "fix/tui-password-mask"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
mosaic tuilogin prompt used a plainreadline.question()for the password field, which echoed characters visibly to the terminal. Replaced with the existingpromptSecret()helper that uses TTY raw mode — the same function already used bymosaic gateway login.Test plan
pnpm --filter @mosaicstack/mosaic test— 260 tests pass