Repository navigation
Releases
Releases · lsariol/lighthouse
v1.6.1
v1.6.0
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 thesparknetwork with no port published. It reads the database aslighthouse_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,stoppedornot_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) andGET /v1/releases. Every request butGET /healthzneeds a bearer token,SHARED_LIGHTHOUSE_VISTA_TOKEN. A wrong parameter is a400that names it. lighthouse health apiislighthouse-api's healthcheck.
Changed
- Lighthouse's compose file takes secrets:
LIGHTHOUSE_DATABASE_READER_URLandSHARED_LIGHTHOUSE_VISTA_TOKEN, forlighthouse-apionly, 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
lighthouseservice by hand, thendeploy lighthousefrom its prompt startslighthouse-apiwith its secrets (README, "Start Lighthouse").
v1.5.0
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, asdeploytakes one.checkbefore 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 withCAP_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.jsonmust name itsservice, 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 inmount:/proc/1/net/dev:ro. A read-write mount under a read-only exception is refused with a hint.:roon a socket is refused whenpolicy.jsonloads, since a socket mounted read-only still takes every request. - The migrator's database URL is
LIGHTHOUSE_DATABASE_MIGRATOR_URL(it wasLIGHTHOUSE_MIGRATOR_DATABASE_URL), so the three connection strings readLIGHTHOUSE_DATABASE_URL,LIGHTHOUSE_DATABASE_MIGRATOR_URLandLIGHTHOUSE_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_URLsetspool_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
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 lighthouseis JSON: one record per line, throughblackboxlog.LOG_FORMAT=textorAPP_ENV=devgives readable lines,LOG_LEVELsets the level, and a local run with the CLI stays readable. Each deploy step's output is unchanged, as plain[<project> <step>]lines.ERRORnow means someone should look: a failed check or deploy that's tried again by itself isWARN, a project marked broken isERRORinstead ofWARN, and a self-update that failed isERRORinstead ofINFO.- A startup failure is an
ERRORrecord:Lighthouse can't run, with the reason inerr, so it shows up in a search by level. It used to be a plainlighthouse: …line. - One failure, one line: a failed deploy is no longer logged again as a failed check and a failed scan.
- Standard fields:
componentsays which part of Lighthouse wrote a line,deploy finishedanddeploy failedcarryoutcomeandduration_ms, andmigration appliedhasduration_msinstead oftook. 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 setupfollows the standard: it recommends deploying from version tags, says to push a baseline tag before moving a running project over, and shows thecom.mobasity.public-urllabel.
Fixed
- Labels written as a list:
- key=valuestopped a deploy withcannot unmarshal array. A list now works like a map, and the public-address label is checked the same way in both. helpwith a wrong argument leftrulesout of its usage line.
v1.3.1
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
v1.3.0 (2026-10-21)
Added
- Exceptions for one service: an exception in
policy.jsoncan name aservice, 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 thecheckstep. - The
com.mobasity.public-urllabel: 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 fullhttps://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
v1.2.2 (2026-10-20)
Changed
listis narrower: NAME, MODE, VERSION and DEPLOYED. MODE saystags,commitsorpublish-only(with the tier forinfraanddata); 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
v1.2.1 (2026-10-20)
Changed
listandstatusshow 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
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 onmaingets a GitHub Release, with no compose file, deploy or containers.deploy,rollback,retry,checkand the container commands refuse such a project,allskips it, andstatusdoesn'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
publishedinreleases.
Changed
- The setup steps store the GitHub App's key in Cove in base64, since Cove's
createtakes one line
v1.1.0
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,supersededormoved. The tags already there at the first check are recorded asknownand 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 datedCHANGELOG.mdsection, 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 bystatus. Needs a GitHub App (GITHUB_APP_ID, its keyLIGHTHOUSE_GITHUB_APP_SECRETin 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: itsCHANGELOG.mdsection under a dated heading, with a warning when the section or the date is missing.listandstatusshow tags waiting formain, moved tags, Releases failing to publish, and projects that deploy releases but have no version tag yet.statusshows whether publishing is on.
Changed
- A release deploys only once its commit is on the default branch. A tag pushed before
mainwaits, and deploys on the first check aftermaincontains it. - Version tags are compared as SemVer, pre-releases included; pre-releases are still never deployed automatically.
retryis recorded with its own trigger,retry, instead ofmanual: a release it deploys counts as deployed by a check.- Tests run in the Dockerfile's
teststage instead of GitHub Actions. Every deploy of Lighthouse runs gofmt, vet and the tests with-racefirst, and a failure stops the deploy. The database tests,govulncheckand 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 setGITHUB_APP_IDindocker-compose.yml. Until then Lighthouse runs as before, and the releases it deploys wait to be published.