Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Add base64 encoding? #163

Closed
Davidsv opened this issue May 28, 2020 · 3 comments
Closed

Add base64 encoding? #163

Davidsv opened this issue May 28, 2020 · 3 comments

Comments

@Davidsv
Copy link

Davidsv commented May 28, 2020

Can base64 encoding be added? Sometimes the replaced value can interfere with the overall file. In this particular case I am thinking about kubernetes secrets.

@qetza
Copy link
Owner

qetza commented May 31, 2020

Hi @Davidsv,
Do you need all variables to be base64 encoded or only specific ones?

If you need only specific ones a quick workaround would be to do yourself the base64 encoding and store the result in your variable instead of the unencoded one (or add another variable).

As i'm thinking adding support for simple functions to transform variable values i could add a tobase64 function, this would look like this : #{ tobase64(my-variable-name) }#.

@Davidsv
Copy link
Author

Davidsv commented Jun 3, 2020

@qetza Thanks for the reply,
I need almost all variables like this, so the workaround would not really be practical (and I don't own all the variables).
Regarding simple transform functions, if I can give a suggestion, to add an option in the task interface instead of/in addition to at the token level, to easily apply the transform to all matched tokens. Also it avoids need to change the files containing the token.

@qetza
Copy link
Owner

qetza commented Aug 22, 2021

The new release now support the base64 tranformation.

@qetza qetza closed this as completed Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants