Back to articles

Your provider was breached and every Secret is burned: what to rotate, and how to need less of it

In November 2026 leaked credentials let attackers act as users in some Rackspace Spot customer organisations, with access to every Secret in their clusters. This article covers what a Secret actually unlocks, why you contain and hunt before you rotate, how to find the pods, tokens and webhooks an intruder leaves behind, the order to rotate in, and how to keep long-lived credentials out of Secrets so the next breach costs less.

On 17 November 2026, attackers used leaked credentials to get into parts of Rackspace Spot, Rackspace's managed Kubernetes platform. According to the notice Rackspace sent its customers, as reported by BleepingComputer, they could act as legitimate users in some customer organisations: create pods, read Kubernetes Secrets, and list nodes and volumes. Rackspace warned that they could have read any Secret in an affected user's clusters, and any Spot API or refresh tokens that user held.

As of 21 November, Rackspace had not said where the credentials leaked from or how many customers were affected. This article is not about Rackspace. It is about the position its customers were left in, which any team can end up in: someone else could read every Secret in your cluster, and you have to assume they did.

Who this is for: platform and security engineers who run workloads on any Kubernetes cluster, managed or not.

What you walk away with: what "they could read Secrets" actually exposes, the order to respond in (contain, hunt, then rotate), how to look for what an intruder left behind, and the changes that make the next leak smaller.

Why "read Secrets" is the worst line in the notice

A Kubernetes Secret is not encrypted when you read it through the API. The values are base64-encoded, which is an encoding, not protection. Anyone who may get a Secret sees its value, and anyone who may list Secrets in a namespace sees every value in that namespace: a list response carries the full objects, not just their names.

Encryption at rest, where it is switched on, does not change this. It protects the copy in etcd: a stolen etcd backup or disk is useless without the encryption key, which is why that key belongs in a KMS and not next to the backup. An attacker who goes through the API server as a legitimate user gets the decrypted value, exactly as your own workloads do.

Read access is also wider than the RBAC rules on secrets suggest. The Kubernetes documentation says it plainly: anyone who can create a pod that uses a Secret can see the value of that Secret. That includes anyone who can create a Deployment, Job, CronJob, StatefulSet, DaemonSet or ReplicaSet, since each of those creates pods, and anyone who can exec into a pod that already mounts the Secret. A pod can mount any Secret in its namespace and print it, and it can run as any ServiceAccount in that namespace and use that account's permissions. Only an admission policy that restricts which Secrets and ServiceAccounts a pod may reference closes that path. The attackers in this incident could create pods, so even a narrow secrets rule would not have kept them out.

"Create pods" can also mean "root on a node". Unless Pod Security Admission blocks it, a pod may be privileged or mount the host's filesystem. From there an attacker has the kubelet's credentials, every Secret mounted on that node, the node's cloud credentials, and a place to persist that no kubectl get will show.

The damage then leaves the cluster. A Secret is rarely the thing you care about. It is the key to something else: a database, a registry, a cloud account, a Git repository, a payment provider. That is why Rackspace told customers to check the logs of their databases, container registries, Git repositories, cloud storage and third-party services back to 17 November, and not just the cluster's.

The order matters: contain, hunt, then rotate

The instinct is to start rotating passwords. Don't, yet. If the intruder still has a way in, every new value you write lands in their hands too: a pod of theirs that mounts the Secret receives the new value as soon as the kubelet syncs it (usually within a minute, seconds in our test), a ClusterRoleBinding of theirs lets them read it again, and an admission webhook of theirs receives every Secret you create or update, values included. Close the doors first, then look for the ones you didn't know about, and only then rotate.

Step 1: Contain

Cut the access the intruder used. In this incident that was users' access to the platform, and Rackspace told its customers to reissue their Spot API tokens, replace refresh tokens used in automation and download fresh kubeconfig files. On any platform the equivalent is the provider's API tokens, the credentials in your users' kubeconfigs, and the credentials of your automation (CI/CD, GitOps controllers) that talk to the cluster from outside. How you rotate them depends on the provider.

Before you change anything inside the cluster, take the snapshot in step 2 and save its output. Every restart you do later creates new pods and ReplicaSets, and those bury the objects you are looking for.

Step 2: Hunt for what was left behind

