litmus icon indicating copy to clipboard operation
litmus copied to clipboard

TLS config o SKIP_SSL_VERIFY in custom chaos hub connection?

Open mbecca opened this issue 1 year ago • 6 comments

mbecca avatar Oct 12 '22 03:10 mbecca

Hi @mbecca can you describe your issue and use case for better understanding?

avaakash avatar Oct 12 '22 09:10 avaakash

Hi @avaakash , when i try to connect a new chaos-hub repo via https with a self-signed certificate, I have the following error on litmus-portal-server:

Error in cloningtime="2022-10-11T21:10:30Z" level=error msg="Get "https://xxxx-gitlab.self-hosted.org/grupo/repo.git/info/refs?service=git-upload-pack": x509: certificate signed by unknown authority"

mbecca avatar Oct 12 '22 13:10 mbecca

Hello, any news about this question? I have the same problem as mbecca

francoischenu avatar Dec 21 '23 14:12 francoischenu

I create a CM with the cabundle

kubectl create cm cabundle --from-file=ca.crt=ca.crt

then I mount it in graphql pod:

portal:
  server:
    graphqlServer:
      volumes:
        - name: gitops-storage
          emptyDir: {}
        - name: hub-storage
          emptyDir: {}
        - name: certs
          configMap:
            name: cabundle
            items:
              - key: ca.crt
                path: ca-certificates.crt
      volumeMounts:
        - mountPath: /tmp/
          name: gitops-storage
        - mountPath: /tmp/version
          name: hub-storage
        - mountPath: /etc/ssl/certs/
          name: certs

jouve avatar Jan 22 '24 14:01 jouve

The solution of @jouve work perfectly for me.

@mbecca i think we can close this issue.

francoischenu avatar Feb 08 '24 08:02 francoischenu

The solution of @jouve work perfectly for me.

@mbecca i think we can close this issue.

LGFM! Thanks!

mbecca avatar Feb 09 '24 00:02 mbecca