All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: "Daniel P. Berrange" <berrange@redhat.com>,
	Eric Blake <eblake@redhat.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
	Jason Wang <jasowang@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] slirp: add SOCKS5 support
Date: Mon, 3 Apr 2017 13:49:11 +0200	[thread overview]
Message-ID: <1c40edcb-2543-7854-1c12-ed8a890836d4@vivier.eu> (raw)
In-Reply-To: <20170403114130.GT2768@redhat.com>

Le 03/04/2017 à 13:41, Daniel P. Berrange a écrit :
> On Mon, Mar 27, 2017 at 01:41:36PM -0500, Eric Blake wrote:
>> On 03/27/2017 01:21 PM, Laurent Vivier wrote:
>>> When the VM is used behind a firewall, This allows
>>> to use a SOCKS5 proxy server to connect the VM IP stack
>>
>> "allows to $verb" is not idiomatic English; the correct forms are
>> generally "allows $subject to $verb" or "allows ${verb}ing".  In this
>> case, I'd lean towards "this allows the use of a SOCKS5 proxy server"
>>
>>> directly to the Internet.
>>>
>>> This implementation doesn't manage UDP packets, so they
>>> are simply dropped (as with restrict=on), except for
>>> the localhost as we need it for DNS.
>>>
>>> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
>>> ---
>>
>>> +++ b/qapi-schema.json
>>> @@ -3680,6 +3680,9 @@
>>>      '*ipv6-dns':         'str',
>>>      '*smb':       'str',
>>>      '*smbserver': 'str',
>>> +    '*proxy-server': 'str',
>>> +    '*proxy-user':   'str',
>>> +    '*proxy-passwd': 'str',
>>
>> Why can't we spell this out as password, instead of abbreviating?
>> Should this hook into the "secrets object" framework so that someone
>> does not have to pass the password in plaintext?
> 
> Yes.
> 
>>> +@item proxy-server=@var{addr}:@var{port}[,proxy-user=@var{user},proxy-passwd=@var{passwd}]]
>>
>> Yes, you DEFINITELY need to hook into the "secrets object" framework to
>> avoid having to pass a password in plaintext on the command line.  Dan
>> Berrange may have more advice on doing that.
> 
> Agreed, this needs to use the secrets framework.
> 
> Rename 'proxy-password' to 'proxy-password-secret'. It'll provide the ID of
> a secret's object. Given that you can use qcrypto_secret_lookup_as_utf8()
> to get the associated password data. There's a few examples in the code
> eg crypto/tlscredsx509.c is a fairly simple example. Ping me if you want
> more help

Please see the v2: https://patchwork.ozlabs.org/patch/744497/

I forgot the to cc' you and Eric.

Laurent

      reply	other threads:[~2017-04-03 11:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-27 18:21 [Qemu-devel] [PATCH 0/1] slirp: add SOCKS5 support Laurent Vivier
2017-03-27 18:21 ` [Qemu-devel] [PATCH 1/1] " Laurent Vivier
2017-03-27 18:41   ` Eric Blake
2017-03-27 18:58     ` Laurent Vivier
2017-04-03 11:41     ` Daniel P. Berrange
2017-04-03 11:49       ` Laurent Vivier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c40edcb-2543-7854-1c12-ed8a890836d4@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=samuel.thibault@ens-lyon.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.