Skip to content

x509: certificate signed by unknown authority in oadp-aws-registry pod #351

@gorantornqvist

Description

@gorantornqvist

Describe the bug

Hi,
I had a working install for 0.2.6 and then I upgraded to 0.3.0 according to docs but after I created the velero object, the oadp-velero-name-1-aws-registry-7bfdb7b77f-bwbqr pod throws a "x509: certificate signed by unknown authority" error and then crashes:

time="2021-09-29T13:20:11.926600357Z" level=error msg="response completed with error" err.code=unknown err.detail="s3aws: RequestError: send request failed\ncaused by: Get https://netapp-storagegrid-s3-endpoint/nimbus-demo-customer-ec-u12-dr01?delimiter=%2F&list-type=2&max-keys=1000&prefix=docker%2Fregistry%2Fv2%2Frepositories%2F: x509: certificate signed by unknown authority" err.message="unknown error" go.version=go1.13.8 http.request.host="172.19.16.128:5000" http.request.id=7aa63461-d0be-49eb-a4f8-ab68b0b1c914 http.request.method=GET http.request.remoteaddr="172.19.16.2:39468" http.request.uri="/v2/_catalog?n=5" http.request.useragent=kube-probe/1.21 http.response.contenttype=application/json http.response.duration=351.444579ms http.response.status=500 http.response.written=104

Has there been any change in the format for the caCert bundle?

I currently have this order in the PEM CA bundle:

  • IssuingCA
  • RootCA

This is my Velero CR:

apiVersion: oadp.openshift.io/v1alpha1
kind: Velero
metadata:
  name: demo-customer
  namespace: openshift-adp
spec:
  olmManaged: true
  backupStorageLocations:
    - name: nimbus-demo-customer
      credential:
        name: cloud-credentials-demo-customer
        key: cloud
        namespace: openshift-adp
      provider: aws
      objectStorage:
        bucket: nimbus-demo-customer-ec-u12-dr01
        prefix: nimbus
        caCert: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk...........BVEUtLS0tLQo=
      config:
        region: us-east-1
        profile: "default"
        insecureSkipTlsVerify: "false"
        signatureVersion: "4"
        s3Url: "https://my-netapp-storagegrid-s3-endpoint"
        s3ForcePathStyle: "true"
  defaultVeleroPlugins:
    - aws
    - csi
    - openshift
  veleroFeatureFlags:
    - EnableCSI
  enableRestic: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions