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
21 lines
605 B
JSON
21 lines
605 B
JSON
{
|
|
"rebuild" : {
|
|
"accessIPv4" : "1.2.3.4",
|
|
"accessIPv6" : "80fe::",
|
|
"OS-DCF:diskConfig": "AUTO",
|
|
"imageRef" : "70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"name" : "foobar",
|
|
"key_name": "new-key",
|
|
"description" : "description of foobar",
|
|
"adminPass" : "seekr3t",
|
|
"metadata" : {
|
|
"meta_var" : "meta_val"
|
|
},
|
|
"user_data": "ZWNobyAiaGVsbG8gd29ybGQi",
|
|
"trusted_image_certificates": [
|
|
"0b5d2c72-12cc-4ba6-a8d7-3ff5cc1d8cb8",
|
|
"674736e3-f25c-405c-8362-bbf991e0ce0a"
|
|
]
|
|
}
|
|
}
|