The Tawa platform enforces automatic credential rotation every 30 days as a compliance requirement. Database credentials are regenerated and services are redeployed with zero downtime.
Every service with database credentials gets a 30-day rotation cycle. When the cycle expires, credentials are regenerated and the service is redeployed with fresh credentials — no action required from developers.
This is automatic. You don't need to configure anything. Credential rotation activates on your first deploy and runs continuously as long as your service is deployed.
lastRotatedAt (now) and nextRotationAt (now + 30 days)Every deploy resets the rotation clock. If you deploy regularly (e.g., weekly), you'll never hit automatic rotation — each deploy starts a fresh 30-day window.
| Field | Description |
|---|---|
lastRotatedAt | When credentials were last rotated (any deploy resets this) |
nextRotationAt | When the next automatic rotation will occur |
rotationPolicy | auto (default) or manual |
rotationHistory | Audit trail of the last 50 rotation events |
| Trigger | Cause |
|---|---|
deploy | Normal deploy via tawa deploy |
auto-rotation | Automatic rotation triggered by the scheduler at day 30 |
manual-refresh | Manual refresh via the console "Refresh Now" button |
| When | Action needed | |
|---|---|---|
| 7 days before rotation | Rotation warning | Optional — deploy or click "Refresh Now" to reset the clock |
| 3 days before rotation | Imminent rotation | Optional — same, or let auto-rotation handle it |
| Rotation complete | Rotation confirmation | None — credentials rotated, service redeployed |
Emails go to the service creator's email address.
All rotations use Kubernetes rolling updates:
maxSurge: 1)maxUnavailable: 0)Your service is never fully down during rotation. The rolling update ensures there is always at least one healthy pod serving traffic.
To reset the rotation clock without waiting for the scheduler:
Or trigger via deploy — any tawa deploy resets the clock.
rotationPolicy: manual setting disables automatic rotation but email warnings still fireLast updated: February 28, 2026