Fix admin can not delete other user's secrets
Change-Id: I1f996cc50c2b4667c18d495b4ca422a40e594cff
This commit is contained in:
parent
1ad4359735
commit
b0ec7edf1d
@ -260,6 +260,12 @@ class SecretController(controllers.ACLMixin):
|
||||
self.secret.id,
|
||||
suppress_exception=True
|
||||
)
|
||||
|
||||
# With ACL support, the user token project does not have to be same as
|
||||
# project associated with secret. The lookup project_id needs to be
|
||||
# derived from the secret's data considering authorization is already
|
||||
# done.
|
||||
external_project_id = self.secret.project.external_id
|
||||
plugin.delete_secret(self.secret, external_project_id)
|
||||
LOG.info('Deleted secret for project: %s', external_project_id)
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed Story #2006978: An admin user now can delete other users secrets
|
||||
by adjust the policy file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user