Skip to content

Releases

v1.6.1

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 19 Nov 14:18

v1.6.1 (2026-11-19)

Changed

  • lighthouse-api listens on port 4000 (it was 2300): http://lighthouse-api:4000 on the spark network. A consumer's address changes with it.

v1.6.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 19 Nov 14:09

v1.6.0 (2026-11-19)

Lighthouse answers other projects: lighthouse-api, a second container, gives a dashboard read-only access to the projects, their deploys and their releases.

Added

  • lighthouse-api: the same image run as /lighthouse api, on port 2300 of the spark network with no port published. It reads the database as lighthouse_reader, which can't change anything, with at most 4 connections, and holds no Docker socket, control socket or Cove token. It runs as user 10001 with a read-only filesystem, no capabilities and a 64 MB memory limit.
  • Its answers: GET /v1/projects (every project and its state: ok, failing, broken, stopped or not_deployed), GET /v1/deployments (a time range, newest first, a page at a time), GET /v1/deployments/{id} (one deploy with its steps and their output, secrets already hidden) and GET /v1/releases. Every request but GET /healthz needs a bearer token, SHARED_LIGHTHOUSE_VISTA_TOKEN. A wrong parameter is a 400 that names it.
  • lighthouse health api is lighthouse-api's healthcheck.

Changed

  • Lighthouse's compose file takes secrets: LIGHTHOUSE_DATABASE_READER_URL and SHARED_LIGHTHOUSE_VISTA_TOKEN, for lighthouse-api only, fetched from Cove by the deploy and handed to the update helper as v1.5.0 does. Create the token in Cove before deploying this version (generate SHARED_LIGHTHOUSE_VISTA_TOKEN 64). It needs v1.5.0 or newer running: an older Lighthouse can't hand secrets to its update helper.
  • A first install starts only the lighthouse service by hand, then deploy lighthouse from its prompt starts lighthouse-api with its secrets (README, "Start Lighthouse").

v1.5.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 19 Nov 13:29

v1.5.0 (2026-11-19)

Lighthouse's own update can carry secrets, exceptions in policy.json grant less, and check can try a project before its first release.

Added

  • Lighthouse's own update carries secrets: the ${KEY}s of Lighthouse's compose file are fetched from Cove as for any project and handed to the update helper in its environment, never on disk; the hand-off file names them only. The helper also gets the previous version's, so a rollback starts that version with its own. If those can't be fetched, the update waits and is tried again. After a successful update the helper's container is removed, so it doesn't keep the values.
  • check <name> <tag or commit> checks that release or commit, as deploy takes one.
  • check before the first release: a project that deploys releases but has no version tag yet is checked at its newest commit, with a note saying so, instead of answering "has no releases yet".
  • policy.json: Sonar's gateway (sonar-proxy) may mount the data folders read-only with CAP_DAC_READ_SEARCH, to size each project's folder, and Sonar's agent may read the host's network counters, the one file /proc/1/net/dev, read-only.

Changed

  • An exception covers one service: every exception in policy.json must name its service, so a service added to a project later gets nothing by accident. A finding that belongs to the whole project, such as another project's network, can't be allowed.
  • A host mount says how it may be mounted: an allowed mount ends in :ro (read-only only) or :rw (either way), and a finding's ID carries the mount's mode, as in mount:/proc/1/net/dev:ro. A read-write mount under a read-only exception is refused with a hint. :ro on a socket is refused when policy.json loads, since a socket mounted read-only still takes every request.
  • The migrator's database URL is LIGHTHOUSE_DATABASE_MIGRATOR_URL (it was LIGHTHOUSE_MIGRATOR_DATABASE_URL), so the three connection strings read LIGHTHOUSE_DATABASE_URL, LIGHTHOUSE_DATABASE_MIGRATOR_URL and LIGHTHOUSE_DATABASE_READER_URL. Create the new key in Cove before deploying this version.
  • The README covers setup: the server, the database, Cove, adding a project and the rules it follows, publishing Releases, and configuration. The project is published under the MIT license.
  • A confirmation shows the environment: questions such as remove's read ? (prod) Stop watching "plop", and stop and remove its containers? (y/N), with (prod) in red, since the question replaces the prompt that showed it.
  • At most 10 database connections: Lighthouse's pool is capped at 10, unless LIGHTHOUSE_DATABASE_URL sets pool_max_conns. It used to open one per CPU, at least 4, on a Postgres server every project shares.
  • Go 1.27.4: picks up the standard library's security fixes.

Fixed

  • An unreadable self-update folder no longer lets deploys through: if Lighthouse can't read its update helper's hand-off files, it can't tell whether the helper is mid-swap, so deploys now wait and a warning is logged, where they used to go ahead. A deploy that can't list its old deploy folders says so in its output instead of skipping the cleanup silently.
  • A deploy by hand of a stopped project ran twice: a check that started while the deploy was in progress waited for its turn, then deployed the same commit again. It now sees the commit is already running and leaves it.

v1.4.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 03 Nov 02:30

v1.4.0 (2026-11-02)

Lighthouse's logs follow Spark's logging standard, so Blackbox can read their levels and fields, and labels may be written as a list.

Changed

  • docker logs lighthouse is JSON: one record per line, through blackboxlog. LOG_FORMAT=text or APP_ENV=dev gives readable lines, LOG_LEVEL sets the level, and a local run with the CLI stays readable. Each deploy step's output is unchanged, as plain [<project> <step>] lines.
  • ERROR now means someone should look: a failed check or deploy that's tried again by itself is WARN, a project marked broken is ERROR instead of WARN, and a self-update that failed is ERROR instead of INFO.
  • A startup failure is an ERROR record: Lighthouse can't run, with the reason in err, so it shows up in a search by level. It used to be a plain lighthouse: … line.
  • One failure, one line: a failed deploy is no longer logged again as a failed check and a failed scan.
  • Standard fields: component says which part of Lighthouse wrote a line, deploy finished and deploy failed carry outcome and duration_ms, and migration applied has duration_ms instead of took. Lines no longer carry Lighthouse's own version, environment or compose project, which Blackbox reads from Docker, and the GitHub token's length is gone.
  • Go 1.27.3: picks up the standard library's security fixes.
  • help setup follows the standard: it recommends deploying from version tags, says to push a baseline tag before moving a running project over, and shows the com.mobasity.public-url label.

Fixed

  • Labels written as a list: - key=value stopped a deploy with cannot unmarshal array. A list now works like a map, and the public-address label is checked the same way in both.
  • help with a wrong argument left rules out of its usage line.

v1.3.1

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 03 Nov 00:22

v1.3.1 (2026-11-02)

Lighthouse can now deploy Blackbox, Spark's central log store.

Added

  • Blackbox can be deployed: the deploy rules refuse any project that mounts the Docker socket, and Blackbox needs it to read container logs. An exception now allows it for blackbox-proxy, the one service that has no network and only makes fixed, read-only requests. Blackbox's other services are still refused.

v1.3.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 21 Oct 18:39

v1.3.0 (2026-10-21)

Added

  • Exceptions for one service: an exception in policy.json can name a service, and then allows only that service's findings; a project's other services still can't have them. An exception naming a service the compose file doesn't have is a warning at the check step.
  • The com.mobasity.public-url label: a service reached from outside carries its public address, com.mobasity.public-url=https://…, for Sonar and the status page. A value that isn't a full https:// address stops the deploy (label:com.mobasity.public-url).
  • Every container carries com.mobasity.version: Lighthouse labels each service it starts with the version deployed (or the commit), so Sonar can tell what runs without asking Lighthouse. Compose files don't set it.
  • policy.json: Sonar's Docker gateway (sonar-proxy) may mount the Docker socket; no other Sonar service may.

