RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 794644 - [RFE] add some mechanism to pass credentials to remote-viewer
Summary: [RFE] add some mechanism to pass credentials to remote-viewer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-viewer
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 911624 (view as bug list)
Depends On: 805243
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-17 07:49 UTC by Gerd Hoffmann
Modified: 2018-11-30 19:37 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 805243 (view as bug list)
Environment:
Last Closed: 2013-08-08 14:06:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gerd Hoffmann 2012-02-17 07:49:04 UTC
Description of problem:
It is impossible to pass a password to remote-viewer on startup, simliar to 'spicec --password $secret'.

Comment 2 Marc-Andre Lureau 2012-03-01 15:50:46 UTC
Gerd, should the password be part of spice URI? or a seperate --password argument?

Comment 3 Gerd Hoffmann 2012-03-02 07:30:52 UTC
Put it into the URI is insane IMHO.  Needs to be a separate arg.  Daniel mentioned he would put it into a file to (a) avoid the password being visible in the ps listing and (b) allow to easily support other auth schemes too.

Comment 4 Daniel Berrangé 2012-03-02 10:00:27 UTC
My intention is to create a config file for authentication credentials that we can use for any libvirt client app. Kind of like the traditional $HOME/.netrc, but with a more extensible format, so we can store arbitrary libvirt/vnc/spice credentials for any SASL auth scheme.

Comment 6 Daniel Berrangé 2012-03-20 17:37:45 UTC
The following patch series provides support for a $HOME/.libvirt/auth.conf for libvirt SASL credentials:

https://www.redhat.com/archives/libvir-list/2012-March/msg00828.html

The intent is that virt-viewer also read this file to extract VNC and/or SPICE credentials, so we have all credentials in one place.

Comment 7 Marc-Andre Lureau 2012-03-20 17:49:06 UTC
(In reply to comment #6)
> The following patch series provides support for a $HOME/.libvirt/auth.conf for
> libvirt SASL credentials:
> 
> https://www.redhat.com/archives/libvir-list/2012-March/msg00828.html
> 
> The intent is that virt-viewer also read this file to extract VNC and/or SPICE
> credentials, so we have all credentials in one place.

That sounds reasonable, although I would really appreciate if it uses a path under ~/.config (XDG_CONFIG_PATH) first.

Comment 8 Gerd Hoffmann 2012-03-21 13:41:59 UTC
Re #6: I'd like to have some way to specify alternative (temporary) config file.  Use case is connecting to rhev / ovirt, where you get a temporary password (called ticket) to connect.  Writing that to a permanent config file is pretty pointless.

Also I somehow think ~/.libvirt/... is a bit misplaced for remote-viewer, whereas it makes perfect sense for virt-viewer of course.

Comment 10 RHEL Program Management 2012-07-10 08:50:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 11 RHEL Program Management 2012-07-11 02:00:14 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 12 Christophe Fergeau 2012-07-13 14:29:36 UTC
(In reply to comment #8)
> Re #6: I'd like to have some way to specify alternative (temporary) config
> file.  Use case is connecting to rhev / ovirt, where you get a temporary
> password (called ticket) to connect. 
> 

Another way of achieving this usecase is https://www.redhat.com/archives/virt-tools-list/2012-June/msg00091.html , which I should get back to work on...

Comment 13 Daniel Berrangé 2013-02-18 13:03:19 UTC
*** Bug 911624 has been marked as a duplicate of this bug. ***

Comment 14 Marc-Andre Lureau 2013-06-04 15:18:39 UTC
Christophe sent a patch series:
http://lists.freedesktop.org/archives/spice-devel/2013-June/013582.html

Comment 15 Marc-Andre Lureau 2013-07-22 18:09:14 UTC
Gerd

remote-viewer can take a .vv file with a password inside, since 0.5.5

I think the bug should thus be closed, and re-open/re-created with a different goal, which would be something like "stored password / config". If I undetstand Daniel correctly, that would be something left to do.

(the spice-gtk patches sent by Christophe was rejected, on the basis that we need a more general solution for virt-viewer)

Comment 16 Gerd Hoffmann 2013-07-31 10:41:22 UTC
(In reply to Marc-Andre Lureau from comment #15)
> Gerd
> 
> remote-viewer can take a .vv file with a password inside, since 0.5.5
> 
> I think the bug should thus be closed, and re-open/re-created with a
> different goal, which would be something like "stored password / config". If
> I undetstand Daniel correctly, that would be something left to do.
> 
> (the spice-gtk patches sent by Christophe was rejected, on the basis that we
> need a more general solution for virt-viewer)

Installed 0.5.6.  Neither man-page nor --help output give a hint what a .vv file is and how it works, care to explain?

Comment 17 Marc-Andre Lureau 2013-08-08 13:55:30 UTC
(In reply to Gerd Hoffmann from comment #16)
> Installed 0.5.6.  Neither man-page nor --help output give a hint what a .vv
> file is and how it works, care to explain?

This is now covered by bug 970825.

Should we close that bug?

Comment 18 Gerd Hoffmann 2013-08-08 14:03:50 UTC
Yep, can be closed.


Note You need to log in before you can comment on or make changes to this bug.