
The Difference Between Infrastructure Ownership and Operational Control
Explore the difference between infrastructure ownership and operational control and how to choose the right cloud management model.
Read field noteField notes / Latest
Engineering notes from operating open infrastructure: the failures, design decisions, and upstream work that make open infrastructure better.
Browse all field notes
Explore the difference between infrastructure ownership and operational control and how to choose the right cloud management model.
Read field note
Learn how to build a private enterprise RAG assistant with permission-aware retrieval, secure inference, citations, monitoring, and safe updates.
Read field note
LLM GPU requirements for a clinical model: fine-tuning is the small line, serving the large one, and when owning GPUs beats renting under health data rules.
Read field noteRotate cephx keys to aes256k on OpenStack: libvirt secrets, Nova guests, Cinder and Glance users, Manila shares, then close the old cipher.
A cephx key in an OpenStack cloud lives in more places than the Ceph monitors. After ceph auth rotate client.cinder, the old key is still in keyring files on every cinder-volume and compute host, in a libvirt secret on every compute node, in Nova's database as a secret UUID, and in the memory of every QEMU process that opened an RBD disk before the rotation. Ceph Squid 19.2.6 and Tentacle 20.2.4, announced on August 19, turned this into a job for OpenStack operators on Ceph: they fix CVE-2025-30156 with a new cephx key type, aes256k, and OpenStack security note OSSN-0108 asks operators to re-create every cephx credential with the new cipher.
The Ceph announcement describes CVE-2025-30156 as an authentication bypass in CephX caused by misuse of AES-CBC. Per OSSN-0108, a hardcoded initialization vector and a missing HMAC let an attacker holding any cephx entity's secret tamper with a ticket's permissions. The aes256k type uses AES256-CTS-HMAC-SHA384-192 from RFC 8009.
OSSN-0108 treats RBD use as an internal exposure, since a Nova guest never sees the cephx key or the storage network. Manila with native CephFS is the exception: tenants hold cephx keys and could exploit the CVEs directly.
Three monitor map settings control the transition, all set with ceph mon set (MonCommands.h at v19.2.6):
auth_allowed_ciphers: key types the monitors accept for authentication. The v19.2.6 upgrade guide expects aes,aes256k on an upgraded cluster.auth_preferred_cipher: the type a new key gets when the command passes no --key-type (AuthMonitor::get_cipher_type). The guide's example shows aes before you change it.auth_service_cipher: the cipher for the rotating service keys the daemons use.The auth add, auth rotate, auth get-or-create-key and auth get-or-create commands accept --key-type (v19.2.6 source), and ceph auth rotate replaces an entity's key while keeping its caps. cephadm rotates OSD and MDS keys during the upgrade and, as the upgrade guide notes, leaves client keys to you. Every OpenStack credential (client.cinder, client.glance, client.manila, or a shared client.openstack) is a client key.
Clients need upgraded Ceph packages before they can authenticate with an aes256k key. For krbd and CephFS kernel mounts, OSSN-0108 requires Linux 7.0 or later (the krb5 enctype is in net/ceph/crypto.c at v7.0), and the Ceph announcement says support has been backported to CentOS Stream 9 and 10. QEMU reaches RBD through librbd in userspace, so for Nova guests the requirement falls on the librbd package on each compute host.
OSSN-0108 sets two prerequisites before any OpenStack keyring changes: the cluster on 19.2.6 or 20.2.4 with its daemon keys already rotated to the new cipher and both aes and aes256k allowed, and the Ceph client packages upgraded on every OpenStack server. The client step starts as a list of every compute, cinder-volume, cinder-backup, glance-api and manila-share host still on older librbd and librados packages, in the order you will upgrade them. If you operate your cluster under the On-Premise + Support model of our managed Ceph, upgrades and architecture planning are part of its direct access to our engineers, so you can take that list and its upgrade order to them before any OpenStack key changes.
Check where the cluster stands:
ceph versions
ceph --format=json mon dump | jq -r '.auth_allowed_ciphers | map(.name) | join (",")'
ceph --format=json mon dump | jq -r '.auth_preferred_cipher.name'
ceph health detailceph health detail names each client still on the old type under AUTH_INSECURE_CLIENT_KEY_TYPE.
RGW as an S3 or Swift backend is on OSSN-0108's affected list too; our post on running Loki's object store on Ceph RGW covers placement-target and bucket setup for one such S3 client. If you run RGW multisite, the 19.2.6 notes require rgw_sigv4_insecure set to true before the upgrade and back to false once every cluster is upgraded.
Before touching a key, list its copies:
/etc/ceph/$cluster.$name.keyring. The Ceph RBD guide for OpenStack places Cinder's keyring on volume and nova-compute servers, Glance's on glance-api servers and cinder-backup's on backup servers. Cinder 27.0.0's backup driver connects as backup_ceph_user, which defaults to cinder, and Manila 21.0.2's CephFS driver keeps one RADOS client per CephFS backend in each manila-share process, for cephfs_auth_id.virsh secret-list. The UUID matches Cinder's rbd_secret_uuid, which Cinder 27.0.0 defaults to the cluster FSID when it is unset, and, for RBD ephemeral disks, [libvirt] rbd_secret_uuid in nova.conf.block_device_mapping.connection_info stores the auth_username and secret_uuid Cinder returned at attach time. Nova 32.2.1's _set_auth_config_rbd uses these in preference to its own [libvirt] rbd_user and rbd_secret_uuid.qemu_process.c L6738), libvirt 11.6.0 retrieves RBD authentication secrets through qemuDomainSecretStorageSourcePrepareAuth → qemuDomainSecretInfoSetupFromSecret → virSecretGetSecretString. Updating the stored secret does not update credentials already loaded by the running guest.Atmosphere v7.8.1, as we ship it, gives each service its own cephx user in the default storage layout: glance, cinder (libvirt secret UUID 457eb676-33da-42ec-9a8c-9293d545c337) and cinderbackup, with ephemeral disks on local storage. The Cinder and Glance storage-init jobs create a missing user with ceph auth get-or-create, or reset an existing user's caps with ceph auth caps and read its key with ceph auth get, and write the key into a Kubernetes Secret (cinder-volume-rbd-keyring, images-rbd-keyring). cinder-volume pods write their keyring from that Secret each time they start. Each libvirt container start re-runs virsh secret-define and virsh secret-set-value for that UUID from the keyring in /etc/ceph. So a manual change has to land in the deployment's configuration: a key rotated by hand stays out of the Secret until storage-init runs again, a cinder-volume pod restarted before then writes the old key back, and each storage-init run resets hand-edited caps. The script passes no --key-type, so when your cluster runs 19.2.6 or 20.2.4 a user it creates takes the auth_preferred_cipher type.

