All of lore.kernel.org
 help / color / mirror / Atom feed
* Individual passwords for guest VNC servers ?
@ 2006-08-16 18:11 Daniel P. Berrange
  2006-08-25  0:44 ` Daniel P. Berrange
  0 siblings, 1 reply; 19+ messages in thread
From: Daniel P. Berrange @ 2006-08-16 18:11 UTC (permalink / raw)
  To: xen-devel

The current implementation of the VNC server in qemu-dm appears to just
leverage whatever password the root user has set in /root/.vnc/passwd.
This doesn't really have very nice semantics if one migrates the domain
over to a different host...which may not have same VNC password file.
It also doesn't allow for delegating access to individuale guest VNC
console to differeing sets of users since all guests share same password
for access.

Has anyone given any thought to / written any patches to enable assignment
of different passwords to individual guest's VNC servers. At its simplest
one could just allow the crypt/md5 hash of the desired password to be
supplied in the xm config file, or XenD SEXPR when creating a new domain
and pass that hash through to qemu-dm to use instead of /root/.vnc/passwd

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Individual passwords for guest VNC servers ?
@ 2006-08-31 10:45 Ian Pratt
  2006-09-22 12:04 ` Masami Watanabe
  0 siblings, 1 reply; 19+ messages in thread
From: Ian Pratt @ 2006-08-31 10:45 UTC (permalink / raw)
  To: Masami Watanabe, Daniel P. Berrange, xen-devel

 
> I take your point about security, I'll do as follows.
> - vnc_passwd is not omissible.
> - The domain cannot be created if there is no vnc_passwd.

It would also be good to be able to specify a system-wide vnc password
in the xend-config.sxp that is overridden by individual guest configs. 

Thanks,
Ian

> > On Thu, Aug 31, 2006 at 10:23:56AM +0900, Masami Watanabe wrote:
> > > I'm thinking of adding the following protection to VNC console.
> > > I know it's not perfect, nonetheless, it's far better than the
current
> > > no protection situation. Please comment.
> > >
> > > Specification:
> > > - The same challenge-response auth scheme as standard VNC to be
> available
> > >   from VNC viewer (like RealVNC).
> >
> > Yeah, looking at the various clients, challenge-response is the only
one
> > we can really rely on being present - in fact its the only one
supported
> > by Fedora VNC client (RealVNC IIRC?) at all.
> >
> > > - The vnc password of each VM is described in the VM configuration
> file.
> > >   When omit the password, do not use authentification.
> > >     ex) vnc_passwd = xxxxx
> >
> > I think we should be secure by default - if they omit the password
then
> > we should either generate one - and store it in xenstore, or refuse
to
> > activate VNC server. If we really really want to allow no passwords,
then
> > admin could have to explicitly request it with vnc_no_password=1
> > in the config file - but my prefernce is still that we should flat
out
> > refuse to allow an empty password - in this day & day its just plain
> wrong.
> > RealVNC server for example, refuses to allow empty password.
> >
> > > - Where "xxxxx" is an uuencoded encrypted password, that is,
> > >   you can get this value by
> > >   # cat ~/.vnc/passwd | uuencode -m passwd
> > >     (needs uuencode command: sharutils package)
> >
> > Perhaps base64 would be preferable - that's a standard part of Linux
> > coreutils toolset, rather than an addon like uuencode is.
> >
> > Regards,
> > Dan.
> > --
> > |=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392
2496
> -=|
> > |=-           Perl modules: http://search.cpan.org/~danberr/
> -=|
> > |=-               Projects: http://freshmeat.net/~danielpb/
> -=|
> > |=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B
9505
> -=|
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Individual passwords for guest VNC servers ?
@ 2006-09-26 18:23 Ian Pratt
  2006-09-28  1:01 ` Masami Watanabe
  0 siblings, 1 reply; 19+ messages in thread
From: Ian Pratt @ 2006-09-26 18:23 UTC (permalink / raw)
  To: Masami Watanabe, Daniel P. Berrange, Anthony Liguori; +Cc: xen-devel

 
> Thanks all point about security, I'll do as follows.
> I thought that the point was the following two. 
> 
> 
> 1. Storage place of encrypted password
>   Should I store it in /etc/xen/passwd ?
>     Or, should I wait for DB of Xen that will be released in 
> the future?

The xend life cycle management patches were posted by Alistair a couple
of months back. They'll go in early in the 3.0.4 cycle.

>   In the latter case, the release time and information, I want you to
>   teach it.
>   Now, I think we have no choice but to use /etc/xen/passwd.

In the mean time, I'd just out them in the domain config file and change
the default permissions and ownership.

> 2. Method of Xen VNC Server receiving stored password
>   By way of xenstore. However, it is necessary to consider 
> xenstore-ls.

It can be passed transiently (i.e. it gets deleted from the store by
qemu-dm)
You need to be root to run xenstore-ls so I'm comfortable with this.

Ian

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-09-28  1:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 18:11 Individual passwords for guest VNC servers ? Daniel P. Berrange
2006-08-25  0:44 ` Daniel P. Berrange
     [not found]   ` <44F0FE76.4010104@codemonkey.ws>
2006-08-27 22:21     ` Daniel P. Berrange
2006-08-31  1:23   ` Masami Watanabe
2006-08-31  1:38     ` Daniel P. Berrange
2006-08-31 15:43       ` George Dunlap 
2006-08-31  2:57     ` Masami Watanabe
  -- strict thread matches above, loose matches on Subject: below --
2006-08-31 10:45 Ian Pratt
2006-09-22 12:04 ` Masami Watanabe
2006-09-22 12:49   ` Ian Pratt
2006-09-22 13:12   ` Daniel P. Berrange
2006-09-22 13:54     ` Ian Pratt
2006-09-22 14:03       ` Anthony Liguori
2006-09-22 14:43       ` Daniel P. Berrange
2006-09-26  8:07       ` Masami Watanabe
2006-09-26 14:25         ` Anthony Liguori
2006-09-28  1:04           ` Masami Watanabe
2006-09-26 18:23 Ian Pratt
2006-09-28  1:01 ` Masami Watanabe

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.