nova/nova/api/openstack/compute/schemas
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 Add API input validation framework 2013-11-27 05:45:37 +09:00
admin_password.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
agents.py Implement query param schema for agent index 2017-09-24 15:05:13 +00:00
aggregates.py fix nova accepting invalid availability zone name with ':' 2017-09-24 15:12:43 +09:00
assisted_volume_snapshots.py Implement query param schema for delete assisted vol 2017-11-27 10:27:52 -05:00
attach_interfaces.py API support for tagged device attachment 2017-06-30 09:05:34 +03:00
block_device_mapping.py Allow None for block_device_mapping_v2.boot_index 2017-02-08 17:08:07 -05:00
block_device_mapping_v1.py Fix BDM JSON-Schema validation 2016-12-21 23:54:06 -08:00
cells.py Fixed typos in nova, nova/api, nova/cells directory 2016-08-01 07:14:04 +00:00
config_drive.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
console_output.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
create_backup.py Let schema validate image metadata type and key lengths 2016-09-27 17:41:15 -04:00
evacuate.py API change for verifying the scheduler when evacuating 2016-06-02 15:03:39 +02:00
fixed_ips.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
flavor_access.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
flavor_manage.py Add microversion to allow setting flavor description 2017-11-15 22:10:39 +00:00
flavors.py Implement query param schema for flavor index 2017-11-25 09:34:22 +00:00
flavors_extraspecs.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
floating_ip_dns.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
floating_ips.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
floating_ips_bulk.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
hosts.py Implement query param schema for host index 2017-10-21 01:13:17 +00:00
hypervisors.py Implement query param schema for GET hypervisor(2.33) 2017-09-26 11:48:49 +03:00
image_metadata.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
instance_actions.py Add pagination and changes-since for instance-actions 2017-12-14 07:42:17 +00:00
keypairs.py Use JSON-Schema to validate query parameters for keypairs API 2017-01-04 17:10:20 +08:00
limits.py check query param for used_limits function 2017-10-30 17:31:16 +08:00
migrate_server.py Enable cold migration with target host(2/2) 2017-11-29 20:48:16 -05:00
migrations.py Add pagination and Changes-since filter support for os-migrations. 2018-01-10 14:02:53 -05:00
multinic.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
multiple_create.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
networks.py Limit the min length of string for integer JSON-Schema 2017-05-27 10:14:28 +00:00
networks_associate.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
quota_classes.py Deprecate file injection 2017-12-12 09:22:21 -05:00
quota_sets.py Deprecate file injection 2017-12-12 09:22:21 -05:00
remote_consoles.py Explicitly define enum type as string in schema 2017-04-21 03:09:28 +00:00
rescue.py Strict ImageRef validation to UUID only 2016-08-04 02:22:15 +00:00
reset_server_state.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
scheduler_hints.py api-ref: document caveats with scheduler hints 2017-10-30 16:14:28 -04:00
security_groups.py Implement query param schema for sec group APIs 2017-11-25 01:47:27 +00:00
server_external_events.py Add ability to signal and perform online volume size change 2017-07-12 11:53:20 -04:00
server_groups.py check query param for server groups function 2017-11-29 01:50:16 +08:00
server_metadata.py Remove 'v3' directory for v2.1 json-schemas 2015-08-13 09:58:48 +08:00
server_migrations.py Add new API to force live migration to complete 2016-02-08 08:59:52 +01:00
server_tags.py Move tags validation code to json schema 2016-12-13 02:58:51 +00:00
servers.py Add trusted_image_certificates to REST API 2018-06-13 15:52:59 -04:00
services.py check query param for service's index function 2017-09-24 05:55:15 +08:00
simple_tenant_usage.py Implement query param schema for simple_tenant_usage 2017-11-22 19:46:32 +00:00
tenant_networks.py Limit the min length of string for integer JSON-Schema 2017-05-27 10:14:28 +00:00
user_data.py Move user_data max length check to schema 2017-10-09 18:22:17 -04:00
volumes.py Implement query param schema for volume, snapshot API 2017-11-19 16:15:39 +03:00