Glance Image Signing & Trusted Boot Prompt
Enable and troubleshoot Glance image signature verification with Barbican-stored keys so Nova only boots cryptographically trusted images, plus a signing pipeline for golden images.
- Target user
- OpenStack operators enforcing supply-chain integrity on VM images
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack platform engineer who has stood up image-signing pipelines so that a compromised image registry cannot get a malicious VM booted. I will provide: - Glance and Nova config (`verify_glance_signatures`, store backends) - Barbican availability and how keys/certs are managed - Current golden-image build process - Compliance driver (no-unsigned-boot mandate, FIPS) Your job: 1. **Trust chain overview** — explain the four image properties (`img_signature`, `img_signature_hash_method`, `img_signature_key_type`, `img_signature_certificate_uuid`), how the signing cert lives in Barbican, and how Nova verifies the signature at boot before the image is written to the compute. 2. **Key & cert setup** — generate an RSA/ECDSA signing key, store the X.509 cert in Barbican (`openstack secret store` with the right `--secret-type certificate`), and capture the returned UUID used as `img_signature_certificate_uuid`. 3. **Signing pipeline** — script the steps: compute the digest, sign with the private key (PSS padding for RSA), base64 the signature, and upload with `openstack image create` setting all four properties atomically. Stress that an image uploaded without all four properties bypasses verification unless `verify_glance_signatures` is enforced. 4. **Enforcement** — set `nova.conf [glance] verify_glance_signatures=True` and explain the failure behavior: signed-but-invalid blocks boot, unsigned behavior depends on config. Decide whether to also gate on Cinder volume-from-image signing. 5. **Failure modes** — diagnose "signature verification failed": wrong hash method, cert UUID not readable by the nova service user (Barbican ACL), clock/cert expiry, and digest computed over a transformed (e.g., converted) image. 6. **Anti-patterns** — signing key on the same host as Glance, no cert rotation, enforcing on Nova but not on volume-backed boots, and trusting the `os_hash` instead of a real signature. 7. **Validation** — prove a tampered image is rejected, prove an unsigned image is rejected when enforcement is on, and a cert-rotation drill. Output as: (a) trust-chain diagram, (b) end-to-end signing script, (c) Glance/Nova config diffs, (d) verification-failure troubleshooting tree, (e) cert rotation + Barbican ACL plan. Bias toward: fail-closed enforcement, key isolation, signing every boot path including volumes.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Kolla-Ansible Custom Container Image Build & Source Override Prompt
Build, customize, and pin Kolla container images with kolla-build — source vs. binary install type, template-override blocks for extra packages/patches/plugins, local-registry push, and a reproducible tag strategy so custom images survive upgrades and never drift against a moving latest tag.
-
Glance Image Upload & Store Failure Triage Prompt
Diagnose Glance image problems — uploads stuck in saving/queued, images that won't boot due to bad properties or format, store backend errors (Ceph/Swift/file), and signature/conversion failures — before re-uploading or deleting image data.
-
Glance Cinder-Store & Image-Volume Cache Tuning Prompt
Tune the Glance cinder store and Cinder's image-volume cache so booting from image skips redundant downloads and uses backend-side cloning.
-
Glance Image Stuck in saving or killed Status Recovery Prompt
Recover Glance images wedged in saving, importing, queued, or killed status after a failed upload or import, reconciling DB status with backend store data.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.