-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
feature request: new built-in function base64(string) #3320
Comments
It sounds good to me! If someone wants to look at implementing this and hasn't done this sort of thing before, my PR #3127 is an example of a change adding new interpolation functions. Since encoding/base64 is in the Go standard library the implementation should be relatively simple. |
fixes hashicorp#3320 Signed-off-by: Gorka Lerchundi Osa <[email protected]>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I would like to include in a cloud-config (which is formatted using YAML) section my custom certification authority certificate, which contains newlines. If I use directly with ${file} cloud-config will fail parsing.
What do you think if we can make a function like base64("mystring") which interpolates to the encoded base64 format?
Use-case:
WDYT?
The text was updated successfully, but these errors were encountered: