[PATCH v2 9/9] docs: secret: Unify and sanitize examples on how to set secret value
Peter Krempa
pkrempa at redhat.com
Mon Jan 27 08:59:01 UTC 2020
On Fri, Jan 24, 2020 at 10:41:00 -0600, Eric Blake wrote:
> On 1/24/20 10:08 AM, Peter Krempa wrote:
> > Discourage passing secrets as commandline arguments.
> >
> > Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> > ---
> > docs/formatsecret.html.in | 88 +++++++++++++++++++++++++--------------
> > 1 file changed, 57 insertions(+), 31 deletions(-)
> >
>
> >
> > + <h2><a id="settingSecrets">Setting secret values in virsh</a></h2>
> > +
>
> > + </pre>
> > +
> > + <p>
> > + The secret can also be set via an argument, but note that other users
> > + may see it in the process listing output. The secret must be base64
> > + encoded.
>
> Is this last sentence still accurate, given that you can pass --plain to
> avoid base64 encoding?
I didn't allow to use --plain together with passing it on the command
line. --plain works only in conjunction with --file. I didn't see a
point of adding new features to an insecure way of doing things.
> Should the note use <b> or other formatting to call attention to the
> security risk of doing it this way?
Yeah, I can add it.
More information about the libvir-list
mailing list