Skip to content

Commit d06b7f6

Browse files
committed
Change datastore_crypto_key docs instead of passing value through toJson
1 parent 42a4a84 commit d06b7f6

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +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 stringify st2.datastore_crypto_key and st2chatop.env values if needed. (#241) (by @cognifloyd)
25+
* Automatically st2chatop.env values if needed. (#241) (by @cognifloyd)
2626

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

templates/secrets_datastore_crypto_key.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ metadata:
2020
type: Opaque
2121
data:
2222
# Datastore key used to encrypt/decrypt record for the KV store
23-
{{- if kindIs "string" .Values.st2.datastore_crypto_key }}
2423
datastore_crypto_key: {{ .Values.st2.datastore_crypto_key | b64enc }}
25-
{{- else }}
26-
datastore_crypto_key: {{ .Values.st2.datastore_crypto_key | toJson | b64enc }}
27-
{{- end }}
2824

2925
{{- 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)