Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-641

Support self-signed certificate for internal image backup.

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • No
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown

      Description of problem:

      https://github.com/openshift/oadp-operator/issues/742

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

       

      How reproducible:

      everytime

      Steps to Reproduce:
      1. Use a storage provider with a self-signed certificate such as minio
      2. Backup images.

      Actual results:

      x509: certificate signed by unknown authority

      Expected results:

      Successful

      Additional info:

      We should support self-signed certificate in a similar manner to velero
      https://velero.io/docs/v1.9/self-signed-certificates/#docs

      dev notes:
      Installed minio (Rhmp - Red Hat Marketplace) operators in openshift-operators namespace

      Deploy MinIO Operator on RedHat OpenShift — MinIO Hybrid Cloud Documentation

      then Deploy a MinIO Tenant on RedHat OpenShift — MinIO Hybrid Cloud Documentation

       

      oc krew install minio # install minio plugin, pre-req: kubectl has krew installed
      oc create ns tk-tenant
      
      # secret from minio example
      
      echo 'apiVersion: v1                           
      kind: Secret
      metadata:
        name: minio-creds-secret
      type: Opaque
      data:
        accesskey: bWluaW8=
        secretkey: bWluaW8xMjM=
      ' | oc create -n tk-tenant -f - 
      
      oc minio tenant create tk-tenant --servers 1 --volumes 1 --namespace tk-tenant --capacity 100Gi
      # minio displays username/password
      # edit tenant secret name
      oc edit tenant tk-tenant
      # spec:
      #   credsSecret:
      #     name: minio-creds-secret
      
      # minio eventually generated TLS certs stored in secret named tk-tenant-tls in ns tk-tenant.
      # we would want to mount this in velero pod configured via dpa
      
      # create BSL
      # backup internal image
      

      we can make use of Configuring a custom PKI - Networking - OpenShift Container Platform 4.10 Certificate injection using Operators

       

            wnstb Wes Hayutin
            tkaovila@redhat.com Tiger Kaovilai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: