ow2-sirocco / sirocco-api-openstack

Adding Openstack API on top of Sirocco
1 stars 0 forks source link

os-keypairs : Create keypair fingerprint from sirocco credentials #16

Closed chamerling closed 10 years ago

chamerling commented 10 years ago

Need to find a java library to handle this.

fdangtran commented 10 years ago

Currently Sirocco handles SSH keypair creation independently of the cloud provider. A same Sirocco keypair can be used on multiple providers (e.g. EC2 and OpenStack). An alternative would be to make keypair provider-dependent and to retrieve and store the fingerprint returned by the underlying provider.

chamerling commented 10 years ago

Where is the code for keypair creation in sirocco?

Le 19 déc. 2013 à 13:59, fdangtran notifications@github.com a écrit :

Currently Sirocco handles SSH keypair creation independently of the cloud provider. A same Sirocco keypair can be used on multiple providers (e.g. EC2 and OpenStack). An alternative would be to make keypair provider-dependent and to retrieve and store the fingerprint returned by the underlying provider.

— Reply to this email directly or view it on GitHub.

fdangtran commented 10 years ago

in CredentialsManager, creation of a keypair currently boils down to saving it in the database. Actual creation of a keypair on a provider is done in provider-specific connectors upon Machine creation if the keypair does not exist on the provider Bottom line:
-short term: I propose to add a fingerprint attribute/placeholder to Credentials so that the OpenStack API gateway can serialize it if present -later: we determine how to compute this fingerprint

Note that I juste realized that a fingerprint compute utility method is implemented in the CloudStack connector (based on the MD5 digest of the public key). I can reuse this method to compute and store the sirocco fingerprint of keypairs in CredentialsManager. This fingerprint will not necessarily match the fingerprint of the underlying provider keypair but this is of no concern for the Sirocco client.