You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/11/10 16:37:34 UTC

[jira] [Commented] (CLOUDSTACK-7873) SSH keys larger than 1024 bytes are truncated

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204902#comment-14204902 ] 

ASF subversion and git services commented on CLOUDSTACK-7873:
-------------------------------------------------------------

Commit b6621428a94866be043df30d8e94e918bfcbf4bb in cloudstack's branch refs/heads/master from Santhosh Edukulla
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=b662142 ]

CLOUDSTACK-7873 Fixed the user vm details length issue for higher key lengths


> SSH keys larger than 1024 bytes are truncated
> ---------------------------------------------
>
>                 Key: CLOUDSTACK-7873
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7873
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Santhosh Kumar Edukulla
>            Assignee: Santhosh Kumar Edukulla
>
> When we upload the SSH key pair with 8192 bit RSA key, however the length of the public key in that case will be longer than 1024 bytes. In DB table ssh_keypair the length of public_key is set to 5120 bytes which is fine.
> The problematic part is the user vm. In DB table user_vm_details, the value column be set to max 1024 bytes, this also be hard coded into the code as well.
> In case the public key length longer than 1024 bytes, the SSH.PublicKey in user_vm_details table will be truncated, and caused the encryptWithSSHPublicKey return "Error encrypting password" due to the truncated RSA key is invalid.
> Fixed the issue by setting the value to 5120 for key.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)