Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/smhe 2267 add certificate keystore secret #130

Merged
merged 7 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/gxf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: gxf
description: Generic GXF Helm chart
version: '1.8.0'
version: '1.8.1'
icon: https://artwork.lfenergy.org/projects/grid-exchange-fabric/abbrev/color/grid-exchange-fabric-abbrev-color.png
maintainers:
- name: OSGP
Expand Down
2 changes: 1 addition & 1 deletion charts/gxf/config/tomcat/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SPDX-License-Identifier: Apache-2.0
prestartminSpareThreads="true"
secretRequired="false" />
{{- end }}
{{- if .Values.httpsConnector.enabled }}
{{- if and .Values.httpsConnector.enabled (not .Values.httpdSidecar.enabled) }}
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="{{ $maxThreads }}" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
Expand Down
12 changes: 12 additions & 0 deletions charts/gxf/templates/certificate-keystore-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-keystore-password
type: Opaque
data:
keystore-password: {{ $secret := lookup "v1" "Secret" .Release.Namespace (printf "%s-keystore-password" .Release.Name) }}
{{- if $secret -}}
{{- index $secret "data" "keystore-password" -}}
{{- else -}}
{{- randAlphaNum 32 | b64enc | quote -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/gxf/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
pkcs12:
create: true
passwordSecretRef:
name: keystore-password
key: password
name: {{ $.Release.Name }}-keystore-password
key: keystore-password
---
{{- end }}
Loading