Add an Image service API
You can add a new Image service API (glanceAPI) to a Red Hat OpenStack Services on OpenShift (RHOSO) deployment to support multiple workloads or to maintain the lifecycle of an existing glanceAPI and its back-end services. For example, if your deployment has a back end with a split layout, such as Red Hat Ceph Storage, and a back end with a single layout, such as NFS, you cannot make changes to the single or split layout because they impact configuration elements such as PersistentVolumeClaims (PVCs). Instead, you can add a new glanceAPI to switch between the back ends.
Procedure Copy linkLink copied!
Remove an Image service API Copy linkLink copied!
To decommission an existing Image service API (glanceAPI), you must do the following:
About this task Copy linkLink copied!
- Delete the
glanceAPICR and its associated objects, for example, pods andStatefulSets. - Update the
keystoneEndpointto point to an activeglanceAPI.
You cannot delete a glanceAPI if it is the only glanceAPI in the OpenStackControlPlane, and you cannot point the keystoneEndpoint parameter in your OpenStackControlPlane CR file to a non-existent glanceAPI.
When you remove a glanceAPI, PersistentVolumeClaims (PVCs) that are associated to the API are preserved so that you can re-add the API with its previous settings if required.
Procedure Copy linkLink copied!
Image signature verification Copy linkLink copied!
You can use image signature verification to validate images that are uploaded to the Image service (glance) before storing the images in the configured back end. If validation fails for an image, then the upload is stopped and the image is deleted.
To protect image integrity and authenticity, you can save the signatures and public key certificates as image properties.
You store the secret for signature verification in the Key Manager service (barbican), and the Image service interacts with the Key Manager service through the internal endpoint provided by the Identity service (keystone):
[key_manager]
backend = barbican
[barbican]
auth_endpoint={{ .KeystoneInternalURL }}
barbican_endpoint_type=internal
Other services, such as the Compute service (nova) can use the image properties to perform data validation when a user downloads the image from the Image service.
Metadef API security Copy linkLink copied!
In Red Hat OpenStack Services on OpenShift (RHOSO), you can define key value pairs and tag metadata with metadata definition (metadef) APIs. There is no limit on the number of metadef namespaces, objects, properties, resources, or tags that you can create.
Image service policies control metadef APIs. By default, only administrators can create, update, or delete (CUD) metadef APIs. This limitation prevents metadef APIs from exposing information to unauthorized users and mitigates the risk of a malicious user filling the Image service (glance) database with unlimited resources, which can create a denial of service (DoS) style attack.