cloudstack/plugins
Rohit Yadav 0a0ea4c642 APPLE-FR29: Secure KVM Live VM Migration (FRO-93)
This extends securing of KVM hosts to securing of libvirt on KVM
host as well for TLS enabled live VM migration.

Based on whether keystore and certificates files are available at
/etc/cloudstack/agent, the KVM agent determines whether to use TLS or
TCP based uris for live VM migration. It is also enforced that a secured
host will allow live VM migration to/from other secured host, and an
unsecured hosts will allow live VM migration to/from other unsecured
host only.

Post upgrade the KVM agent on startup will expose its security state
(secured detail is sent as true or false) to the managements server that
gets saved in host_details for the host. This host detail can be accesed
via the listHosts response, and in the UI unsecured KVM hosts will show
up with the host state of ‘unsecured’. Further, a button has been added
that allows admins to provision/renew certificates to KVM hosts and can
be used to secure any unsecured KVM host.

The `cloudstack-setup-agent` was modified to accept a new flag ‘-s’
which reconfigured libvirtd with following settings that enables only
TLS:
    listen_tcp=0
    listen_tls=1
    tcp_port="16509"
    auth_tcp="none"
    tls_port=”16514”
    auth_tls=”none”
    key_file = "/etc/pki/libvirt/private/serverkey.pem"
    cert_file = "/etc/pki/libvirt/servercert.pem"
    ca_file = "/etc/pki/CA/cacert.pem"

For a connected KVM host agent, when the certificate are
renewed/provisioned a background task is scheduled that waits until all
of the agent tasks finish after which libvirt process is restarted and
finally the agent is restarted via AgentShell.

There are no API or DB changes.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2018-03-21 14:13:57 +05:30
..
acl CLOUDSTACK-8562: Make role permissions orderable 2016-05-03 23:00:46 +05:30
affinity-group-processors cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
alert-handlers cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
api CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
ca/root-ca APPLE-FR29: Secure KVM Live VM Migration (FRO-93) 2018-03-21 14:13:57 +05:30
database/mysql-ha cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
dedicated-resources cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
deployment-planners cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
event-bus cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
file-systems/netapp cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
ha-planners/skip-heurestics cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
host-allocators/random cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
hypervisors APPLE-FR29: Secure KVM Live VM Migration (FRO-93) 2018-03-21 14:13:57 +05:30
metrics APPLE-512: Use host table to iterate for zone/cluster metrics (CW-1592) 2017-12-15 14:36:09 +05:30
network-elements Fr21 ldap account binding and prerequisites (#57) 2018-03-05 11:57:38 +01:00
outofbandmanagement-drivers FR3: Host-HA backported changes from master (#50) 2017-11-07 15:51:56 +05:30
storage cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
storage-allocators/random cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
user-authenticators Fr21 ldap account binding and prerequisites (#57) 2018-03-05 11:57:38 +01:00
pom.xml FR12 (CLOUDSTACK-9993): Secure Agent Communications (#38) 2017-09-26 09:19:31 +05:30