Is base64 really the best way to use complex config values

Tilman Baumann tilman.baumann at
Wed Jun 7 16:22:33 UTC 2017

I see a lot of charms use base64 values in config parameters. Especially
when the values are stuff like custom templates.

Is this really the way to go? It may avoid shell quoting hell for
parameters set via command line. (Usually trivial)
But when set via --file option (which is clearly the better way with
complex fields) then I have to say the 'here document' features of YAML
are actually quite good.

The problem I see with bas64 is that nobody can read it without decoding
it every time.


Just as a example of what I mean:
application: logstash-supportcloud
charm: logstash-conf-d
    value: |
           filter {
               if [message] == "" {
                   drop { }
           output {
               gelf {
                   host => "foobar"
                   port => "5002"

 Tilman Baumann

More information about the Juju mailing list