Description of problem: When a user is not present anymore in a project it's not possible to do activity on instances with the encrypted volume created by the old user, like resize. A solution could be like having a secret owned by the project on not by a single user. Version-Release number of selected component (if applicable): Red Hat OpenStack 16.1 (RHOSP16) Steps to Reproduce: 1. Create an instance from with an encrypted volume. 2. delete the user 3. try to resize the instance with another user in the project Actual results: The resize of the instance failed with: Exception during message handling: castellan.common.exception.KeyManagerError: Key manager error: Forbidden: Secret retrieval attempt not allowed - please review your user/project privileges Expected results: It should be a way to resize the instance.
Doug, would this be considered an RFE? I'm not sure if this is by design or not.
I consider this a bug because the mismatch in policy between Barbican and Cinder breaks some volume workflows. The title and description of this BZ make it seem like an RFE, but that's because this BZ assumes that secrets are not currently owned by a project, which is incorrect. Barbican has always supported project ownership of secrets. This issue is only related to the "secrets:delete" RBAC policy in Barbican.
Ack, thanks for clarifying, Doug. Follow up question, what does it look like to fix the policy in Barbican to resolve this? Are our other policy changes aimed at 16.1.10 going to address this as well or do we have more work to do?
This issue has already been fixed upstream https://storyboard.openstack.org/#!/story/2009791 and the patch has been proposed downstream and is currently waiting for reviews. We should not need any further policy changes for this issue, and the fix should be able to be merged on time for 16.1.9.
*** Bug 2092879 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat OpenStack Platform 16.1.9 (openstack-barbican) security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8874