Skip to content

[BUG] Users can not upload ssh keys with new crypto e.g. ecdsa-sha2-nistp256 #181

@mdujava

Description

@mdujava

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:

  1. User has ecdsa-sha2-nistp256 key or generates new key with ssh-keygen -t ecdsa ...
  2. Go to User preferences
  3. 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.

keytype = Column(Unicode(16), nullable=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions