Skip to content

Commit

Permalink
Merge pull request #241 from cognifloyd/stringify
Browse files Browse the repository at this point in the history
Automatically stringify st2.datastore_crypto_key and st2chatop.env values
  • Loading branch information
cognifloyd authored Sep 8, 2021
2 parents 4d19ef9 + d06b7f6 commit 78e57fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* 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)
* Minimize required sensor config by using default values from st2sensorcontainer for each sensor in st2.packs.sensors (#221) (by @cognifloyd)
* Do not template rabbitmq secrets file unless rabbitmq subchart is enabled. (#242) (by @cognifloyd)
* Automatically st2chatop.env values if needed. (#241) (by @cognifloyd)

## v0.60.0
* Switch st2 version to `v3.5dev` as a new latest development version (#187)
Expand Down
2 changes: 1 addition & 1 deletion templates/secrets_st2chatops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ metadata:
type: Opaque
data:
{{- range $env, $value := .Values.st2chatops.env }}
{{ $env }}: {{ $value | b64enc | quote }}
{{ $env }}: {{ $value | toString | b64enc | quote }}
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ st2:
# ST2 crypto key for the K/V datastore.
# See https://docs.stackstorm.com/datastore.html#securing-secrets-admin-only for more info.
# Warning! Replace with your own generated key!
#datastore_crypto_key: {"hmacKey": {"hmacKeyString": "", "size": 256}, "size": 256, "aesKeyString": "", "mode": "CBC"}
#datastore_crypto_key: >-
# {"hmacKey": {"hmacKeyString": "", "size": 256}, "size": 256, "aesKeyString": "", "mode": "CBC"}
# SSH private key for the 'stanley' system user ('system_user.ssh_key_file' in st2.conf)
# If set, st2.ssh_key always overrides any existing ssh_key.
# If not set, the ssh_key is auto-generated on install and preserved across upgrades.
Expand Down

0 comments on commit 78e57fe

Please sign in to comment.