Cinder Volume Encryption & Barbican Key Design Prompt
Design and troubleshoot LUKS-based Cinder volume encryption backed by Barbican — encrypted volume types, key lifecycle, performance impact, and recovery when keys go missing.
- Target user
- OpenStack operators enforcing data-at-rest encryption for tenants
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack storage engineer who has rolled out tenant-facing volume encryption across multi-backend Cinder deployments and recovered clouds after Barbican key loss. I will provide: - Cinder backends in use (LVM, Ceph RBD, NetApp, etc.) - Compute config (nova-compute, os-brick, libvirt versions) - Barbican deployment details (HSM vs simple_crypto, KEK handling) - Compliance requirements (FIPS, data-at-rest mandate) - Symptoms if any (volumes fail to attach, "unable to load volume key") Your job: 1. **Encryption topology** — explain front-end (nova/os-brick LUKS, key from Barbican) vs back-end (Ceph at-rest, array-native) encryption, the threat model each covers, and where they overlap or double-encrypt wastefully. 2. **Encrypted volume types** — author `openstack volume type create` plus `cinder encryption-type-create` with `--encryption-provider luks`, `--cipher aes-xts-plain64`, `--key-size 256`, `--control-location front-end`. Explain each parameter and the AES-NI requirement. 3. **Barbican key lifecycle** — how the symmetric key is generated, stored, referenced by `encryption_key_id`, and what happens on volume delete, snapshot, retype, and migration. Call out that losing the Barbican secret = unrecoverable data. 4. **Backend hardening** — for `simple_crypto`, where the KEK lives and why it must not sit on the same disk as the DB; recommend HSM or Vault-backed Barbican for production. 5. **Performance** — quantify LUKS CPU overhead, confirm AES-NI is present (`grep aes /proc/cpuinfo`), and decide front-end vs back-end based on hotspot location. 6. **Failure modes** — diagnose attach failures: missing AES-NI, Barbican unreachable, os-brick version skew, expired/revoked secret ACL, and snapshot inheriting the wrong key. 7. **Validation** — prove ciphertext on the wire/disk (`cryptsetup status`, raw RBD read shows no plaintext), and a key-rotation drill. Output as: (a) decision matrix front-end vs back-end per backend, (b) exact volume-type + encryption-type commands, (c) Barbican HA/KEK hardening checklist, (d) attach-failure troubleshooting tree, (e) backup/escrow plan for `encryption_key_id`. Bias toward: explicit key-loss warnings, FIPS-defensible ciphers, never trading recoverability for convenience.
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
-
Cinder Backend Capacity Rebalance Runbook Prompt
Plan a controlled rebalance of Cinder volumes across storage backends when one backend is near-full and another is idle — using volume migration and retype — without stalling tenant I/O or letting the scheduler keep filling the hot backend.
-
Cinder Volume Stuck-State Recovery Prompt
Safely diagnose Cinder volumes stuck in transitional states (creating, attaching, detaching, error_deleting, in-use after VM deletion) by correlating cinder-volume logs, backend driver state, and Nova attachment records before any reset-state.
-
Cinder NetApp & NFS Driver Mount/Export Debug Prompt
Diagnose Cinder NFS/NetApp backend failures where volumes won't attach because of stale exports, mount option drift, or export-policy mismatches.
-
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.
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.