nova/nova/api/openstack/compute/views
Brianna Poulos 8c7ca368b1 Add trusted_image_certificates to REST API
This change adds support for the trusted_image_certificates parameter,
which is used to define a list of trusted certificate IDs that can be
used during image signature verification and certificate validation. The
parameter may contain a list of strings, each string representing the ID
of a trusted certificate. The list is restricted to a maximum of 50 IDs.
The list of certificate IDs will be stored in the trusted_certs field of
the instance InstanceExtra and will be used to verify the validity of
the signing certificate of a signed instance image.

The trusted_image_certificates request parameter can be passed to
the server create and rebuild APIs (if allowed by policy):

* POST /servers
* POST /servers/{server_id}/action (rebuild)

The following policy rules were added to restrict the usage of the
``trusted_image_certificates`` request parameter in the server create
and rebuild APIs:

* os_compute_api:servers:create:trusted_certs
* os_compute_api:servers:rebuild:trusted_certs

The trusted_image_certificates parameter will be in the response
body of the following APIs (not restricted by policy):

* GET /servers/detail
* GET /servers/{server_id}
* PUT /servers/{server_id}
* POST /servers/{server_id}/action (rebuild)

APIImpact

Implements blueprint: nova-validate-certificates
Change-Id: Iedd3fea0e86648fae364f075915555dcb2c4f199
2018-06-13 15:52:59 -04:00
..
__init__.py Implements blueprint separate-nova-volumeapi 2012-01-13 09:06:55 -08:00
addresses.py Merge v21 view builder for ips API 2016-12-05 18:11:25 +09:00
flavors.py Add microversion to support extra_specs in flavor API. 2018-04-11 17:47:57 +08:00
hypervisors.py Microversion 2.33 adds pagination support for hypervisors 2016-07-01 08:47:50 +08:00
images.py Get auth from context for glance endpoint 2017-11-21 10:26:42 -06:00
instance_actions.py Add pagination and changes-since for instance-actions 2017-12-14 07:42:17 +00:00
keypairs.py Microversion 2.35 adds keypairs pagination support 2016-07-12 19:48:05 +03:00
limits.py Deprecate file injection 2017-12-12 09:22:21 -05:00
migrations.py Add pagination and Changes-since filter support for os-migrations. 2018-01-10 14:02:53 -05:00
server_diagnostics.py Standardization of VM diagnostics info API. 2017-06-05 07:45:51 +00:00
server_tags.py Added server tags controller 2016-04-06 16:37:22 +03:00
servers.py Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
usages.py Simple tenant usage pagination 2016-12-14 03:33:50 +00:00
versions.py Replace os.path.join() for URLs 2015-12-08 17:46:34 +00:00