diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-03-29 17:23:09 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-03-29 17:23:09 -0700 |
| commit | 60685eabcde99140f36e1ffbd16dbbbacc87baff (patch) | |
| tree | 7c7852ac77f9bc71d0d08137ec57e4e3e10959e8 | |
| parent | e5f108058f9b085571330dff3c3e3e3e57d2e5ed (diff) | |
| download | nova-60685eabcde99140f36e1ffbd16dbbbacc87baff.tar.gz nova-60685eabcde99140f36e1ffbd16dbbbacc87baff.tar.xz nova-60685eabcde99140f36e1ffbd16dbbbacc87baff.zip | |
use project key for decrypting images
| -rw-r--r-- | nova/image/s3.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/image/s3.py b/nova/image/s3.py index 85a2c651c..ddec5f3aa 100644 --- a/nova/image/s3.py +++ b/nova/image/s3.py @@ -31,6 +31,7 @@ from xml.etree import ElementTree import boto.s3.connection +from nova import crypto from nova import exception from nova import flags from nova import utils @@ -210,7 +211,7 @@ class S3ImageService(service.BaseImageService): # FIXME(vish): grab key from common service so this can run on # any host. - cloud_pk = os.path.join(FLAGS.ca_path, "private/cakey.pem") + cloud_pk = crypto.key_path(context.project_id) decrypted_filename = os.path.join(image_path, 'image.tar.gz') self._decrypt_image(encrypted_filename, encrypted_key, |
