Skip to content
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

Allow to set app config with base64 input #42

Open
weyert opened this issue Jan 22, 2020 · 2 comments
Open

Allow to set app config with base64 input #42

weyert opened this issue Jan 22, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@weyert
Copy link
Contributor

weyert commented Jan 22, 2020

If you want to set some long config value like some public key with lots of line breaks and spaces it's easier to this by the base64 encoding only currently this is not possible. Consider dokku_config in two modes plain and base64.

@ltalirz
Copy link
Member

ltalirz commented Sep 14, 2020

Are you aware of the pipe character in yaml? See e.g.

msg: |
hostname 'test.domain' not found in output of 'dokku domains':
{{ dokku_domains.stdout }}

It allows you to simply copy-paste multiline strings - all you need to do is indent the block. See also https://yaml-multiline.info/

Using base64-encoded input makes it obviously no longer human-readable, so I am wondering whether this would be a good idea. I vote for closing this but let's hear what @josegonzalez has to say as well.

@josegonzalez
Copy link
Member

josegonzalez commented Sep 14, 2020

I'm fine with adding base64 as an option, though certainly not as default. We can probably do the encoding in the library and have it be just a bool option on dokku_config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants