Skip to content

Commit a3b09aa

Browse files
authored
fix(deployment): hmac secret fix (#80)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 83559e3 commit a3b09aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: chainloop
33
description: Chainloop is an open source software supply chain control plane, a single source of truth for artifacts plus a declarative attestation crafting process.
44

55
type: application
6-
version: 1.0.4
6+
version: 1.0.5
77
appVersion: v0.8.98
88

99
dependencies:

deployment/chainloop/templates/controlplane/config.secret.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ stringData:
3535
{{- end }}
3636
3737
# HMAC key used to sign the JWTs generated by the controlplane
38-
# NOTE: We are base64 encoding the value but can't remove it because it's quoted too by the helper
39-
# TODO: Make sure we inject the pass here verbatim
40-
generated_jws_hmac_secret: {{ $hmacpass }}
38+
# The helper returns the base64 quoted value of the secret
39+
# We need to remove the quotes and then decoding it so it's compatible with the stringData stanza
40+
generated_jws_hmac_secret: {{ $hmacpass | replace "\"" "" | b64dec | quote }}
4141
4242
# Private key used to sign the JWTs meant to be consumed by the CAS
4343
cas_robot_account_private_key_path: "/tmp/cas.private.key"

0 commit comments

Comments
 (0)