Upgrades and backups
Upgrading the registry, and the three things to back up.
On this page
Upgrades run the database migrations on start. Restart one instance at a time; versions that were being checked resume. The command line and the engine work together one minor version apart.
What to back up
| What | Why |
|---|---|
The signing key (SYPNIA_SKILLS_KEY_DIR) | your projects trust it. Losing it means signing every version again with a new key and every project pinning the new key |
| Postgres | publishers, skills, versions, reviews, tokens |
Storage (packages/) | the packages themselves; they never change, so turn on versioning and keep a copy elsewhere |
Rotating the signing key
docker exec registry sypnia-registry keys rotate --from 2027-01-01The new key is published at GET /keys, signed by the old one, before it is used. The CLI accepts it because the old key vouches for it. Old signatures stay valid until the old key’s end date.