Skip to content

Commit 78e57fe

Browse files
authored
Merge pull request #241 from cognifloyd/stringify
Automatically stringify st2.datastore_crypto_key and st2chatop.env values
2 parents 4d19ef9 + d06b7f6 commit 78e57fe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Fix a bug when datastore cryto keys are not able to read by the rules engine. ``datastore_crypto_key`` volume is now mounted on the ``st2rulesengine`` pods (#223) (by @moti1992)
2323
* Minimize required sensor config by using default values from st2sensorcontainer for each sensor in st2.packs.sensors (#221) (by @cognifloyd)
2424
* Do not template rabbitmq secrets file unless rabbitmq subchart is enabled. (#242) (by @cognifloyd)
25+
* Automatically st2chatop.env values if needed. (#241) (by @cognifloyd)
2526

2627
## v0.60.0
2728
* Switch st2 version to `v3.5dev` as a new latest development version (#187)

templates/secrets_st2chatops.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ metadata:
1616
type: Opaque
1717
data:
1818
{{- range $env, $value := .Values.st2chatops.env }}
19-
{{ $env }}: {{ $value | b64enc | quote }}
19+
{{ $env }}: {{ $value | toString | b64enc | quote }}
2020
{{- end }}
2121
{{- end }}

values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ st2:
5050
# ST2 crypto key for the K/V datastore.
5151
# See https://docs.stackstorm.com/datastore.html#securing-secrets-admin-only for more info.
5252
# Warning! Replace with your own generated key!
53-
#datastore_crypto_key: {"hmacKey": {"hmacKeyString": "", "size": 256}, "size": 256, "aesKeyString": "", "mode": "CBC"}
53+
#datastore_crypto_key: >-
54+
# {"hmacKey": {"hmacKeyString": "", "size": 256}, "size": 256, "aesKeyString": "", "mode": "CBC"}
5455
# SSH private key for the 'stanley' system user ('system_user.ssh_key_file' in st2.conf)
5556
# If set, st2.ssh_key always overrides any existing ssh_key.
5657
# If not set, the ssh_key is auto-generated on install and preserved across upgrades.

0 commit comments

Comments
 (0)