Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-54675

Require Permission to encrypt with key

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Normal Normal
    • None
    • 4.19.0
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          OCPBUGS-54302 added the permission to list/view all keys. Now that the keys can be found, the keys should be used for encryption. The permission is: cloudkms.cryptoKeyVersions.useToEncrypt

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

          

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          DEBUG E0407 09:40:12.503560   49821 controller.go:329] "Reconciler error" err="googleapi: Error 400: Cloud KMS error when using key projects/openshift-dev-installer/locations/global/keyRings/bbarbach-test-keyring/cryptoKeys/bbarbach-test-key: Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied on resource 'projects/openshift-dev-installer/locations/global/keyRings/bbarbach-test-keyring/cryptoKeys/bbarbach-test-key' (or it may not exist)., kmsPermissionDenied" controller="gcpmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="GCPMachine" GCPMachine="openshift-cluster-api-guests/bbarbach-gcp-test-62zx9-master-0" namespace="openshift-cluster-api-guests" name="bbarbach-gcp-test-62zx9-master-0" reconcileID="28c85972-d4b0-4cdc-9b91-1a6c74b980e6"

      Expected results:

          Pass

      Additional info:

          

              rh-ee-bbarbach Brent Barbachem
              rh-ee-bbarbach Brent Barbachem
              None
              None
              Jianli Wei Jianli Wei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: