barbican encryption keys not handled during volume transfer

Bug #1735285 reported by Eric Harney on 2017-11-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Cinder does not handle transferring ownership/ACLs for Barbican encryption keys when performing a volume transfer. This means that after a volume transfer, the volume is owned by the new user, but the Barbican key associated with the volume is not.

The easiest place to see this fail is during volume deletion, but it may have other impacts as well.

$ source ~/devstack/openrc user1
$ cinder create 1
$ cinder transfer-create 406a5beb-1f00-45cb-9f4d-68b30ae10ed8
$ source ~/devstack/openrc demo
$ cinder transfer-accept 13143e07-489f-4dbf-b4e7-f90bd71a7654 f1932001b66ac9fe

$ cinder delete 406a5beb-1f00-45cb-9f4d-68b30ae10ed8
Delete for volume 406a5beb-1f00-45cb-9f4d-68b30ae10ed8 failed: Invalid volume: Unable to delete encryption key for volume. (HTTP 400) (Request-ID: req-2adb4b86-e127-4422-afd0-d5af85499e95)
ERROR: Unable to delete any of the specified volumes.

Eric Harney (eharney) wrote :

Note: on the machine I tried this on, I modified the Barbican policy to allow any user to access "creator":

    "creator": "",

Eric Harney (eharney) on 2017-11-29
tags: added: encryption

Submitter: Zuul
Branch: master

commit 04d7e2d80d4cfe0d3a2cae477d9e09b6dc1071a2
Author: Alan Bishop <email address hidden>
Date: Thu Jan 4 16:26:25 2018 +0000

    Block attempts to transfer encrypted volumes

    Block attempts to transfer encrypted volumes until [1] gets resolved.

    [1] documents the fact that encryption keys are not properly transferred
    to the new volume owner. Resolving this will be tricky because Key
    Managers such as Barbican currently provide no API for transferring
    ownership, and Key Manager ACLs are insufficient because they don't
    allow the new volume owner to delete the key.


    Related-Bug: #1735285
    Change-Id: I5dbeb46adc9da1fce6359a96b981aa8d673d50c4

Matt Riedemann (mriedem) on 2018-09-11
Changed in cinder:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers