-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-UTF8 key comments? #331
Comments
The relevant protocol spec is here: https://github.com/openssh/openssh-portable/blob/2d2c068/PROTOCOL.key#L44 It's a The encoding of
It does specify they can hold arbitrary binary data, so to fix this properly we would need to stop using I'll just say for now that isn't something I have time to work on, and there is already quite a backlog of unreviewed PRs on this repo. If it's a change you are interested in seeing through, open a PR but please note I probably won't have time to review it for awhile. |
Thanks and no worries - I just wanted to know if you also see this as an acceptable API change. |
It's an unfortunate/annoying API change but probably for the best to honor how You can perhaps look to types like |
Technically the OpenSSH key comment does not have to be in UTF-8. Currently,
ssh-key
will always fail to parse such keys with no way around it. Would you consider changing the API to useVec<u8>
for the comment instead?I've already hadmultiple in-the-wild keys reported by Tabby users so far.
Example:
The text was updated successfully, but these errors were encountered: