Skip to content

Commit

Permalink
Merge pull request #37 from WorldHealthOrganization/fix/signing-algor…
Browse files Browse the repository at this point in the history
…ithm-for-did-signing

Fix/signing algorithm for did signing
  • Loading branch information
shreybansod authored Jun 14, 2024
2 parents d896c7a + 8c068b0 commit b19524b
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 4 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>
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public LocalKeystoreByteSigner(KdsConfigProperties kdsConfigProperties)
throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException,
UnrecoverableKeyException {

super("EC");
super("ES256");

KeyStore keyStore = KeyStore.getInstance("JKS");

Expand Down

0 comments on commit b19524b

Please sign in to comment.