Skip to content

Commit

Permalink
[PLAT-13422] Generate and save ca certificates along with self signed…
Browse files Browse the repository at this point in the history
… certificates to allow YBA clients to validate YBA certs

Summary: [PLAT-13422] Generate and save ca certificates along with self signed certificates to allow YBA clients to validate YBA certs

Test Plan:
Upgrade tests

```
[centos@dev-server-anijhawan-4 yugaware]$ kubectl get secrets -n test-anijhawan-helm-2 yw1-yugaware-tls-pem  -o yaml
apiVersion: v1
data:
  server.pem: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0NBUUVBeXlVVGUrcHVIaW5tSWhUeG5QWWF3OHFkOHRCUCt6RzVEM3RrekdZVWdDYVRaeUt2CmtMQ2M3bFRqbEc3d1h5TGtCZmRkT1QxTEJxMnBvSUcxWTBUM1MrZ1daQUx6MnJFRW0rcHFXRkJJbVlNSURhZnkKejNvZUFHZERPZ016UlJYS0RpUkVGUlM0WTBDLzZTcVNYL0ExbTBYVDJDellabklCQkNRQVU5UStya1Q0eEhSdApueFhqd2lFZ2p5UnFoT0tkZDB2eGw3eGhQYUpLbWQ0SG5Db1M4ZS9SNVdJb0JkMHdlZXVaeWc1cFk1S04zNUw4CjRFSjBkUkxmaDBkeXFtU3BuNWRrcXpwZzR4bGpuZHd2TmFpeDlBcU9iNHdUaUl6UEVmQ2ZNM1ZOMnVZQlNSNWQKak9GbElOeS9DZzVsa0t1TEdMUHZXVFBZYUNEOXFTRWxMeG1HbVFJREFRQUJBb0lCQVFDQUVTdXJYeXQwMEsxSQpwek42NUp3Uyt0V0FrbHNaM1VyeHU3VGNOeTZOYThSWnJNQkowMDNiNHFCbW4xbmlZRGlvbWoybkxFRDBRTjlEClZRSnBScjB3bVd3a09NaExBbllKWlVzTnllODYrQ1JIbDYyM3B5RHEyQzdGaitidWtzSURFRkhyaUZpR0dmZmkKb3ZnTWkzOEFHSkZwSXp4NXVUMXl3cytDQ2JoS1hBbEQxR012S09rNHdLd01IL2EyVDA4QTZmT0dGUGN0ODBTM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QXFPYjR3VGlJelBFZkNmTTNWTjJ1WUJTUjVkCmpPRmxJTnkvQ2c1bGtLdUxHTFB2V1RQWWFDRDlxU0VsTHhtR21RSURBUUFCb3o4d1BUQU9CZ05WSFE4QkFmOEUKQkFNQ0JhQXdIUVlEVlIwbEJCWXdGQVlJS3dZQkJRVUhBd0VHQ0NzR0FRVUZCd01DTUF3R0ExVWRFd0VCL3dRQwpNQUF3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUtjVjd2M3VYYVkzNGNqSGoyVEhkckI0ZGRGZTJMWU02cTM3CmtWRWVOQWdtaWJ1UU9zcFBtemViZCtxaWRpcENtKzMzV0xvcTZOU3R1bWtKOEJjUkNxNk4zN2toWTlvWWVxTzgKMlVnb0pBaldMcEFRQ1JSbHMvK0JES0RsUzZIWTdCb3BId3ZvODJYZUlTL28yNjVBRUZleXFoVXNXZGlnbFJWbQpXSVhURnNaaFNDa1RYZGZCdENTcXN2cmQ1R2czbkdhT05nQkVMY0dkMkN2ektIS05wUnFhNmhwWWtsQVJQREZhClk2Sk9TNXJ6cGZ6LzZ2VlFuSWJvQjFXVXlTeE8xanYwZnVpdXhORjdCa1VIdVVBajlTdHJPdmtEODRiaFRobE8KV2hjWU15RVZSaWhPSEdpTnFMVWRtS2VuNzhIMUpmVHJHdG16cmNtaEhlQTQ1T2FiY21NPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
kind: Secret
metadata:
  annotations:
    meta.helm.sh/release-name: yw1
    meta.helm.sh/release-namespace: test-anijhawan-helm-2
  creationTimestamp: "2024-06-24T22:21:03Z"
  labels:
    app: yugaware
    app.kubernetes.io/managed-by: Helm
    chart: yugaware
    heritage: Helm
    release: yw1
  name: yw1-yugaware-tls-pem
  namespace: test-anijhawan-helm-2
  resourceVersion: "208270922"
  uid: e1f4a484-4e25-4a3d-8960-3faeb5597196
type: Opaque
[centos@dev-server-anijhawan-4 yugaware]$ cat ~/cmd
helm upgrade yw1 ~/code/charts/stable/yugaware --namespace test-anijhawan-helm-2 --wait --debug --timeout 3600s --set=yugaware.multiTenant=true,yugaware.resources.requests.cpu=5,nginx.resources.requests.cpu=0.25,postgres.resources.requests.cpu=0.5,prometheus.resources.requests.cpu=0.5,yugaware.resources.requests.memory=8Gi,nginx.resources.requests.memory=300Mi,postgres.resources.requests.memory=1Gi,prometheus.resources.requests.memory=4Gi,image.repository=quay.io/yugabyte/yugaware-itest,image.tag=2.21.0.0-b545,yugaware.storageClass=yb-standard,image.pullPolicy=Always,yugaware.service.annotations.networking\\.gke\\.io\\/load-balancer-type=Internal,additionalAppConf.nonStringConf.yb\\.internal\\.headers\\.subtask-abort-position\\.enabled=true,securityContext.enabled=true,securityContext.runAsUser=10002,securityContext.runAsGroup=10002,securityContext.fsGroup=10002 --set=helm.timeout=3600  --set=tls.enabled=true

[centos@dev-server-anijhawan-4 yugaware]$ helm upgrade yw1 ~/code/charts/stable/yugaware --reuse-values  -n test-anijhawan-helm-2
Release "yw1" has been upgraded. Happy Helming!
NAME: yw1
LAST DEPLOYED: Mon Jun 24 22:51:29 2024
NAMESPACE: test-anijhawan-helm-2
STATUS: deployed
REVISION: 4

[centos@dev-server-anijhawan-4 yugaware]$ kubectl get secrets -n test-anijhawan-helm-2 yw1-yugaware-tls-pem  -o yaml
apiVersion: v1
data:
  ca.pem: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURGRENDQWZ5Z0F3SUJBZ0lSQU9SWGhrbnR1K3Q3RXNXclIyeUErdDR3RFFZSktvWklodmNOQVFFTEJRQXcKRkRFU01CQUdBMVVFQXhNSmJHOWpZV3hvYjNOME1CNFhEVEkwTURZeU5ESXlOVEV5T0ZvWERUTTBNRFl5TWpJeQpOVEV5T0Zvd0ZERVNNQkFHQTFVRUF4TUpiRzlqWVd4b2IzTjBNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DCkFROEFNSUlCQ2dLQ0FRRUF2ZXFOREVCNXpIbTdBd05GNVhtY0xaOVd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qQVVCZ2dyQmdFRkJRY0RBUVlJS3dZQkJRVUhBd0l3REFZRFZSMFRBUUgvQkFJdwpBREFOQmdrcWhraUc5dzBCQVFzRkFBT0NBUUVBcmx3M2FEVXg5MXl4Smw5VVExaDFwUm9mQ0RjV2hzNnhIWkw3ClpXaGlDbWx4Y2lqbmo4MEpZUDlDczRGalIwQkdEUWcwaHBIRG9qT2hXNkF6TmgrNjZzQWVrRHNrTDJzSHVGR2kKVTVwQUMxYnRPWmdlb3drUVNydDZLV240RXpYVUFJL1E3bkwyaTUrakhBTnV3dXRaaDdyc3JQdHowYkQ0QjFHUApudE9sSHFhR2NUeFdBNzVjZHVmOVo4ZG5ueVBaRVpoVW5wUWo4eWl6ZC9qeTVnM2N5Rk9aamU4MmJtSzJmR3lzCnZXNHQ1ZllCNHJMM3VXVWYyUkNPeWFnZk91TCt1L0tLR0swZzRzZ3BNelR5cEh0V1RTeE1BSyt1Q2hESjVNSXAKSCt3dHdoK3loQnQvbU9qYTJXK1B5b1M1QkNjRGZJQUhNTHp0dW85VGFaL3pnN1ljaFE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
kind: Secret
metadata:
  annotations:
    meta.helm.sh/release-name: yw1
    meta.helm.sh/release-namespace: test-anijhawan-helm-2
  creationTimestamp: "2024-06-24T22:21:03Z"
  labels:
    app: yugaware
    app.kubernetes.io/managed-by: Helm
    chart: yugaware
    heritage: Helm
    release: yw1
  name: yw1-yugaware-tls-pem
  namespace: test-anijhawan-helm-2
  resourceVersion: "208271815"
  uid: e1f4a484-4e25-4a3d-8960-3faeb5597196
type: Opaque

```

