nova/nova
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
..
api Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
cells Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
cmd Merge "placement: always create consumer records" 2018-06-11 23:49:36 +00:00
common
compute Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
conductor Use instance project/user when creating RequestSpec during resize reschedule 2018-05-30 12:07:53 -04:00
conf Merge "Mention running rootwrap in daemon mode if hitting vif plug timeouts" 2018-06-12 02:04:30 +00:00
console Merge "Convert xenapi's xvp console to processutils." 2018-05-09 04:57:55 +00:00
consoleauth
db add consumers generation field 2018-06-12 15:27:57 -04:00
hacking Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
image Implement certificate_utils 2018-06-12 14:44:32 -04:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-04-11 06:17:52 +00:00
network network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
notifications Merge "Transform instance.exists notification" 2018-06-12 14:49:32 +00:00
objects Plumb trusted_certs through the compute service 2018-06-12 16:58:25 -04:00
pci network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
policies Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
privsep Merge "Move image conversion to privsep." 2018-05-16 14:45:34 +00:00
scheduler Change consecutive build failure limit to a weigher 2018-06-06 15:18:50 -07:00
servicegroup
tests Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
virt Merge "Plumb trusted_certs through the compute service" 2018-06-13 04:00:31 +00:00
vnc
volume Log a more useful error when cinder auth isn't configured 2018-04-06 14:52:13 -04:00
__init__.py
availability_zones.py
baserpc.py
block_device.py Add uuid column to BlockDeviceMapping 2017-12-17 14:28:35 +00:00
cache_utils.py
config.py
context.py Remove RequestContext.instance_lock_checked 2018-04-11 11:46:19 -04:00
crypto.py Convert certificate generation to processutils. 2018-05-02 19:18:41 +10:00
debugger.py
exception.py Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
exception_wrapper.py
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
loadables.py
manager.py conf: Remove 'db_driver' config opt 2018-03-16 17:23:16 +00:00
policy.py
profiler.py
quota.py Restrict CONF.quota.driver to DB and noop quota drivers 2018-06-01 15:44:52 +00:00
rc_fields.py Make ResourceClass.normalize_name handle sharp S 2018-04-10 12:24:40 -05:00
rpc.py Remove useless run_periodic_tasks call in ClientRouter 2018-03-20 23:54:21 +00:00
safe_utils.py
service.py Deprecate running API services under eventlet 2018-05-16 03:48:32 +00:00
service_auth.py Fix NoneType error when [service_user] is misconfigured 2017-11-28 12:22:30 -06:00
test.py Merge "Change consecutive build failure limit to a weigher" 2018-06-07 05:22:20 +00:00
utils.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
version.py
weights.py
wsgi.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00