Skip to content

Commit

Permalink
Added secrets to Helm charts, incremented chart versions to trigger r…
Browse files Browse the repository at this point in the history
…eleaser workflow
  • Loading branch information
csotiistvan authored Jun 11, 2024
1 parent d896c7a commit 822be54
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k8s/helm/tngkds/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion k8s/helm/tngkds/charts/tngkds-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion k8s/helm/tngkds/charts/tngkds-postgres/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 8 additions & 0 deletions k8s/helm/tngkds/templates/did-signer-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Secret
apiVersion: v1
metadata:
name: did-signer-secret
namespace: {{ .Release.Namespace }}
data:
did-signer.p12: {{ .Values.secrets.didSigner }}
type: Opaque
10 changes: 10 additions & 0 deletions k8s/helm/tngkds/templates/mtls-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: Secret
apiVersion: v1
metadata:
name: mtls-secret
namespace: {{ .Release.Namespace }}
data:
tls_key_store.p12: {{ .Values.secrets.mtls.tlsKeyStore }}
tng_tls_server_truststore.p12: {{ .Values.secrets.mtls.tlsServerTrustStore }}
trustanchor_store.jks: {{ .Values.secrets.mtls.tlsTrustAnchorStore }}
type: Opaque
8 changes: 8 additions & 0 deletions k8s/helm/tngkds/templates/tng-distribution-pull-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Secret
apiVersion: v1
metadata:
name: tng-distribution-pull-secret
namespace: {{ .Release.Namespace }}
data:
.dockerconfigjson: {{ .Values.secrets.dockerPull }}
type: kubernetes.io/dockerconfigjson
8 changes: 8 additions & 0 deletions k8s/helm/tngkds/templates/truststore-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Secret
apiVersion: v1
metadata:
name: truststore-secret
namespace: {{ .Release.Namespace }}
data:
tls_trust_store.jks: {{ .Values.secrets.trustStore }}
type: Opaque
8 changes: 8 additions & 0 deletions k8s/helm/tngkds/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ tngkds-backend:
alias: trustanchor
password: <password of trustanchor_store>
path: /certs/trustanchor_store.jks
secrets: # Below are all b64 encoded
didSigner: <DID signer cert>
dockerPull: <docker pull secret>
trustStore: <trust store jks>
mtls:
tlsKeyStore: <tls trust store>
tlsServerTrustStore: <tls server trust store>
tlsTrustAnchorStore: <tls trustanchor store>

0 comments on commit 822be54

Please sign in to comment.