← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1125130] Re: Location reported in notifications

 

** Changed in: glance/grizzly
   Importance: Undecided => Medium

** Changed in: glance/grizzly
       Status: New => Fix Released

** Changed in: glance/grizzly
    Milestone: None => 2013.1

** Changed in: glance/grizzly
     Assignee: (unassigned) => Stuart McLaren (stuart-mclaren)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1125130

Title:
  Location reported in notifications

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in Glance grizzly series:
  Fix Released

Bug description:
  If I create an image, eg:

  $ glance --os-username glance --os-password <redacted> --os-tenant-
  name service  --os-auth-url http://localhost:5000/v2.0 image-create
  --disk-format=qcow2 --container-format=bare --name="Image2" <
  /etc/motd

  
  while having notification enabled, eg in glance-api.conf:

  notifier_strategy = rabbit

  And then query ceilometer:

  curl http://127.0.0.1:8777/v1/resources/bf8c239a-2e8a-49b0-ac6a-
  b67b997b394b/meters/image

      {
        "counter_name": "image", 
   .
  .
  .
        "counter_volume": 1, 
        "resource_metadata": {
          "status": "active", 
          "name": "Image2", 
   .
  .
  .
          "location": "swift+http://service%3Aglance:<redacted>@10.7.101.5:5000/v2.0/glance/f9f40980-03fa-4151-aaac-d37a80490b96", 
  .
  .
  .
          "size": 667
        }, 
        "counter_type": "gauge"
      }

  The location (with credentials) is shown in plaintext.

  This is the case whether or not encryption of the location is enabled
  via the "metadata_encryption_key" config parameter, ie here is the
  relevant database entry showing the location is encrypted:

  
  | id                                   | name                            | size     | status | is_public | location                                                                                                                                                                                         | created_at          | updated_at          | deleted_at | deleted | disk_format | container_format | checksum                         | owner                            | min_disk | min_ram | protected |

  | f9f40980-03fa-4151-aaac-d37a80490b96 | Image2
  |      667 | active |         0 | GDII5JDRVEedM9J0PrjmoIM3r-
  _DyQlKZ4hWQCIjYKhj5yJpSz8gq66XZ-5mJBJA2CjVrvHIh_ZJuJn-
  O1TcRBk6jdA6owyHbHYcQky5NYmf7tT5ut9oY_Y1h7Q_uOj8AjJye4Xqk32jN1qlkM6Mvgi5vaFPXjKvwFNUJCr5bAGEK0YS3Ko1lDH9VS7V-
  Vkt | 2013-02-14 11:49:49 | 2013-02-14 11:49:50 | NULL       |       0
  | qcow2       | bare             | 84de8695202d116bbe0e0fb06c6e020b |
  e2906b40a41747fbbfa6c66e01bc1f51 |        0 |       0 |         0 |

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1125130/+subscriptions