[
https://issues.apache.org/jira/browse/CLOUDSTACK-7873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204916#comment-14204916
]
ASF subversion and git services commented on CLOUDSTACK-7873:
-------------------------------------------------------------
Commit 32dc5243b6bfa0f51ffb3eeaf49e4b7fef5edf55 in cloudstack's branch
refs/heads/4.5 from Santhosh Edukulla
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=32dc524 ]
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)