Bug 2116906 - creator role not required for secret creation
Summary: creator role not required for secret creation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-barbican
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ga
: 17.0
Assignee: Douglas Mendizábal
QA Contact: Jeremy Agee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-09 14:12 UTC by Jeremy Agee
Modified: 2022-09-21 12:25 UTC (History)
8 users (show)

Fixed In Version: openstack-barbican-12.0.1-0.20220614210403.486e607.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:24:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 853680 0 None master: MERGED barbican: Fix Secure RBAC policies for Secrets (I224c50a8bf9f540f8f643339a4beeaff36ca6509) 2022-08-26 16:10:10 UTC
OpenStack gerrit 854250 0 None master: MERGED barbican-tempest-plugin: Add "member" role to tempest tests (I16ed904eeb27ab7110a7e4e56ef7ea89c8c3c2ab) 2022-08-26 16:10:16 UTC
OpenStack gerrit 854380 0 None stable/wallaby: MERGED barbican: Fix Secure RBAC policies for Secrets (I224c50a8bf9f540f8f643339a4beeaff36ca6509) 2022-08-26 16:10:22 UTC
OpenStack gerrit 854452 0 None master: MERGED barbican: Fix deprecation cycle for Secret policies (I1b5f9b925a6fa961ea5bbc29a79927075ba707e0) 2022-08-26 16:10:29 UTC
OpenStack gerrit 854457 0 None master: MERGED barbican: Fix Secure RBAC policies for Secret ACLs (I176091f8658fff75ba2d55aa937203c22a7f43b4) 2022-08-26 16:10:35 UTC
OpenStack gerrit 854614 0 None master: MERGED barbican-tempest-plugin: Add versioned jobs (Iae1dfea83a6584a95fb73488ad0ba988ded371ca) 2022-08-26 16:10:41 UTC
OpenStack gerrit 854655 0 None master: MERGED barbican: Fix Secure RBAC policies for Consumers (I191f41372a5c0b334ff858743a9303325db40cb6) 2022-08-26 16:10:47 UTC
OpenStack gerrit 854656 0 None master: MERGED barbican: Fix Secure RBAC policies for Orders (I8131987a5b3fc200674b61a52eebb93717d84baa) 2022-08-26 16:10:53 UTC
OpenStack gerrit 854661 0 None master: MERGED barbican: Fix Secure RBAC policies for secret_metadata (I758cd5030e56c6268017a8b133baba7b74db74cb) 2022-08-26 16:10:59 UTC
OpenStack gerrit 854677 0 None master: MERGED barbican: Fix Secure RBAC policies for Containers API (I4e91ca55e3d4030dfdc55d78b92ec3ad3f94bd64) 2022-08-26 16:11:05 UTC
OpenStack gerrit 854717 0 None stable/wallaby: MERGED barbican: Fix Secure RBAC policies for Secret ACLs (I176091f8658fff75ba2d55aa937203c22a7f43b4) 2022-08-26 16:11:11 UTC
OpenStack gerrit 854718 0 None stable/wallaby: MERGED barbican: Fix Secure RBAC policies for Orders (I8131987a5b3fc200674b61a52eebb93717d84baa) 2022-08-26 16:11:17 UTC
OpenStack gerrit 854719 0 None stable/wallaby: MERGED barbican: Fix Secure RBAC policies for secret_metadata (I758cd5030e56c6268017a8b133baba7b74db74cb) 2022-08-26 16:11:22 UTC
OpenStack gerrit 854720 0 None stable/wallaby: MERGED barbican: Fix Secure RBAC policies for Consumers (I191f41372a5c0b334ff858743a9303325db40cb6) 2022-08-26 16:11:28 UTC
OpenStack gerrit 854721 0 None stable/wallaby: MERGED barbican: Fix Secure RBAC policies for Containers API (I4e91ca55e3d4030dfdc55d78b92ec3ad3f94bd64) 2022-08-26 16:11:34 UTC
OpenStack gerrit 854786 0 None MERGED Fix remaining Secure RBAC policies 2022-08-29 15:32:55 UTC
OpenStack gerrit 854850 0 None MERGED Fix remaining Secure RBAC policies 2022-08-29 15:32:55 UTC
Red Hat Issue Tracker OSP-18126 0 None None None 2022-08-09 14:16:52 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:25:14 UTC

Description Jeremy Agee 2022-08-09 14:12:18 UTC
Description of problem:
For OSP < 17 the creator role was required for secret creation. Now a user with a member role can create secrets.

Version-Release number of selected component (if applicable):
OSP17

How reproducible:
always

Steps to Reproduce:
openstack --os-cloud overcloud project create --domain default testproject1
openstack --os-cloud overcloud user create --domain default  testuser1_in_project1
openstack --os-cloud overcloud user set --password 12345678 testuser1_in_project1 
openstack --os-cloud overcloud role add --user testuser1_in_project1 --project project1 member
openstack --os-cloud testuser1_in_project1 token issue
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                                                                   |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| expires    | 2022-08-09T14:49:53+0000                                                                                                                                                                |
| id         | gAAAAABi8mYBBbNYygtjEalaZxe4d715t5tV97SI14EaTa7XE29l7dOMBuQmF3PZS07LQ3aI16FzLbODq0Tsl-_0K9YkgypH1Bd9uo69PzoyImKuiCL_rY8BB9OhzXY_WiqQJb8x-fUwckbSP9qx2ChE_LyXJfNlwfUcjuFhYPSUQ4feOuNM8wc |
| project_id | 87ea6e5e62fe4191bf03891b4b52108c                                                                                                                                                        |
| user_id    | 29999ae0c14349c681e0d29404a935f7                                                                                                                                                        |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

openstack --os-cloud testuser1_in_project1 secret store --name secretCreatedFrom_testuser1_in_project1
+---------------+------------------------------------------------------------------------+
| Field         | Value                                                                  |
+---------------+------------------------------------------------------------------------+
| Secret href   | http://10.0.0.140:9311/v1/secrets/d881a855-2f4d-4333-b6bc-421eebd59ebb |
| Name          | secretCreatedFrom_testuser1_in_project1                                |
| Created       | None                                                                   |
| Status        | None                                                                   |
| Content types | None                                                                   |
| Algorithm     | aes                                                                    |
| Bit length    | 256                                                                    |
| Secret type   | opaque                                                                 |
| Mode          | cbc                                                                    |
| Expiration    | None                                                                   |
+---------------+------------------------------------------------------------------------+

openstack --os-cloud testuser1_in_project1 secret update http://10.0.0.140:9311/v1/secrets/d881a855-2f4d-4333-b6bc-421eebd59ebb 'TestPayload-updated'

Actual results:
a member user can create secrets

Expected results:
creator role should be required when not using SRBAC

Additional info:

Comment 1 spower 2022-08-11 12:17:10 UTC
Please ensure this bug is properly triaged with acks.

Comment 6 Jon Schlueter 2022-08-25 16:48:47 UTC
updated external trackers with patches from https://review.opendev.org/q/topic:story%252F2010235 at request of Douglas Mendizábal

Comment 16 errata-xmlrpc 2022-09-21 12:24:42 UTC
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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543


Note You need to log in before you can comment on or make changes to this bug.