mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #540] TLS as connection type #319
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ssbaksa on GitHub (Sep 15, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/540
Hi,
This isn't a bug but more a help request.
I am using WebVirt in docker environment and it is a great way for doing so but I have decided to test TLS as connection method.
Where do you propose to keep certificate files? I am not sure even with ordinary installation where to put them. It is easy with libvirt/virsh because you keep all of them under /etc/pki structure and it works as it should.
Also, in TLS tab there are a username and password fields. What if I want to use only certificates without SASL? Is that possible with current version of WebVirt? I know that certs + login&password is more secure way but ...
@catborise commented on GitHub (Sep 16, 2022):
i personally use TCP with SASL passwd mechanism. I never used TLS. i may research how to do it.
also;
you may take a look at https://avdv.github.io/libvirt/auth.html
The plain TCP socket of the libvirt daemon defaults to using SASL for authentication. The SASL mechanism configured by default is DIGEST-MD5, which provides a basic username+password style authentication. It also provides for encryption of the data stream, so the security of the plain TCP socket is on a par with that of the TLS socket. If desired the UNIX socket and TLS socket can also have SASL enabled by setting the auth_unix_ro, auth_unix_rw, auth_tls config params in libvirt.conf.
@ssbaksa commented on GitHub (Sep 16, 2022):
Me to but I had some strange issues with compute to compute server communication and decided to try new approach.
I have seen that page and SASL is default for all of my servers (16 at this moment, 5 in preparation process).
Those pages below have been the starting points for investigation how to use TLS and it works like a charm with command line tool (virsh).
https://wiki.libvirt.org/page/TLSSetup#Setting_up_libvirt_for_TLS_.28Encryption_.26_Authentication.29
https://libvirt.org/kbase/tlscerts.html
I have thought that since there is a tab for TLS connection when adding compute server that this is already tested but undocumented feature.
If you need any help with testing, just ping me. I am testing now how to add TLS to GUI - Virtual machine manager and different TLS generation ways.