ceph auth rotate?A running guest keeps working until its librbd session asks the monitors for new tickets. OSSN-0108: "The client will continue to function until it tries to reauthenticate with the Ceph Monitors to get new tickets," a window its authors estimate at "a matter of hours." At v19.2.6 the ticket lifetimes are auth_mon_ticket_ttl (default 72 hours) and auth_service_ticket_ttl (default 1 hour). A guest picks up a new key only in a new QEMU process: a hard reboot, a stop and start, or a live migration, where the destination host's libvirt reads its own copy of the secret.
Glance and cinder-volume run on a shorter clock. glance_store 5.7.0 opens a new rados.Rados connection inside a context manager for each image operation, and Cinder 27.0.0's RBD driver connects through RADOSClient per operation. Each connect reads the keyring file, so from the moment ceph auth rotate commits until the new file lands on that host, new connections made with the old key fail to authenticate. Cinder makes rados_connection_retries connection attempts in total (default 3), backing off exponentially from rados_connection_interval (default 5 seconds, so 5 then 10), before the operation errors.
client.cinder keep its name?OSSN-0108 offers two strategies; Nova's code sets their cost.
Keeping the name means ceph auth rotate client.cinder. The user and secret UUID stay the same, so every connection_info row in Nova's database stays valid and a stopped instance starts on the new key. The cost is the clock from the previous section.
A new name, such as client.cinder2 with a new secret UUID, leaves the old user working, so running guests have no deadline. The cost moves to stopped instances. In Nova 32.2.1, hard reboot and power on call _get_instance_block_device_info without refresh_conn_info, so they reuse the stored connection_info with the old user and UUID. For Cinder volumes, pre_live_migration creates a new attachment and refreshes it, cold migration refreshes it, and unshelving an offloaded instance runs the attach path again.
OSSN-0108 recommends replacement if you are concerned about the time required to migrate Nova guests. In practice: rename the Cinder volume user wherever you can't start a new QEMU process for every running guest within a few hours, and keep the name for Glance, for a cinder-backup user of its own, and for fleets small enough for one hard-reboot window.
client.cinder2 on every compute host and Cinder backendRead the old user's caps and create the replacement with the same caps. The pool names below are the Ceph RBD guide's examples:
ceph auth get client.cinder
ceph auth get-or-create --key-type=aes256k client.cinder2 \
mon 'profile rbd' \
osd 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images' \
mgr 'profile rbd pool=volumes, profile rbd pool=vms' \
| tee /root/ceph.client.cinder2.keyringCopy the keyring to /etc/ceph/ceph.client.cinder2.keyring on every cinder-volume and compute host. On each compute host, define a second libvirt secret. Its usage name must differ from the old one, because libvirt refuses a second secret for the same usage with "a secret with UUID ... already defined for use with ...". Generate the UUID once with uuidgen and reuse it everywhere:
<secret ephemeral='no' private='no'>
<uuid>NEW-UUID</uuid>
<usage type='ceph'>
<name>client.cinder2 secret</name>
</usage>
</secret>virsh secret-define cinder2-secret.xml
ceph auth get-key client.cinder2 > /root/client.cinder2.key
virsh secret-set-value --secret NEW-UUID --file /root/client.cinder2.key
shred -u /root/client.cinder2.keyceph auth get-key prints the key base64-encoded, which --file expects without --plain; the libvirt 11.6.0 manual marks inline base64 as insecure and deprecated.
Point each Cinder RBD backend at the new user and restart cinder-volume; new attachments carry auth_username: cinder2, because Cinder 27.0.0's initialize_connection reads both values from the backend config:
[rbd1]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = volumes
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_user = cinder2
rbd_secret_uuid = NEW-UUIDIf Nova keeps ephemeral disks in RBD, set rbd_user and rbd_secret_uuid under [libvirt] in nova.conf on every compute host and restart nova-compute. Nova writes these into the domain XML only when it builds the XML. Live migration keeps the source XML and rewrites only disks that match a volume BDM, so an RBD ephemeral disk keeps the old user. Move those guests with a hard reboot or a stop and start; the libvirt driver's power_on calls _hard_reboot, which rebuilds the XML.
Move the guests (OSC 10.3.0 server migrate):
openstack server migrate --live-migration <server>
openstack server migrate --wait <stopped-server>
openstack server show -c status <stopped-server>
openstack server migration confirm <stopped-server>--wait returns at ACTIVE or VERIFY_RESIZE, so check that the server shows VERIFY_RESIZE before you confirm. Shelved servers need no command under Nova's default shelved_offload_time = 0, which offloads them at shelve time; unshelving an offloaded server runs the attach path again. A positive shelved_offload_time leaves servers in SHELVED until the periodic offload runs; unshelving one before then only powers it on and keeps the old connection_info, and OSC 10.3.0's server shelve --offload skips servers already in that state.
The live-migration wave takes calendar time: Nova 32.2.1 sets max_concurrent_live_migrations to 1 by default, so the wave's length follows your guest count per host and the spare capacity you can migrate into; our production-ready private cloud checklist lists capacity needed during maintenance as its own planning line.
Retire client.cinder only after the checks below pass in every cell and on every compute host. No migration since the switch is still in flight or awaiting confirmation: the status counts below show no finished and nothing outside completed, confirmed, done, failed, error, cancelled and reverted. Review each failed or reverted attempt against that instance's current host and state. Then check that no domain, running, inactive or managed-save, still authenticates as the old user:
openstack --os-compute-api-version 2.59 server migration list --changes-since <switch-time> -f value -c Status | sort | uniq -c
for d in $(virsh list --all --name); do
{ virsh dumpxml "$d"; virsh managedsave-dumpxml "$d" 2>/dev/null; } | grep -q "username='cinder'" && echo "$d"
doneThis read-only query returns no rows in each cell database, since each cell keeps its own instance data (BlockDeviceMapping model):
SELECT bdm.instance_uuid, bdm.volume_id
FROM block_device_mapping bdm
JOIN instances i ON i.uuid = bdm.instance_uuid AND i.deleted = 0
WHERE bdm.deleted = 0
AND i.vm_state != 'shelved_offloaded'
AND bdm.destination_type = 'volume'
AND bdm.connection_info LIKE '%OLD-UUID%';Offloaded servers are left out because unshelving refreshes their attachments. Last, no service client still names the old user: rbd_user in each Cinder backend, backup_ceph_user for cinder-backup (default cinder), and [libvirt] rbd_user in nova.conf. Then remove the old user with ceph auth rm client.cinder and the old secret on each compute host with virsh secret-undefine OLD-UUID.
Neither service goes through libvirt, so rotating in place works if the new keyring lands right after the rotation. Script both steps so the credential-mismatch window lasts only as long as the copy:
ceph auth rotate --key-type=aes256k client.glance | tee /root/ceph.client.glance.keyring
ceph-authtool --import-keyring /root/ceph.client.glance.keyring /etc/ceph/ceph.client.glance.keyringThe second command, from the v19.2.6 rotation docs, runs on each glance-api host, and glance_store's next connection picks up the new key. cinder-backup follows the same pattern when backup_ceph_user names its own user, as Atmosphere's cinderbackup does; restart the service after the copy. On the default backup_ceph_user = cinder it shares the volume user, so copy the new client.cinder2 keyring to every cinder-backup host or container, in the path its Ceph configuration reads, then set backup_ceph_user = cinder2 when you switch the Cinder backends and restart cinder-backup. If even a short mismatch window is unacceptable, create client.glance2, point rbd_store_user at it and restart glance-api.
OSSN-0108 gives a per-share procedure: grant new share access with a new cephx key, remount, revoke the old access. Set auth_preferred_cipher first, because Manila requests the key without a type (python-manilaclient 6.3.0 commands):
ceph mon set auth_preferred_cipher aes256k
openstack share access create --wait <share> cephx alice-sep26
openstack --os-share-api-version 2.21 share access list <share>
openstack share access delete <share> <old-access-id>Use --wait and confirm the returned rule is active before the tenant remounts with the new ID and key, then delete the old rule; the list shows the Access Key column only at API version 2.21 or later. The new rule needs a new access_to name: Manila 21.0.2's CephFS driver calls fs subvolume authorize, and Ceph's mgr volumes module runs auth get-or-create only for a new ID, while an existing ID gets updated caps and keeps its key. A tenant mounting with a kernel older than 7.0 and no backport can't use the new key. Per OSSN-0108, partial rotation leaves the old cephx user valid for every share not yet rotated, so cover all of a tenant's shares.
With NFS-Ganesha, the main Ganesha key can be rotated and the service redeployed. Per-export keys have no rotation mechanism yet; recreating each access rule rotates them, with an unmount and remount, and because they stay internal OSSN-0108 allows deferring them if the risk is tolerable.
In Atmosphere v7.8.1 we configure Manila with the generic driver, set to driver_handles_share_servers: true: each share server is a Nova instance, and tenants mount the server's export without receiving a cephx key. Those share servers are Nova guests like any other, so if your Ceph cluster runs 19.2.6 or 20.2.4, they go through the Cinder and Nova steps above.
Removing aes from the allowed list completes the cipher transition and can lock you out. The service side goes first: switch the rotating service keys to the new cipher, then check that none of the client, service or ticket warnings remain (v19.2.6 upgrade guide):
ceph mon set auth_service_cipher aes256k
ceph health detail | grep -E 'AUTH_INSECURE_(CLIENT_KEY_TYPE|SERVICE_KEY_TYPE|SERVICE_TICKETS|ROTATING_SERVICE_KEY_TYPE)'AUTH_INSECURE_ROTATING_SERVICE_KEY_TYPE clears as the old rotating keys expire, a few hours at the default TTL; the guide marks ceph auth wipe-rotating-service-keys as not recommended for most deployments.
A cloud with tenants on old kernels may need to run mixed for a while. The Ceph upgrade guide expects some clusters to stay there and suggests ceph health mute AUTH_INSECURE_CLIENT_KEY_TYPE 8w until those clients upgrade, which also means the aes type stays allowed. Our private cloud compliance checklist asks for keys rotated according to policy and rotation events logged, so record the muted warning and its expiry as a dated exception.
If you remove the type that client.admin or a daemon key still uses, authentication breaks. The rescue is mon_auth_emergency_allowed_ciphers, a startup-only option that the monitors read from their local configuration, and it raises AUTH_EMERGENCY_CIPHERS_SET while it is set.
When the grep above prints nothing and no AUTH_INSECURE_CLIENT_KEY_TYPE mute is active, enforce the list and verify it:
ceph mon set auth_allowed_ciphers aes256k
ceph --format=json mon dump | jq -r '.auth_allowed_ciphers | map(.name) | join (",")'
ceph health detail | grep -E 'AUTH_INSECURE_KEYS_(ALLOWED|CREATABLE)'The dump prints aes256k alone. Removing aes clears AUTH_INSECURE_KEYS_ALLOWED and changes the default of mon_auth_allow_insecure_key to false. AUTH_INSECURE_KEYS_CREATABLE clears when the effective option is false, so an explicit true override must be removed. New aes key creation is also rejected because that type is absent from auth_allowed_ciphers.
Few clouds get through the steps above in one sitting. The live-migration wave alone moves one guest at a time off each host by default, and the cipher list is the last switch you flip, so it waits on your slowest client. Two kinds of key can hold it up: an NFS-Ganesha export you deferred because its tenant needed a quiet window to unmount and remount, and a tenant mounting CephFS from a kernel older than 7.0 with no backport. Neither authenticates once aes leaves the allowed list. You can recreate those access rules first, or leave aes allowed under the dated mute and come back once the last of those clients is upgraded and its key rotated to aes256k. Either way, put a date on the exception so it doesn't quietly become permanent.
Even then, the cipher list only answers CVE-2025-30156. For CVE-2026-50152, Ceph's August 19 announcement says guidance on rotating the secrets in the monitor config-key store is still forthcoming. Until it arrives, Ceph asks operators to assess their exposure, and it encourages anyone running cephadm to rotate the cephadm SSH key, which you can do today.
So "done" comes in two parts. You're done with CVE-2025-30156 when both health greps print nothing, no AUTH_INSECURE_CLIENT_KEY_TYPE mute is in place, the mon dump shows aes256k alone and every deferred Ganesha export has a new access rule. On Atmosphere, there's one more pass: if you renamed a user such as client.cinder2, set it in the deployment's storage configuration first, then rerun storage-init so the cinder-volume and glance-api Secrets carry the new keys. Expect hand-edited caps to be replaced by the chart's fixed mon and osd caps, which storage-init applies on every run and each libvirt pod start applies to the Cinder user. CVE-2026-50152 stays on your list until you've assessed whether your config-key secrets need rotating.
Choose from Atmosphere Cloud, Hosted, or On-Premise.
Simplify your cloud operations with our intuitive dashboard.
Run it yourself, tap our expert support, or opt for full remote operations.
Leverage Terraform, Ansible or APIs directly powered by OpenStack & Kubernetes