-
-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4634 from userlocalhost/bugfix/st2kv_jinja
Fixed a problem not to decrypt user scope data store value in Jinja expression
- Loading branch information
Showing
6 changed files
with
153 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
contrib/examples/actions/chains/decrypt_kv_jinja_filter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
vars: | ||
encrypted_cmd: "{{ st2kv.system.my_cmd | decrypt_kv }}" | ||
encrypted_cmd_system_scope: "{{ st2kv.system.my_cmd | decrypt_kv }}" | ||
encrypted_cmd_user_scope: "{{ st2kv.user.my_cmd | decrypt_kv }}" | ||
chain: | ||
- | ||
name: "c1" | ||
ref: "core.local" | ||
parameters: | ||
cmd: 'echo {{encrypted_cmd}}' | ||
cmd: 'echo {{encrypted_cmd_system_scope}}' | ||
on-success: "c2" | ||
- | ||
name: "c2" | ||
ref: "core.local" | ||
parameters: | ||
cmd: 'echo {{encrypted_cmd_user_scope}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters