hashicorp / hashicorp/vault-ssh-helper
Bracketed Paste
- Dominant language
- Go
- Stars
- 447
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
When pasting a password in the terminal, you can unknowingly be in bracketed paste mode. The password then has a leading 1B 5B 32 30 30 7E ( esc[200~ ) and a trailing 1B 5B 32 30 31 7E ( esc[ 201 ~ ), so it fails at the UUID length check (now being 48 chars long, not 36).
Took me forever to figure out that this was what was happening. It would be helpful to have a check for these leading and trailing sequences, and silently remove them.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the terminal password input path and the UUID length check mentioned in the issue; no file or test is identified in the report. Confirm how bracketed-paste markers enter the value, then verify that valid UUIDs still pass and those leading and trailing sequences are removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100