beaker
beaker copied to clipboard
[BUG] Users can not upload ssh keys with new crypto e.g. ecdsa-sha2-nistp256
Describe the bug
Users can not set their ssh key if theirs key type is longer than 16 chars.
Version-Release number 28.*
To Reproduce
Steps to reproduce the behavior:
- User has
ecdsa-sha2-nistp256
key or generates new key withssh-keygen -t ecdsa ...
- Go to User preferences
- Try to add ssh key
ecdsa-sha2-nistp256 c3NoIGtleSBkYXRhLCBwIGFuZCBxCg== comment
Actual behavior
500 INTERNAL SERVER ERROR
is shown bellow +Add button
Expected behavior
Key is stored.
Additional context
Definition of the key type column.
https://github.com/beaker-project/beaker/blob/6fc33b0a1ba384e7632c90f520bfa9b0464a1ec9/Server/bkr/server/model/identity.py#L990