Being able to create pods means an intruder could have started anything. Rackspace says it removed the unauthorised pods it found, and published indicators of compromise: pod and object names beginning with i1, glm- or probe, the address 23.224.79.106 and the range 23.224.0.0/15. Those apply to this incident only. The general method is to list everything created since the start of the incident window.

Kubernetes sets creationTimestamp on the server when an object is created; a client cannot choose it. That makes it a useful filter:

SINCE=2026-11-17T00:00:00Z
for r in nodes pods replicasets controllerrevisions deployments daemonsets statefulsets \
         jobs cronjobs services persistentvolumes serviceaccounts secrets \
         roles rolebindings clusterroles clusterrolebindings certificatesigningrequests \
         mutatingwebhookconfigurations validatingwebhookconfigurations \
         validatingadmissionpolicies validatingadmissionpolicybindings \
         apiservices customresourcedefinitions; do
  kubectl get "$r" -A -o json | jq -r --arg since "$SINCE" --arg r "$r" '
    .items[] | select(.metadata.creationTimestamp >= $since)
    | [.metadata.creationTimestamp, $r, (.metadata.namespace // "-"), .metadata.name,
       ([.metadata.ownerReferences[]? | select(.controller == true) | .kind][0] // "none")]
    | @tsv'
done | sort > created-since.tsv

The last column is the object's controller. Your workloads' pods almost always have one (a ReplicaSet, StatefulSet, DaemonSet or Job). Owner references are written by the client, so an intruder can make a pod look as if it belongs to something. A reference not marked as the controller shows none here. One marked as the controller can still point at anything that exists, a ConfigMap for instance, and the pod keeps running. So for pods that show a controller, check that it is a ReplicaSet, StatefulSet, DaemonSet or Job (or a Node, for static pods in kube-system), and that its selector matches the pod. Any other kind is a finding.

Look hardest at these:

Remove what you can't explain, then deal with the tokens you can't see. Tokens issued through the TokenRequest API (kubectl create token and the like) are not stored as objects, so no list shows them. They are bound to the ServiceAccount, not to a pod, and stay valid until they expire: whatever lifetime the requester asked for, unless the cluster caps it with --service-account-max-token-expiration. Short of rotating the key the cluster signs tokens with, which invalidates every token at once, the only way to kill them is to delete and recreate the ServiceAccount: the new one has a new UID and the old tokens stop working. Do that for every ServiceAccount with permissions that matter in the namespaces the intruder could reach. Then restart the pods that use it: their current tokens die with the old UID too, and the pods keep running without saying so, failing only when they call the API. RoleBindings refer to the account by name and keep working.

Tokens that pods receive automatically are bound to the pod: deleting the pod makes its token invalid for the API server. Systems outside the cluster that check tokens themselves against the cluster's public keys (Vault's Kubernetes or JWT auth, a cloud's token exchange) may keep accepting a stolen pod token until it expires, which can be much later than the pod's deletion.

What this list can't show

Never log Secrets above Metadata: at Request the audit log holds every Secret written, at RequestResponse every Secret read as well.

Step 3: Find out what was there

You can't rotate what you haven't listed. Start with an inventory of every Secret, without printing a single value:

kubectl get secrets -A -o json | jq -r '
  .items[]
  | [.metadata.namespace, .metadata.name, .type, ((.data // {}) | keys | join(","))]
  | @tsv' | column -t

This prints namespace, name, type and the key names. It still downloads every value to your machine; jq only hides them. Run it from a machine you trust, without shell tracing, and don't save the raw JSON. The same goes for every command below that reads Secrets. The key names usually tell you what a Secret is for (DB_PASSWORD, AWS_SECRET_ACCESS_KEY, .dockerconfigjson, tls.key).

Then sort the list by what each Secret opens. The type field gives a first cut:

kubectl get secrets -A -o json | jq -r '.items[].type' | sort | uniq -c | sort -rn
TypeWhat it holdsWhere you rotate it
OpaqueAnything: database passwords, API keys, cloud keysAt whoever issued it
kubernetes.io/dockerconfigjsonRegistry credentialsAt the registry
kubernetes.io/tlsA certificate and its private keyReissue with a new key, revoke the old certificate
kubernetes.io/service-account-tokenA long-lived token for a ServiceAccountDelete the Secret
helm.sh/release.v1A Helm release record, including the values it was installed withAt whoever issued the credentials in those values
bootstrap.kubernetes.io/tokenA token that lets a new node join the cluster (kubeadm and similar)Delete it; create a new one when you next add a node

The Helm row is the one teams forget. Helm (versions 3 and 4) stores each release in a Secret, and that record includes the values you passed at install time. If a database password went in through --set or a values file, it is in that Secret too, in every revision Helm keeps. To see which values a release was installed with, without the chart's defaults:

kubectl get secret -n <namespace> sh.helm.release.v1.<release>.v<revision> \
  -o jsonpath='{.data.release}' | base64 -d | base64 -d | gunzip | jq '.config'

The value is base64-encoded twice (once by Helm, once by Kubernetes) and gzipped, which is why the command decodes it twice. Credentials that the chart generated itself are in .manifest instead. Both print values; run them where the output is not logged. If you set HELM_DRIVER=configmap, the same records are in ConfigMaps.

Long-lived ServiceAccount token Secrets deserve their own list:

kubectl get secrets -A --field-selector type=kubernetes.io/service-account-token

Since Kubernetes 1.24 these are no longer created automatically, so anything this returns was created on purpose, is left over from an older cluster, or was created by the intruder. Each one is a token that does not expire.

Two more things belong on the list. First, the keys that decrypt other credentials: the Sealed Secrets controller's key in kube-system, SOPS or age keys used by Flux, the CA keys of cert-manager issuers, Argo CD's repository and cluster Secrets, Cluster API's kubeconfig and CA Secrets. Second, credentials that aren't in Secrets at all but were just as readable: values in ConfigMaps, literal env values in pod specs, and data on persistent volumes, since anyone who can create a pod can mount any PersistentVolumeClaim in its namespace.

Step 4: Rotate in order of what each credential unlocks

You have a queue, and the order matters. Start with the credentials that open other credentials, because an attacker who still holds one of those can read whatever you rotate next.

  1. Credentials that lead to more credentials. Cloud IAM keys, the credentials your secret manager or External Secrets Operator uses to reach Vault or a cloud secret store, CI/CD tokens, Git tokens with write access, registry push credentials. The last three matter beyond the data: they let an attacker change what you deploy. The decryption keys from step 3 go here too. A leaked Sealed Secrets key decrypts every sealed value in your Git history, past ones included, and renewing the key keeps the old one; you have to rotate the underlying values and re-seal them.
  2. Credentials that reach data. Database passwords, object storage keys, message brokers.
  3. Third-party API keys. Payment, email, monitoring, anything with a vendor dashboard.
  4. TLS private keys. Reissue with a new private key, not just a renewed certificate on the old one; for a CA issuer, rotate the CA itself. If cert-manager manages the certificate, check that the Certificate's privateKey.rotationPolicy is Always (the default since cert-manager 1.18; set it explicitly on older versions), then trigger a reissue, for example with cmctl renew. The leaked key stays in use until you do. Revoke the old certificate if your CA supports it.
  5. Credentials that only work inside the cluster. Delete long-lived ServiceAccount token Secrets: the token stops working once its Secret is gone (within seconds; the API server caches the result briefly). Recreate the ServiceAccounts as described in step 2.

For each credential the order of operations is the same:

  1. Issue a new one at the source.
  2. Put it where the Secret comes from. If External Secrets Operator, Sealed Secrets, Argo CD or Flux manage the Secret, a direct edit is reverted; change it at the source of truth.
  3. Restart what uses it.
  4. Revoke the old one at the source. Updating the Secret alone changes nothing; the old credential still works until its issuer revokes it.

Restarting is not optional. Pods that read a Secret through environment variables keep the old value until they restart. Pods that mount it as a volume get the new file after a short delay, but the application only notices if it rereads the file. A volume mounted with subPath never gets the new value. A rollout restart is the reliable way, for Deployments, StatefulSets and DaemonSets alike:

kubectl rollout restart deployment -n <namespace> <name>

Without a name, the command restarts every Deployment in the namespace.

Cloud credentials need one more step. Revoking a key stops new sessions, but sessions already issued with it can stay valid until they expire. On AWS that is up to 36 hours for session tokens issued from an IAM user's key and 12 hours for a role session. Revoke role sessions in IAM; for users, attach a deny policy on aws:TokenIssueTime.

There is a trade-off in the last step. Revoking the old credential before every consumer has the new one causes an outage. Waiting leaves the attacker a working credential. For the first group in the list, take the outage.

Step 5: Need less of it next time

Rotation fixes this incident. The next leak costs less if fewer long-lived credentials sit in Secrets, and fewer identities can read them.

Replace static cloud keys with workload identity

The major clouds can give a pod short-lived cloud credentials in exchange for its ServiceAccount token: EKS Pod Identity or IAM roles for service accounts on AWS, Workload Identity Federation for GKE, Microsoft Entra Workload ID on AKS. Nothing is stored in a Secret. An attacker who can create pods as that ServiceAccount can still obtain credentials while they are inside, but those credentials expire on their own (within an hour to a day, depending on the cloud), and no new ones can be obtained once the access is cut and the ServiceAccount tokens they stole have expired. There is no long-lived key to rotate afterwards.

Know what your secret operator does and doesn't solve

External Secrets Operator fetches values from Vault or a cloud secret manager and writes them into ordinary Kubernetes Secrets. It makes rotation much faster: rotate at the source and the operator updates the Secret on its next refresh (if refreshInterval is set; 0 means it never refreshes). It does not make the Secret harder to read, because the result is a normal Secret.

The Secrets Store CSI Driver mounts values straight into the pod without creating a Secret, unless you enable sync (syncSecret.enabled on the driver and secretObjects in the SecretProviderClass). Fewer identities can then read the value through the API, but anyone who can create a pod with the right ServiceAccount can still mount it.

Short-lived credentials beat both: Vault's database secrets engine with dynamic roles, for example, issues a database user per lease and drops it when the lease expires. A leaked value from last week is then worth nothing.

Narrow who can read Secrets, and who can create workloads

List the identities that can get, list or watch Secrets, and those that can create pods or any workload that creates pods, or exec into pods, in each namespace. All of them can read Secrets. The one-hour RBAC audit walks through finding them. Separate namespaces help here: a pod can only mount Secrets in its own namespace, so the credentials for the payment service should not share a namespace with a batch job that many people can deploy.

Limit what a pod can do

Narrowing who can create pods is half of it; the other half is what a pod may do once created. Enforce Pod Security Admission at restricted, or at least baseline, on every namespace that doesn't need host access. Both levels block privileged pods, host namespaces and hostPath volumes, which turns "can create a pod" back into something short of "root on a node".

Make human access expire

The intruders here acted as users. A kubeconfig with a static token or a client certificate is a credential that works from anywhere until someone revokes it. Kubernetes cannot revoke a client certificate: you can remove the RBAC bindings of its user and groups, but a certificate in the system:masters group can only be stopped by replacing the CA the API server trusts for client certificates, which is usually the cluster CA. Logging in through your identity provider with OIDC gives short-lived tokens, multi-factor authentication and one place to cut someone off. On a managed service, use the provider's integration with your identity provider rather than downloaded long-lived credentials.

Switch on the audit log you'll need

Log Secrets at Metadata and pods at Request (pod specs hold references to Secrets, not their values, apart from literal env values), and keep the logs somewhere the cluster's users can't delete them, with access restricted to the people who need it. You'll want them for the next incident, not this one.

Trade-offs

Checklist

  1. Cut the access the intruder used: provider API tokens, user kubeconfigs, automation credentials.
  2. Before restarting anything, list everything created since the incident started and save it.
  3. Explain every pod without a controller or with an unusual one, every pod with host access or an ephemeral container, every new node, binding, ServiceAccount, token Secret, webhook, admission policy, API service and CSR. Remove what you can't explain.
  4. Drain and replace nodes that may have run a privileged pod.
  5. Recreate ServiceAccounts with meaningful permissions, to kill tokens you can't list, and restart the pods that use them.
  6. Inventory every Secret by namespace, type and key names, without printing values; include Helm release Secrets, decryption keys, ConfigMaps, literal env values and volumes.
  7. Rotate in order: credentials that unlock others, data, third parties, TLS keys, in-cluster tokens.
  8. For each: new credential at the source, update the source of truth, restart consumers, revoke the old one; revoke active cloud sessions.
  9. Check the logs of the services behind the Secrets, not only the cluster's.
  10. Move cloud access to workload identity; replace static database passwords with short-lived ones where you can.
  11. Narrow who can read Secrets and who can create workloads; separate namespaces by sensitivity; enforce Pod Security Admission.
  12. Give people short-lived cluster access through your identity provider, and switch on audit logging.