Skip to main content

Ask an agent to rotate its sealing key

POST 

/api/v1/orgs/:org/agents/:uid/rotate-sealing-key

Org admin only. Sends a rotate-key request to the connected agent: it generates a new sealing key, saves it to its keys file, proves to the server it holds both keys, and the server then re-wraps every sealed secret listing the old key on that agent. The rotation is asynchronous; the agent.sealing_key_rotated event records it. A re-sealed blob does not protect copies of the old blob: after a leak, change the credentials. 409 reasons: AGENT_OFFLINE (the agent is not connected to this server), AGENT_CANNOT_ROTATE (its identity comes from SP_AGENT_KEYS or it is too old: run solidping agent keys rotate), ROTATION_IN_PROGRESS (sealed secrets still list its previous key).

Request​

Responses​

Rotation requested