cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-7873) SSH keys larger than 1024 bytes are truncated
Date Tue, 11 Nov 2014 12:04:34 GMT


ASF subversion and git services commented on CLOUDSTACK-7873:

Commit b6621428a94866be043df30d8e94e918bfcbf4bb in cloudstack's branch refs/heads/statscollector-graphite
from Santhosh Edukulla
[;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:
>             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

View raw message