Repository navigation
Releases
Releases · lsariol/cove
v1.0.4
v1.0.4 (2026-11-02)
Cove's logs follow Spark's logging standard, so Blackbox can read their levels and fields. No API, database or setting changes are required.
Changed
docker logs coveis JSON: one record per line, throughblackboxlog.LOG_FORMAT=textorAPP_ENV=DEVgives readable lines, andLOG_LEVELsets the level. With plaincove, the logs and the prompt still share the terminal.- Every line has a level and fields: a request is
requestwithmethod,path,status,duration_ms,sourceandip; failures areERRORwitherr; refused batches and bootstraps and blocked addresses areWARN. Keys are named inkeyandkeysand callers insource, names Blackbox doesn't hide, so the logs still say who read what. Values, tokens and the vault key are never logged. - A startup failure is an
ERRORrecord:Cove can't start, with the reason inerr. It used to be a plaincove: …line. CLI commands still printcove: …. - An outage is logged twice, not every 10 seconds:
database unreachablewhen readiness checks start failing anddatabase reachable againwhen they recover. - Lines no longer carry Cove's version: Blackbox reads it from Docker's labels.
status,cove versionand/v0/versionstill report it. - Database errors no longer put a word straight after
token:orsecret:, which Blackbox would hide. - Go 1.27.3: picks up the standard library's security fixes. Building locally needs Go 1.27.3 or newer.
Fixed
- When a migration failed, the ones applied before it in the same run weren't logged.
v1.0.3
v1.0.3 (2026-10-20)
A maintenance release: no API, database or setting changes.
Changed
- The version comes from Lighthouse:
COVE_VERSION=${LIGHTHOUSE_DEPLOY_VERSION:-dev}in the compose file, so a release no longer needs the version written in by hand. - Tests run in the Dockerfile's
teststage instead of GitHub Actions: Lighthouse runs gofmt, vet and the tests with-racebefore deploying Cove, and a failure stops the deploy. The integration tests against Postgres run locally. .gitattributeskeeps Go, SQL and shell files LF on Windows, sogofmtagrees locally and in Docker.- Documentation: the key naming standard is
PROJECT_PLATFORM_ROLE_TYPE, and database keys are connection strings only. - CHANGELOG version headings are dated: GitHub Releases, which Lighthouse now publishes, carry the date.
v1.0.2
v1.0.2
A maintenance release: no API, database or setting changes.
Changed
COVE_VERSIONindocker-compose.ymlisv1.0.2, sostatusandversionreport the running version again (v1.0.1 still reported v1.0.0).- Explanatory comments moved out of
docker-compose.ymlinto the documentation. - Code comments trimmed to the ones that explain why.
- DOCUMENTATION.md: the release steps now say Cove deploys when a version is tagged, not on a push to
main.
Upgrading from v1.0.1 or v1.0.2
- Nothing to do.
v1.0.0
v1.0.0
The first stable release: a rework of v0.2.0 for security, reliability and day-to-day use. The /v0 routes and responses are unchanged, but every client now needs its own token, and deploying it needs the upgrade steps below. Use CoveClient v1.0.0.
Upgrading from v0.2.0
- Database migrations. Cove now manages its schema with built-in migrations (11 of them) and refuses to start on an unmigrated database. Create the
cove_owner/cove_migrator/cove_app/cove_readerroles and setCOVE_MIGRATE_DATABASE_URL. Migration 00003 renames columns, so v0.2.0 can't run against a migrated database: take a backup first. - No published port. Clients must use
http://cove:2100on thesparknetwork;http://<server>:2100stops working. - Non-root container. Run
sudo chown -R 10001:10001 /srv/server/storage/covebefore the first start. - The container runs
cove servewith no TTY. The CLI isdocker exec -it cove /cove shell;docker attachno longer gives a prompt. - The master token is gone.
COVE_CLIENT_SECRETis no longer read: remove it from the.env. Every client needs a project token (token create), and requests with the old shared token get401. TheX-Cove-Sourceheader is ignored and400 missing_sourceno longer exists: a request is recorded under its token's name. - The bootstrap endpoint is closed by default: run
bootstrap open <project>when onboarding a client. It hands out that project's own token. - Precise error statuses: a duplicate create is
409, updating a missing key404, decrypt and database failures500. Success codes are unchanged. - The first start records the vault key. After that, Cove refuses to start with a different
VAULT_ENCRYPTION_KEY; change it only withcove rotate-key. vault.jsonandAPP_VAULT_PATHare gone;APP_MARKER_DIRis now onlyAPP_MARKER_PATH.- Building needs Go 1.27.1 or newer.
Security
- Per-project tokens, each limited to key patterns, read-only or read/write, managed with the new
tokencommand. Only a hash is stored. No token has access to everything unless you create one; emergency access is the CLI on the server. - Trustworthy audit: the event log and request log record the token's name, which the caller can't fake.
- The event log is append-only for the running app; every operation and its audit record are saved in one transaction.
- Vault key fingerprint: Cove refuses to start with the wrong key, and values encrypted with two keys can never be mixed.
cove rotate-keyre-encrypts the whole vault, history included, in one transaction.- Rate limiting: 10 failed attempts a minute from an address block it for 5 minutes.
- Bootstrap gate: closed by default, one handout per opening, time-limited, optional network allowlist, every attempt logged; it hands out a project's own token.
- No port published; container runs as a non-root user with a read-only filesystem, no capabilities and no-new-privileges; base image pinned.
- Nothing sensitive in logs: the CLI is no longer attached to
docker logs; request logs never include values or tokens; read events no longer store a copy of the value. - Built with Go 1.27.1 and updated dependencies, fixing 26 known vulnerabilities in Go 1.25.1, pgx and x/text.
- HTTP server timeouts; strict key validation; the
.envis written owner-only;.envand local state kept out of the Docker build.
Added
- CLI:
cove shell(line editing, history, Tab completion), one-shot commands, and new commandsgenerate,rename,restore,search,info,history,status,token,bootstrap open/lock/status. Groupedhelp,help <command>with examples, and guideshelp setupandhelp patterns. Messages on stderr with symbols;NO_COLORrespected. POST /v0/batch: read up to 100 secrets in one request, all or nothing.GET /v0/ready(checks the database; used by the Docker healthcheck) andGET /v0/version.- Optional event-log retention for read events (
COVE_EVENT_LOG_RETENTION_DAYS). - The key naming standard
PROJECT_PLATFORM_TYPE, with a CLI warning for non-standard names. cove migrate status|up,cove rotate-key,cove version.
Fixed
- The
updated_attrigger (it never fired correctly in v0.2.0). - Concurrent updates could interleave; each change now locks its row and is logged in order.
- A failed decrypt no longer counts as a read.
restorefinds a secret's values from before a rename.- Many clearer error and startup messages.