Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-21959

Barbican config should allow seamless admin controlled migrations, evacuations, unshelve operations for encrypted volumes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • barbican-operator
    • None
    • Important

      Barbican config should allow seamless admin controlled migrations, evacuations, unshelve operations for encrypted volumes

      The default config will fail for admin directed operations like migrations, evacuations, unshelve operations with the following:

      
      Key manager error: Forbidden: Secret payload retrieval attempt not allowed - please review your user/project privileges
      
      

      This impacts features like instanceHA and Watcher also.

      Here is a policy work-around for this issue (from Douglas Mendizábal)

      spec:
       ...
         barbican:
         ...
          template:
            barbicanAPI:
              customServiceConfig: |
                [oslo_policy]
                policy_file=/etc/barbican/barbican.conf.d/policy.yaml
              defaultConfigOverwrite:
                policy.yaml: |
                  "secret:decrypt": "role:admin or rule:secret_project_admin or (rule:secret_project_member and rule:secret_owner) or (rule:secret_project_member and rule:secret_is_not_private) or rule:secret_acl_read"
      

              dmendiza Douglas Mendizabal
              mflusche@redhat.com Mathew Flusche
              rhos-dfg-security
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: