Rotate storage key
rotate_storage_keyReplace a project's bucket access key: use it at once when the key may have leaked (printed, logged, pasted, or committed). It deletes nothing, so it needs no confirmation. Pass only project_id. A new key is created and checked, the app is restarted with the new S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY, and only then is the old key deleted, so the leaked key stops working while the app never loses access. The bucket and its files stay as they are. Presigned URLs the app signed with the old key stop working once it is deleted. During a deploy in progress the new key is handed over when the deploy finishes (status rotating), and the old key keeps working until then.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "rotate_storage_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| note | Yes | ||
| bucket | No | ||
| public | No | ||
| status | Yes | ||
| warning | No | ||
| read_only | No | ||
| project_id | Yes | ||
| public_url | No |