---
title: "Replace a compromised cluster CA and invalidate outstanding enrollment tokens. Existing workers fail closed until they are re-enrolled."
method: POST
path: "/settings/cluster-ca/rotate"
tags: ["Settings"]
---

# Replace a compromised cluster CA and invalidate outstanding enrollment tokens. Existing workers fail closed until they are re-enrolled.

`POST /settings/cluster-ca/rotate`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/settings/cluster-ca/rotate`
- Auth: HTTP bearer

## Request body

- RotateClusterCaRequest
  - `confirmation` string, required: Destructive-action guard. Must be exactly `ROTATE CLUSTER CA`.
  - `expected_fingerprint` string, required: Fingerprint observed through a trusted operator channel immediately before rotation. The request fails if the active root changed.

## Response `200`

Cluster CA rotated

- RotateClusterCaResponse
  - `message` string, required
  - `new_fingerprint` string, required
  - `previous_fingerprint` string, required
  - `revoked_enrollment_tokens` integer, required

## Other responses

- `400`: Invalid confirmation or CA state
- `401`: Unauthorized
- `403`: Insufficient permissions
- `409`: Expected fingerprint is stale
- `428`: Fresh MFA verification required
- `500`: Internal server error

## Changes

- **2026-09-07** `e2dec7aec75d`: 1 info
  - endpoint added
- **2026-09-07** `7a3103561bd0`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `c43de0e360be`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/cluster-ca/rotate/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