====

Generated some more

```
populated all values.

stable/yugaware/values.yaml --- YAML
270       memory: 4Gi                                                                                                 270       memory: 4Gi
271                                                                                                                   271
272 tls:                                                                                                              272 tls:
273   enabled: false                                                                                                  273   enabled: true
274   hostname: "localhost"                                                                                           274   hostname: "localhost"
275   ## Expects base 64 encoded values for certificate and key.                                                      275   ## Expects base 64 encoded values for certificate and key.
276   certificate: ""                                                                                                 276   certificate: "foobar"
277   key: ""                                                                                                         277   key: "foobar"
278   ca_certificate: ""                                                                                              278   ca_certificate: "foobar"
279   ca_key: ""                                                                                                      279   ca_key: "foobar"
280   sslProtocols: "" # if set, override default Nginx SSL protocols setting                                         280   sslProtocols: "" # if set, override default Nginx SSL protocols setting
281   ## cert-manager values                                                                                          281   ## cert-manager values
282   ## If cert-manager is enabled:                                                                                  282   ## If cert-manager is enabled:

```

```
# Source: yugaware/templates/configs.yaml
apiVersion: v1
kind: Secret
metadata:
  name: release-name-yugaware-tls-pem
  labels:
    app: "yugaware"
    chart: "yugaware"
    release: "release-name"
    heritage: "Helm"
type: Opaque
data:
  ca.pem: aWxsZWdhbCBiYXNlNjQgZGF0YSBhdCBpbnB1dCBieXRlIDQKaWxsZWdhbCBiYXNlNjQgZGF0YSBhdCBpbnB1dCBieXRlIDQ=
  server.pem: aWxsZWdhbCBiYXNlNjQgZGF0YSBhdCBpbnB1dCBieXRlIDQKaWxsZWdhbCBiYXNlNjQgZGF0YSBhdCBpbnB1dCBieXRlIDQ=
---
```

```
tls.enabled, ca_certificate empty.
[centos@dev-server-anijhawan-4 yugaware]$ git diff
stable/yugaware/values.yaml --- YAML
270       memory: 4Gi                                                                                                 270       memory: 4Gi
271                                                                                                                   271
272 tls:                                                                                                              272 tls:
273   enabled: false                                                                                                  273   enabled: true
274   hostname: "localhost"                                                                                           274   hostname: "localhost"
275   ## Expects base 64 encoded values for certificate and key.                                                      275   ## Expects base 64 encoded values for certificate and key.
276   certificate: ""                                                                                                 276   certificate: "foobar"
277   key: ""                                                                                                         277   key: "foobar"
278   ca_certificate: ""                                                                                              278   ca_certificate: ""
279   ca_key: ""                                                                                                      279   ca_key: ""
280   sslProtocols: "" # if set, override default Nginx SSL protocols setting                                         280   sslProtocols: "" # if set, override default Nginx SSL protocols setting

```

```
type: Opaque
data:

  server.pem: aWxsZWdhbCBiYXNlNjQgZGF0YSBhdCBpbnB1dCBieXRlIDQKaWxsZWdhbCBiYXNlNjQgZGF0YSBhdCBpbnB1dCBieXRlIDQ=

```

Generated helm template and checked that ca.pem was generated along with server.pem.
```
# Source: yugaware/templates/configs.yaml
apiVersion: v1
kind: Secret
metadata:
 name: release-name-yugaware-tls-pem
 labels:
  app: "yugaware"
  chart: "yugaware"
  release: "release-name"
  heritage: "Helm"
type: Opaque
data:
 server.pem: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcFFJQkFBS0NBUUVBdG1ldGxETWppZkNQdmJ1bmkrZWlIRFVxQ0I4Nm8weSszZjg2R3Z1WnNPVTdlUkdzCmFyd1c1ZUhMRi9xWVN6czJubjlmWmdNWEZUY3oxMjRwdkNiWFQzV3BQK3J1MWdFVVR5aWhzZjE5MlJETFZwVUUKWXMvQ3g5aFRsRjJQL0Zvai9BMzlaWElpQ0l2VlJ2dlcvd3BDWG5oOHpXQ3ZLcnFsbEN1cWtmZlliKzJGVzdOegpCM09GWDFVM1l0dFU5T0R1Rm1wcTNyTzBrOGhycUpQSzVHa0hibWpiMmkvZGtEckxhcXpwK1Nkb2ZUMHhlWHEwCnczSng4WlJ5QkUvNm5pWmhVN1JZM0Z6RS9IV0FtVjhUZHdNWFRzLzRpUkpXM0lzYzJSRDF0Uk9oVCt4dzQ5NDMKdU5teDFVeUkvZTVpekxhRWk2eXJkQW9rQkZGQUEvbUdmaUNhdHdJREFRQUJBb0lCQUE4VHFNUk1LYzdZQkhtUgpUanNCTFdRWmZOem8vK2JKakNrN1ZHa3dqTGFUYkFRSTB2Q0xsWFR3NGVHY2hBUUw0K3JiNmwyN09hZzJST0cwCnFGeDE5V3dLOUs5azB0TDdpZHMxSjVCWHZKUTVrQ1VhOGg3Y3YyUFhYS2t4eHBuOE5XYzdITXZLMEVkV2o0MXIKZVl6aEl6VTl6a3NIaDlNSFZISlgzYVJ0RVFYSFAyY1pQN3dFYVRIT2xHVUtSR3pYYzBRQ3BQVy9BSk4xTDNTVgpaRmZqS0wzbnB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G9xNGFBdlRJbzgrbTVVCjhYdkpiZDdhOGdiWFMrU2locjAvUlg1ZW95QXRWNWRjSVZiamkxWmVjUVpESE9MZm9VUTdRR3FKWVZZOCthQWUKQ0tIOWdEWS9UeUx1NGVnNHlsdjdxeXNyNVdFMWRMaUMzbG1WaG1VcHhrdjVtTkR6dVNiSFNCc3RLK0Uya2loSgpQRk5pZmdTS1N6YW5PbkZWWVVvQjNaZVA5K0lsZS9FPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
```

