Repository navigation
Commit 970afbe
committed
fix(cli): connect confirms a hidden key by its length alone
- On Python 3.12 and 3.13 (no masked getpass) the confirmation printed
the key's last four characters, a fragment of a secret left in the
terminal's scrollback.
Security review note: no widening; a secret's fragment leaves the one
output it reached, the length still tells a truncated paste apart.1 parent 66fe564 commit 970afbe
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
0 commit comments