Skip to content

Installer: self-signs certs cause installation failure #2216

@sehz

Description

@sehz

steps reproduce it:

  1. Create Kubernetes cluster with self-signed certs
  2. Installer will set up the cluster but SC and SPU pods are running correctly.

Please see: https://gist.github.com/tarokkk/be24d9c1fde100b21150fa26a6031ce9. Installer terminates with error:

Error:
   0: Fluvio cluster error
   1: Failed to install Fluvio on Kubernetes
   2: Kubernetes client error
   3: error trying to connect: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
   4: error trying to connect: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
   5: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
   6: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate

This is probably because K8 library doesn't add ca.crt in kubernetes.io/service-account-token.

kubectl get secret -n fluvio fluvio-token-5x5hb -o=jsonpath='{.data.ca.crt}' | base64 -D | openssl x509 -text                             *[master]
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            [xxx]
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN=cluster-7133-ca
        Validity
            Not Before: Feb 14 09:37:46 2022 GMT
            Not After : Feb 13 10:38:16 2027 GMT
        Subject: CN=kubernetes-ca

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions