Skip to content

Upgrades and backups

Upgrading the registry, and the three things to back up.

Applies to Engine
View as Markdown
On this page
  1. What to back up
  2. Rotating the signing key

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

WhatWhy
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
Postgrespublishers, 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

Terminal
docker exec registry sypnia-registry keys rotate --from 2027-01-01

The 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.

  1. What to back up
  2. Rotating the signing key

    Search pages, sections and terms