v1.2.2

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 21 Oct 00:43

v1.2.2 (2026-10-20)

Changed

  • list is narrower: NAME, MODE, VERSION and DEPLOYED. MODE says tags, commits or publish-only (with the tier for infra and data); VERSION is just the release, or the commit for a project that deploys commits. list --all (-a) adds the repository and the last check.

Fixed

  • A repository with no commits yet (GitHub's "409 Git Repository is empty") is no longer reported as a failed check on every check: there's simply nothing to deploy or publish yet.

v1.2.1

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 21 Oct 00:21

v1.2.1 (2026-10-20)

Changed

  • list and status show a publish-only project's newest published version (v1.2.0, published) where a deployed project shows what runs, and when it was published as its last deploy, so a library you just released sorts to the top.
  • An existing GitHub Release adopted by Lighthouse keeps the date GitHub published it, instead of the time Lighthouse found it.

v1.2.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 20 Oct 23:38

v1.2.0 (2026-10-20)

Lighthouse publishes Releases for repositories it doesn't deploy, such as Go libraries.

Added

  • Publish-only projects: add <url> --publish-only. Each new stable version tag on main gets a GitHub Release, with no compose file, deploy or containers. deploy, rollback, retry, check and the container commands refuse such a project, all skips it, and status doesn't count it as missing.
  • Existing Releases are adopted at the baseline: when Lighthouse first records a project's tags, one that already has a GitHub Release shows as published in releases.

Changed

  • The setup steps store the GitHub App's key in Cove in base64, since Cove's create takes one line

v1.1.0

Choose a tag to compare

@lighthouse-publisher lighthouse-publisher released this 20 Oct 23:02

v1.1.0 (2026-10-20)

Lighthouse publishes a GitHub Release for each version it deploys and verifies, through a GitHub App you own.

Added

  • Release tracking for projects that deploy releases. Each version tag gets a status: known, waiting, ready, pending, published, failed, superseded or moved. The tags already there at the first check are recorded as known and never published automatically.
  • Publishing GitHub Releases. Once a release deploys and passes its checks (from a check, a retry, or Lighthouse's own update), its Release is published with its dated CHANGELOG.md section, and becomes "latest" only if it's the highest stable version. A Release that already exists is adopted; a moved or deleted tag is never published. Failures are retried with a backoff, kept across restarts, and shown by status. Needs a GitHub App (GITHUB_APP_ID, its key LIGHTHOUSE_GITHUB_APP_SECRET in Cove); without one, publishing is off and Releases wait.
  • publish <name> <tag> publishes an existing tag's Release without deploying it, for versions from before publishing (--date, --notes-from). Marked as not verified by a deploy.
  • releases <name> [tag] lists a project's tags and their status, or shows the GitHub Release text a tag will get: its CHANGELOG.md section under a dated heading, with a warning when the section or the date is missing.
  • list and status show tags waiting for main, moved tags, Releases failing to publish, and projects that deploy releases but have no version tag yet. status shows whether publishing is on.

Changed

  • A release deploys only once its commit is on the default branch. A tag pushed before main waits, and deploys on the first check after main contains it.
  • Version tags are compared as SemVer, pre-releases included; pre-releases are still never deployed automatically.
  • retry is recorded with its own trigger, retry, instead of manual: a release it deploys counts as deployed by a check.
  • Tests run in the Dockerfile's test stage instead of GitHub Actions. Every deploy of Lighthouse runs gofmt, vet and the tests with -race first, and a failure stops the deploy. The database tests, govulncheck and the checks that need Docker run locally.

Upgrading

  • To publish, create a GitHub App with Contents read and write, install it on the repositories to publish, store its key in Cove as LIGHTHOUSE_GITHUB_APP_SECRET, and set GITHUB_APP_ID in docker-compose.yml. Until then Lighthouse runs as before, and the releases it deploys wait to be published.