Creating nested MD5 hash not working properly with env variables #5834
Unanswered
jonguenther
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I am trying to create a md5 hash as a nested environment variable. If I am doing it on the root level, it works just fine, however, when I try to do it inside an object, it fails. Also note that in the environment manager itself it displays the value of the hash correctly.
This is my general hash logic. The final "product" is a
secret_hash
env variable:which returns the correct hash of
4a508835b5962d6ce277afe9abddb000
.However, when I try to put it into an object (e.g.
hash
) likeit returns a wrong hash
b60bd7a47d480f3e12bffb7051f8a744
(which is the hash of"{{ _.hash.key }}{{ _.hash.liveDate }}"
).The issue seems to be similar to #2271, although according to the "top-bottom" processing, shouldn't it still work inside an object prop?
Edit:
I tried to circumvent the issue by keeping the hash creation at top-level and then use the
secret_hash
in a nested object likebut unfortunately, it does not resolve the variables in
hash_input
before hashing it insecret_hash
, i.e."{{ _.hash.key }}{{ _.hash.liveDate }}"
is hashed instead ofsecretKeyfoo
😢Beta Was this translation helpful? Give feedback.
All reactions