From 41318bd662dc1002632bc257e56486c668fd9a77 Mon Sep 17 00:00:00 2001 From: Dmitry Dodzin Date: Mon, 15 Apr 2024 10:38:12 +0300 Subject: [PATCH] Let operator create tls for now --- .github/workflows/ca.conf | 12 ------------ .github/workflows/ci.yaml | 10 +--------- .github/workflows/tls.conf | 19 ------------------- 3 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 .github/workflows/ca.conf delete mode 100644 .github/workflows/tls.conf diff --git a/.github/workflows/ca.conf b/.github/workflows/ca.conf deleted file mode 100644 index 0d744f2..0000000 --- a/.github/workflows/ca.conf +++ /dev/null @@ -1,12 +0,0 @@ -basicConstraints = CA:TRUE -keyUsage = cRLSign, keyCertSign - -[req] -distinguished_name = req_distinguished_name -prompt = no - -[req_distinguished_name] -C = US -O = MetalBear -emailAddress = ci@metalbear.co -CN = ci.metalbear.co diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index edbfda4..4e62516 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,13 +33,5 @@ jobs: cpus: 'max' memory: '4gb' - uses: azure/setup-helm@v4.1.0 - - run: | - openssl genrsa -out ca.key 4096 - openssl genrsa -out tls.key 4096 - openssl req -x509 -new -sha512 -nodes -key ./ca.key -days 7307 -out ./ca.crt -config ./.github/workflows/ca.conf - openssl req -new -key ./tls.key -out ./tls.csr -config ./.github/workflows/tls.conf - openssl x509 -req -in ./tls.csr -CA ./ca.crt -CAkey ./ca.key \ - -CAcreateserial -out ./tls.crt -days 10000 \ - -extensions v3_req -extfile ./.github/workflows/tls.conf - - run: helm install mirrord-operator --set license.file.data."license\\.pem"=$MIRRORD_OPERATOR_LICENSE --set operator.disableTelemetries=true --set tls.data."tls\\.key"="$(cat tls.key)" --set tls.data."tls\\.crt"="$(cat tls.crt)" ./mirrord-operator --wait + - run: helm install mirrord-operator --set license.file.data."license\\.pem"=$MIRRORD_OPERATOR_LICENSE --set operator.disableTelemetries=true ./mirrord-operator --wait - run: kubectl get mirrordoperators.operator.metalbear.co operator -o yaml diff --git a/.github/workflows/tls.conf b/.github/workflows/tls.conf deleted file mode 100644 index 9027855..0000000 --- a/.github/workflows/tls.conf +++ /dev/null @@ -1,19 +0,0 @@ -[req] -default_bits = 2048 -prompt = no -default_md = sha256 -x509_extensions = v3_req -distinguished_name = dn - -[dn] -C = US -O = MetalBear -emailAddress = ci@metalbear.co -CN = ci.metalbear.co - -[v3_req] -subjectAltName = @alt_names - -[alt_names] -DNS.1 = mirrord-operator.mirrord.svc -DNS.2 = mirrord-operator.mirrord.svc.cluster.local