Secret.rotated
Emitted each time a Secret is rotated.
Secret.rotate emits Secret.rotated when it completes on a Secret.
| Property | Value |
|---|---|
| Emitted by | Secret.rotate |
| Noun | Secret |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Secret.rotate returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Secret.rotated. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.secret | Secret | required | The Secret, with its new rotatedAt. |
data.secret.name | string | required | The name a Function declares, such as MAPS_KEY; list returns names only. |
data.secret.environment | string | required | The environment that holds this value; a Function deploys to live only when every declared Secret exists there. |
data.secret.scope | string | required | Whether the whole Startup or one Tenant holds it. |
data.secret.rotatedAt | datetime | When the value last changed. |
Example
{
"$id": "https: //api.sb/ kilnbakery.com/ events/ event_1",
"$type": "Event",
"name": "Secret.rotated",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"secret": {
"$id": "https: //api.sb/ kilnbakery.com/ secrets/ secret_1",
"$type": "Secret",
"name": "MAPS_KEY",
"environment": "test",
"scope": "startup",
"rotatedAt": "2026-10-22T12: 00: 00Z"
}
},
"seq": 1
}