nova/nova/tests/functional/api_sample_tests/api_samples
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
..
consoles
extension-info "nova list-extensions" not showing summary for all 2016-07-26 16:45:30 +00:00
flavor-access Enable all extension for Flavor API sample tests 2016-06-09 10:25:21 +09:00
flavor-extra-specs
flavor-manage Add microversion to support extra_specs in flavor API. 2018-04-11 17:47:57 +08:00
flavors Add microversion to support extra_specs in flavor API. 2018-04-11 17:47:57 +08:00
images update API samples to use endpoints 2015-12-10 08:32:41 -05:00
keypairs Simple tenant usage pagination 2016-12-14 03:33:50 +00:00
limits Deprecate file injection 2017-12-12 09:22:21 -05:00
os-admin-actions
os-admin-password
os-agents api-ref: Example verification for os-agents.inc 2016-06-27 21:29:26 +09:00
os-aggregates Revert "Revert "Fix AZ related API docs"" 2017-09-10 13:51:47 -06:00
os-assisted-volume-snapshots api-ref: verify assisted-volume-snapshots.inc 2016-07-01 07:23:33 +00:00
os-attach-interfaces API support for tagged device attachment 2017-06-30 09:05:34 +03:00
os-availability-zone remove processing of blacklist/whitelist/corelist extensions 2016-06-10 11:37:09 -04:00
os-baremetal-nodes
os-cells
os-certificates
os-console-auth-tokens
os-console-output
os-create-backup 2.45: Remove Location header from createImage and createBackup responses 2017-04-25 15:52:14 -04:00
os-deferred-delete
os-evacuate API change for verifying the scheduler when evacuating 2016-06-02 15:03:39 +02:00
os-fixed-ips
os-floating-ip-dns
os-floating-ip-pools
os-floating-ips
os-floating-ips-bulk
os-hide-server-addresses Enable all extension for remaining server API tests 2016-06-09 08:53:32 -04:00
os-hosts replace chance with filter scheduler in func tests 2017-08-16 14:42:51 +00:00
os-hypervisors Proper error handling by _ensure_resource_provider 2017-11-30 18:30:49 +00:00
os-instance-actions Add host/hostId to instance action events API 2018-04-26 14:17:02 +00:00
os-instance-usage-audit-log api-ref: Improve os-instance_usage_audit_log samples 2016-06-21 20:30:11 +09:00
os-lock-server
os-migrate-server Enable cold migration with target host(2/2) 2017-11-29 20:48:16 -05:00
os-migrations Add pagination and Changes-since filter support for os-migrations. 2018-01-10 14:02:53 -05:00
os-multinic api-ref: Fix examples for add/removeFixedIp action 2017-05-15 01:19:54 +00:00
os-multiple-create Enable all extension for remaining server API tests 2016-06-09 08:53:32 -04:00
os-networks Enable all extension for all remaining sample tests 2016-06-10 06:03:02 +00:00
os-networks-associate
os-pause-server
os-preserve-ephemeral-rebuild Enable all extension for remaining server API tests 2016-06-09 08:53:32 -04:00
os-quota-class-sets Deprecate file injection 2017-12-12 09:22:21 -05:00
os-quota-sets Deprecate file injection 2017-12-12 09:22:21 -05:00
os-quota-sets-noop Add API and nova-manage tests that use the NoopQuotaDriver 2017-12-08 22:11:24 +00:00
os-remote-consoles
os-rescue Transform rescue/unrescue instance notifications 2018-01-14 02:15:18 +00:00
os-security-group-default-rules
os-security-groups Use plain routes list for os-security-group-rules instead of stevedore 2017-07-12 20:58:26 +08:00
os-server-diagnostics Standardization of VM diagnostics info API. 2017-06-05 07:45:51 +00:00
os-server-external-events
os-server-groups Drop the use of magic openstack project_id 2016-03-08 19:34:56 +00:00
os-server-password
os-server-tags/v2.26 Remove duplicate attributes in sample files 2017-03-10 10:15:07 +00:00
os-services Use uuid for id in os-services API 2017-07-18 15:39:57 -04:00
os-shelve
os-simple-tenant-usage Simple tenant usage pagination 2016-12-14 03:33:50 +00:00
os-suspend-server
os-tenant-networks
os-volumes API support for tagged device attachment 2017-06-30 09:05:34 +03:00
server-ips
server-metadata
server-migrations Add pagination and Changes-since filter support for os-migrations. 2018-01-10 14:02:53 -05:00
servers Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
servers-sort update API samples to use endpoints 2015-12-10 08:32:41 -05:00
versions parametrize max_api_version in tests 2016-02-05 18:54:58 -05:00
extensions-list-resp-v21-compatible.json.tpl Enable all extension for server API tests part-1 2016-06-09 08:53:30 -04:00
extensions-list-resp.json.tpl Enable all extension for server API tests part-1 2016-06-09 08:53:30 -04:00