Actions
Bug #20890
closedSSH key validations should return better messages
Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
trivial
Triaged:
Pull request:
Description
Creating an ssh key with invalid format results in following two messages:
Key is invalid Key is invalid
It's caused by ssh_key and format validators:
https://github.com/theforeman/foreman/blob/develop/app/models/ssh_key.rb#L23-L24
The error messages should contain more information:
Key is not a valid public ssh key. Key must be in OpenSSH public key format.
Actions