barbican/barbican
Andre Aranha 9c8fb8c3a9 Update secret:delete policy to allow admin to delete secret
Currently a secret can be orphan, if the project that owns it
is deleted by an user that doesn`t have permission on the
project.[1]
The orphan secret cannot be deleted because the current rule
enforces a scoped token on that project to delete it (that
doesn't exist anymore).
To solve this issue, it's necessary to override the secret:delete
policy rule to allow the cloud admin to delete it.
The secret:get policy rule also needed to be changed because the
Python Barbican client gets the secret to check if it has
consumers before actually deleting it. This patch is making these
updates by default

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1932705

Co-author: Mauricio Harley <mharley@redhat.com>
Change-Id: Id755a9efd896b900d31eca93c0136398ed1925b8
(cherry picked from commit 57d7ff378a)
(cherry picked from commit 00274b2f07)
2024-05-02 14:20:02 -04:00
..
api Add content_types to the response dict 2023-01-12 12:04:49 +01:00
cmd Remove six 2022-10-28 14:02:00 +02:00
common Update secret:delete policy to allow admin to delete secret 2024-05-02 14:20:02 -04:00
hacking Remove six 2022-10-28 14:02:00 +02:00
locale Imported Translations from Zanata 2022-06-21 02:11:27 +00:00
model Remove six 2022-10-28 14:02:00 +02:00
objects Remove six 2022-10-28 14:02:00 +02:00
plugin Remove six 2022-10-28 14:02:00 +02:00
queue Remove unnecessary unicode prefixes 2022-05-09 19:49:40 +00:00
tasks Remove six.add_metaclass 2020-09-29 15:19:56 +08:00
tests Add content_types to the response dict 2023-01-12 12:04:49 +01:00
__init__.py Files with no code must be left completely empty 2016-11-17 14:19:47 +08:00
context.py Enforce usage of oslo.context's project_id 2018-04-23 17:37:52 +03:00
i18n.py Remove translation logging prefixes from i18n 2017-06-08 03:13:19 +00:00
version.py Enable tag-based full version reporting via pbr 2014-01-22 18:01:30 -06:00