Reviewers: sanketh, muthu, bgandhi, dshubin

Reviewed By: muthu, dshubin

Subscribers: dshubin, yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D36069
  • Loading branch information
amannijhawan committed Jun 25, 2024
1 parent d0ce1cc commit 50815b5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
34 changes: 25 additions & 9 deletions stable/yugaware/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,21 @@ Get or generate server cert and key
{{- if and $root.Values.tls.certificate $root.Values.tls.key -}}
server.key: {{ $root.Values.tls.key }}
server.crt: {{ $root.Values.tls.certificate }}
{{- if $root.Values.tls.ca_certificate -}}
ca.crt: {{ $root.Values.tls.ca_certificate }}
{{- end -}}
{{- else -}}
{{- $result := (lookup "v1" "Secret" .Namespace .Name).data -}}
{{- if $result -}}
{{- if and $result (index $result "server.pem") (index $result "ca.pem") -}}
server.key: {{ index $result "server.key" }}
server.crt: {{ index $result "server.crt" }}
ca.crt: {{ index $result "ca.crt" }}
{{- else -}}
{{- $cert := genSelfSignedCert $root.Values.tls.hostname nil nil 3560 -}}
{{- $caCert := genCA $root.Values.tls.hostname 3650 -}}
{{- $cert := genSignedCert $root.Values.tls.hostname nil nil 3650 $caCert -}}
server.key: {{ $cert.Key | b64enc }}
server.crt: {{ $cert.Cert | b64enc }}
ca.crt: {{ $caCert.Cert | b64enc }}
{{- end -}}
{{- end -}}
{{- end -}}
Expand All @@ -166,17 +172,27 @@ Get or generate server key cert in pem format
{{- $decodedCert := $root.Values.tls.certificate | b64dec -}}
{{- $serverPemContentTemp := ( printf "%s\n%s" $decodedKey $decodedCert ) -}}
{{- $serverPemContent := $serverPemContentTemp | b64enc -}}
{{- if $root.Values.tls.ca_certificate -}}
{{- $caPemContent := $root.Values.tls.ca_certificate -}}
ca.pem: {{ $caPemContent }}
{{- end}}
server.pem: {{ $serverPemContent }}
{{- else -}}
{{- $result := (lookup "v1" "Secret" .Namespace .Name).data -}}
{{- if $result -}}
{{- $serverPemContent := ( index $result "server.pem" ) -}}
server.pem: {{ $serverPemContent }}
{{- if and $result (index $result "server.pem") (index $result "ca.pem") -}}
{{- $serverPemContent := ( index $result "server.pem" ) -}}
{{- $caPemContent := ( index $result "ca.pem" ) -}}
ca.pem: {{ $caPemContent }}
server.pem: {{ $serverPemContent }}
{{- else -}}
{{- $cert := genSelfSignedCert $root.Values.tls.hostname nil nil 3560 -}}
{{- $serverPemContentTemp := ( printf "%s\n%s" $cert.Key $cert.Cert ) -}}
{{- $serverPemContent := $serverPemContentTemp | b64enc -}}
{{- $caCert := genCA $root.Values.tls.hostname 3650 -}}
{{- $cert := genSignedCert $root.Values.tls.hostname nil nil 3650 $caCert -}}
{{- $serverPemContentTemp := ( printf "%s\n%s" $cert.Key $cert.Cert ) -}}
{{- $serverPemContent := $serverPemContentTemp | b64enc -}}
{{- $caPemContentTemp := ( printf "%s" $caCert.Cert ) -}}
{{- $caPemContent := $caPemContentTemp | b64enc -}}
server.pem: {{ $serverPemContent }}
ca.pem: {{ $caPemContent }}
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down Expand Up @@ -274,4 +290,4 @@ Make list of custom http headers
{{- end -}}
{{- end -}}
]
{{- end -}}
{{- end -}}
3 changes: 0 additions & 3 deletions stable/yugaware/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ spec:
- name: {{ .Release.Name }}-yugaware-tls-pem
secret:
secretName: {{ .Release.Name }}-yugaware-tls-pem
items:
- key: server.pem
path: server.pem
{{- end }}
{{- if .Values.prometheus.remoteWrite.tls.enabled }}
- name: {{ .Release.Name }}-yugaware-prometheus-remote-write-tls
Expand Down
7 changes: 6 additions & 1 deletion stable/yugaware/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,14 @@ yugabytedb:
tls:
enabled: false
hostname: "localhost"
## Expects base 64 encoded values for certificate and key.
## Expects base64 encoded certificate, key, and CA certificate.
## Populate these for non-self-signed certificates.
## All three values should be base64 encoded.
## These will be used to create server.pem and ca.pem files.
## Note: The validity of the provided certificates is not verified.
certificate: ""
key: ""
ca_certificate: ""
sslProtocols: "" # if set, override default Nginx SSL protocols setting
## cert-manager values
## If cert-manager is enabled:
Expand Down

0 comments on commit 50815b5

Please sign in to comment.