New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolate credentials #3153
base: master
Are you sure you want to change the base?
Interpolate credentials #3153
Conversation
Hmm, I think this will allow for recursive interpolation and break Liquid's security model. (by putting a We can probably introduce global variables to replace credentials where each value is defined in JSON. |
How about adding a "data type" (string or JSON) column to credentials? /cc @dsander |
What about building the message body piecewise?
It would be more flexible and less prone to accidental recursion. |
That would be ok if there was only one or two tags, but if there are multiple then it will get messy quickly. For example, a custom email message body that displays multiple tags |
I suppose that could be easily tested to see if it is the case. |
Don't we - in theory - have that problem in more places? I am not so concerned about it because the user would be creating the recursive interpolation by themselves.
Maybe we are thinking about the same here. What I did not consider when I made the initial suggestion is backwards compatibility. If we would interpolate liquid in all credentials the result of |
Interpolate credentials to allow the use and expansion of liquid tags in inside credentials
Typical use case is defining the
body
for anEmailAgent
using credentials. This ensures any liquid formatting inside the credential is correctly interpolated.@dsander, you mentioned a different use case in this post #2121 (comment)
I think this is worthwhile, although you may have a better implementation.