keypair information leak

Bug #1050347 reported by Pedro Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Thierry Carrez

Bug Description

keypairs generated by nova include the user and the name of the controller node that generated them in the comment field of the public key.

That info can be seen in any VM in the file /root/.ssh/authorized_keys in contrast in AWS the comment field is the name of the key.

Fixing this is trivial, it is only a matter of adding the "-C", keyfile parameters to utils.execute in generate_key_pair (nova/crypto.py)

Tags: security
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12938

Changed in nova:
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Thierry Carrez (ttx)
tags: added: security
Changed in nova:
milestone: none → folsom-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/12938
Committed: http://github.com/openstack/nova/commit/114109dbf4094ae6b6333d41c84bebf6f85c4e48
Submitter: Jenkins
Branch: master

commit 114109dbf4094ae6b6333d41c84bebf6f85c4e48
Author: Thierry Carrez <email address hidden>
Date: Thu Sep 13 14:07:02 2012 +0200

    Overload comment in generated SSH keys

    Overload comment in generated SSH keys in order not to leak information
    about the user and host that actually generated them. Patch based on a
    suggestion by Pedro Perez.

    Fixes bug 1050347.

    Change-Id: I73bbdba1f6c9e83a5e7e70564959b9d7abaa5e29

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.