Metadata Rotation
Start or complete a root metadata rotation (root key rotation) for a TUF repository. You send the new root metadata; the server either finalizes and publishes it to S3 (when the signature threshold is met) or stores a draft in Redis for later signing.
Use this endpoint when you need to rotate root keys, extend root expiration, or update the root metadata. The operation may complete immediately or require additional signatures via the sign endpoint.
Two flows
1. Root with all signatures (threshold met)
Send metadata.root with a full set of signatures that satisfy the root role's threshold.
Result: The server validates the root, finalizes the update, saves it to S3, and returns 200 OK with a task_id. The new root is published.
2. Root with no or incomplete signatures
Send metadata.root with signatures: [] or with fewer signatures than the threshold.
Result: The server validates the root content but cannot finalize (signatures insufficient). It stores this root in Redis under a key such as ROOT_SIGNING_<admin>_<app> and returns 200 OK. You then add signatures one by one via POST unsigned root metadata until the threshold is met; the server will then finalize and publish.
Endpoint
POST /tuf/v1/metadata?appName=<app_name>
Headers
| Header | Value |
|---|---|
Content-Type | application/json |
Authorization | Bearer <token> |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
appName | string | ✅ | Name of the application whose TUF repository to rotate |