vcon-server

The 1.0 checklist

What vcon-server needs before release 1.0, the first release for production: each item's state, what is left, and the evidence.

Release 1.0 is the first release of vcon-server for production. These are the things it needs. Each item states what is done and what is left, and links its evidence: a page of this site, a file in the repository, a test or a CI job. An item is stated as done only when a CI job runs its evidence. What is built says what works today, and the roadmap lists the next milestones.

A test in the repository holds this page to the code: each link must lead to a page and heading of the site, a file in the repository, a test its file defines or a job its workflow defines.

Several servers on one PostgreSQL database

State: Partly done.

The catalogs can be kept in PostgreSQL, a preview behind the postgres cargo feature, which the release binaries have. CI runs the store's conformance suite and a server on PostgreSQL 16 and 18. Several servers serve one database: each store or replace, tenant create and new pack file records itself under way, recovery keeps what another server may still have under way for an hour, and one server at a time holds the purge sweep and the pack run under a lease timed by the database's clock. CI runs two server processes on one database on PostgreSQL 16 and 18.

Left: a command that moves a data directory's tenants into PostgreSQL and back; and tests in CI that cut the connection to PostgreSQL at each step of a write and fail over from a primary to a standby, with every acknowledged write read back once.

Evidence:

A backup restored in CI

State: Partly done.

CI follows the backup how-to on a live server whose objects are in the data directory: it backs the data directory up, changes it, restores the backup, checks the restored copy and serves it. A test takes a backup while vCons are being written, checks it and serves it.

Left: the same in CI with the objects in an S3 bucket, with Parquet storage and with the catalogs in PostgreSQL; a backup taken before a master key rotation; a backup made by the previous release; and, in each, a comparison of every restored vCon with what was stored.

Evidence:

Keys kept in a KMS or an HSM

State: Partly done.

The master key is a file the server reads at start and keeps in locked memory. Since 0.4.18 the registry reaches the root of the key hierarchy through one interface for wrapping keys, KeyWrap, whose one backend, FileWrap, is the master key file. Since 0.4.19 the library also has BackendWrap, which puts a key backend (a KMS or an HSM, whose key never leaves it) at the root: the registry gets a random root key of its own, which the backend wraps and the on-disk format key-wrap keeps, and each tenant key is wrapped under a key-encryption key of its own that the backend wraps. No key backend ships yet: key_wrap.backend takes only file, and a start refuses a registry whose root a key backend wraps.

Left: backends for HashiCorp Vault Transit, OpenBao, PKCS#11 (for HSMs), AWS KMS, Azure Key Vault and Google Cloud KMS; a server and commands that open a registry under one; and a key rotation drill for each. CI tests the first five against a local service. Google Cloud KMS has no local service: CI tests its backend against recorded responses, and a maintainer runs its drill by hand.

Evidence:

An outside review of the cryptography

State: Not started.

The threat model, the trust boundaries and the evidence for them are in the assurance case. No reviewer from outside the project has read the envelope format, the key hierarchy, key rotation or purge.

Left: a specification of the envelope format and the key hierarchy, with test vectors that a second implementation checks in CI; the review itself; and its report, published with each finding fixed or tracked.

Evidence:

Published scale numbers

State: Partly done.

The scale harness, vcon-scale, measures the ingest rate, the read latency percentiles, the bytes on disk per vCon and the server's peak memory against a running server over HTTPS. CI runs it at 100,000 vCons on each change and fails on any request answered with an error. The scale numbers page shows each committed result with its machine and commit; a test holds the page to the result files. CI also tests the number of round trips each call of the store makes to PostgreSQL.

Left: runs at 10 million and 100 million vCons on stated hardware, and runs with S3, Parquet and PostgreSQL storage.

Evidence:

A frozen HTTP API, configuration and on-disk format

State: Partly done.

The HTTP API is described in OpenAPI, and a test holds every route to the HTTP API page. Every table of the configuration file refuses a key it does not know. On-disk formats lists every on-disk format with its version and what each release wrote, and a test holds the page to the code. The repository keeps a data directory written by each released binary from 0.4.0 to 0.4.21; on every change, CI opens each one with the new build, checks it, reads every kept version back byte-equal, and refuses a catalog one version past the build. From 0.4.6 to 0.4.21 it also keeps each release's deployment with its catalogs in PostgreSQL and its objects in Parquet storage, which CI restores and opens the same way on PostgreSQL 16 and 18. CI also upgrades the previous release to this one and back. Stability states what 1.0 keeps unchanged and which changes break a client, and scripts/contract_diff.py tells a breaking change from an additive one, against any release tag, for the HTTP API and its problem types, the command line and its exit codes, the configuration keys, types and defaults, the MCP tools and their arguments, the environment variables, the on-disk formats and the audit records. The command line, the configuration, the MCP tools, the environment variables, the on-disk formats and the audit records each have a snapshot under contract/, which a test writes from its source and holds equal to it. The Contract job runs the comparison against the newest release tag on every pull request and prints each change; it does not block a merge yet.

Left: the Contract job made a required check, so that a breaking change cannot merge, which is the 1.0 step itself.

Evidence:

Source of this page: website/content/docs/production-checklist.md