Fix Ceph AUTH_INSECURE_CLIENT_KEY_TYPE: rotate keys to aes256k
AUTH_INSECURE_CLIENT_KEY_TYPE means a CephX client key still uses the old aes type. Upgrade the client, then rotate it with ceph auth rotate --key-type=aes256k.
$ ceph health detailAUTH_INSECURE_CLIENT_KEY_TYPE in ceph health detail means a client key still uses the old aes type. Upgrade the client software on every host that uses that key, rotate it with ceph auth rotate --key-type=aes256k client.X, and hand out the new keyring; the warning then clears. On an upgraded cluster, switch the new-key default and the daemon keys to aes256k first (step [4]).
The warning arrived with the fix for CVE-2025-30156 (authentication bypass through AES-CBC misuse in CephX). The fix adds a new CephX key type, aes256k (AES256-CTS-HMAC-SHA384-192), and ships in Tentacle 20.2.4 and Squid 19.2.6. The official advisory lists as affected "any credential using the aes key type". Version checks and the advisory itself are covered in CVE-2025-30156: check if your Ceph version is fixed.
[1] Find out whether the cluster was upgraded or freshly created. The monitor map defaults differ. The v20.2.4 source [MonMap.cc](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MonMap.cc) sets them as follows (constant names translated with the mapping in [Crypto.cc](https://github.com/ceph/ceph/blob/v20.2.4/src/auth/Crypto.cc): CEPH_CRYPTO_AES256KRB5 → aes256k, CEPH_CRYPTO_AES → aes).
| Case | Allowed for auth (auth_allowed_ciphers) | Default for new keys (auth_preferred_cipher) | Service tickets (auth_service_cipher) |
|---|---|---|---|
New cluster (build_initial, mkfs) | aes256k only | aes256k | aes256k |
| Old monitor map decoded (upgrade) | aes, aes256k | aes | aes |
On an upgraded cluster, old keys keep working and you only get warnings; the advisory says existing deployments "continue functioning but receive migration prompts". A cluster **created fresh on 20.2.4 authenticates with aes256k only**, so a client that does not know the new key type cannot connect at all. The exact error such a client prints is not documented in the sources checked. Check the current value with the command from the docs:
$ ceph --format=json mon dump | jq -r '.auth_allowed_ciphers | map(.name) | join (",")'[2] Identify the entities behind the warning. Under AUTH_INSECURE_CLIENT_KEY_TYPE, ceph health detail lists the entities that still hold old-type keys. The sample output in the Tentacle health checks docs looks like this (note that client.admin is included):
[WRN] AUTH_INSECURE_CLIENT_KEY_TYPE: 3 auth client entities with insecure key typesentity client.admin using insecure key type: aesentity client.fs using insecure key type: aesentity client.fs_a using insecure key type: aesThe advisory says an upgrade raises six new health warnings and errors, documented starting at AUTH_INSECURE_KEYS_CREATABLE. cephadm automates the daemon side (AUTH_INSECURE_SERVICE_KEY_TYPE and the rest) but not client keys. Rook rotates some client keys automatically, with exclusions.
[3] Check that each host using the key has a client that understands aes256k. Only the following has an official source:
- Linux kernel client: supported from kernel 7.0 and backported to CentOS Stream 9 and 10 (advisory: "Linux kernel support began in 7.0").
- Ceph user-space clients (
ceph-fuse, programs linked with librados): the docs give no minimum-version table. The fixed releases are 20.2.4 and 19.2.6, so move clients to those or later before rotating. - ceph-csi and other packaged clients: no official support version was found. Check the Ceph library version inside the image and the node's kernel version yourself.
$ uname -r$ ceph --versionThe advisory calls client upgrades "recommended to support the new key type but not required". Old clients keep connecting to an upgraded cluster, but their keys stay in the vulnerable format.
[4] On an upgraded cluster, finish the monitor defaults and daemon keys before any client key. The order in the docs' "Upgrading and Rotating CephX Keys" is: (1) allow aes256k for auth → (2) set the default type for new keys (auth_preferred_cipher) to aes256k → (3) rotate mon, mgr, osd and mds daemon keys → (4) set the service ticket type (auth_service_cipher) to aes256k → (5) stop new insecure keys being created → (6) client.admin → (7) other clients → (8) drop aes from the allowed list. cephadm handles the daemon side automatically, so usually this is just a check.
$ ceph --format=json mon dump | jq -r '.auth_preferred_cipher.name'$ ceph --format=json mon dump | jq -r '.auth_service_cipher.name'$ ceph --format=json health detail | jq '.checks | has("AUTH_INSECURE_SERVICE_KEY_TYPE")'Move on when the first two print aes256k and the last prints false. If the new-key default is still aes, change it as the docs show. It only sets the default type for keys created from now on; the revert is ceph mon set auth_preferred_cipher aes.
$ ceph mon set auth_preferred_cipher aes256kIf the service ticket type is aes or AUTH_INSECURE_SERVICE_KEY_TYPE is true, do not start on clients; finish the daemon side first. For manual daemon key rotation (a daemon cannot reauthenticate until its new keyring is in place) and ceph mon set auth_service_cipher aes256k (only once every daemon runs a release that knows the new type), follow the corresponding section of the docs as written.
[5] Rotate client.admin first. The docs have you create a backup admin key and confirm it works before touching the real one. Because step [4] set the new-key default to aes256k, the backup key is created in the new type too.
$ ceph auth get-or-create client.admin-backup mon "allow *" | tee ./client.admin-backup.keyring$ ceph -n client.admin-backup -k ./client.admin-backup.keyring auth ls$ ceph auth rotate --key-type=aes256k client.admin | tee ./client.admin.keyring$ ceph-authtool --import-keyring ./client.admin.keyring /etc/ceph/ceph.client.admin.keyring[6] Rotate the remaining client keys. The docs say to rotate a client key only once the client software is up to date on every machine that uses it.
$ ceph auth rotate --key-type=aes256k client.X > CLIENT_X_KEYRINGPut the new key into each host's keyring file (for kernel mounts, the secret that mount reads) and reconnect. When all are done, this check from the docs should print false:
$ ceph --format=json health detail | jq '.checks | has("AUTH_INSECURE_CLIENT_KEY_TYPE")'[7] If some clients cannot be rotated yet, mute the warning for a fixed period. The docs use 8 weeks as the example.
$ ceph health mute AUTH_INSECURE_CLIENT_KEY_TYPE 8w$ ceph health unmute AUTH_INSECURE_CLIENT_KEY_TYPEMuting only hides the warning; the key remains exposed to CVE-2025-30156. The docs note that --sticky makes the mute permanent, but an open-ended mute removes any reason to come back to it.
[8] Once daemon keys and every client key are rotated, remove the old type from authentication. This is the last step in the docs and must not run before [4] to [6] are done.
$ ceph mon set auth_allowed_ciphers aes256kAfter this step, the docs say the default of mon_auth_allow_insecure_key (the monitor setting that permits creating or rotating keys of an insecure type) turns off as well and AUTH_INSECURE_KEYS_CREATABLE clears.
If an old client (a kernel older than 7.0, for example) must connect to a fresh cluster, the relevant settings are documented: auth_allowed_ciphers with aes added (the docs say this "may be necessary to allow authentication for legacy clients") and mon_auth_allow_insecure_key for creating old-type keys. No step-by-step procedure for doing this on a fresh cluster was found in the docs, and doing it reopens this CVE. Upgrading the client is the recommended path.
For the full upgrade order (including the failure when going to a Tentacle release below 20.2.4), see Ceph Squid 19.2 EOL (est. Oct 31, 2026): check ceph versions. For the similarly named global_id warnings, see Ceph insecure global_id reclaim warning.