Browse Source

Fix transport key policies

This patch fixes a couple of broken policies for transport keys.

Change-Id: I5a7790210b32f3511446b4bacbb07678a7e52238
(cherry picked from commit 57f334e0cf)
changes/18/783918/1
Douglas Mendizábal 1 month ago
parent
commit
ed8de959d5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      barbican/common/policies/transportkeys.py

+ 2
- 2
barbican/common/policies/transportkeys.py View File

@ -18,7 +18,7 @@ _SYSTEM_ADMIN = "role:admin and system_scope:all"
rules = [
policy.DocumentedRuleDefault(
name='transport_key:get',
check_str='rule:all_users or {_READER}',
check_str=f'rule:all_users or {_READER}',
scope_types=['project', 'system'],
description='Get a specific transport key.',
operations=[
@ -42,7 +42,7 @@ rules = [
),
policy.DocumentedRuleDefault(
name='transport_keys:get',
check_str='rule:all_users or {_READER}',
check_str=f'rule:all_users or {_READER}',
scope_types=['project', 'system'],
description='Get a list of all transport keys.',
operations=[


Loading…
Cancel
Save