Commit Graph
17 Commits
Author SHA1 Message Date
Sebi d99a19250b Merge pull request 'ci: release only tags on main' (#137) from ci/release-guard into main
ci / build (push) Successful in 22m27s
ci / lint (push) Successful in 7m27s
ci / test (push) Failing after 14m14s
ci / image (push) Successful in 4m17s
2026-11-23 18:37:26 +00:00
Sebastian UnterschützandClaude Opus 5.5 f278b66efb ci: release only tags on main
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (push) Skipped
ci / build (pull_request) Successful in 9m7s
ci / image (pull_request) Successful in 5m17s
ci / lint (pull_request) Successful in 7m13s
ci / test (pull_request) Successful in 12m58s
Only code that reached main through a protected merge is released, the
release workflow included: a tag on any other commit, such as one with a
changed workflow, publishes nothing. Together with the tag protection
that leaves v* tags to the Owners team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 19:22:55 +01:00
Sebastian UnterschützandClaude Opus 5.5 0c382f814c feat(agents): one-line install and Compose files for agents
ci / build (pull_request) Successful in 11m3s
ci / lint (pull_request) Successful in 10m38s
ci / image (pull_request) Successful in 4m40s
ci / test (pull_request) Successful in 17m29s
The API serves /install.sh with its public address and agent image
filled in. The POSIX sh script checks for Linux on a supported CPU,
Docker and Compose, writes /opt/uptimesebi/<kind>[-<name>]/compose.yaml
and a .env readable only by its owner, starts the agent and waits until
it is healthy. Options cover status page hosts with Let's Encrypt, the
plain image for manual updates, the Docker socket for checkers and
several agents per host; running it again changes the settings.

The Compose files in deploy/agent are configured through .env alone, so
they also work without the script. Images follow the platform's channel
(latest, beta or edge). CI shellchecks the rendered script.

Closes #130

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 19:07:02 +01:00
Sebastian UnterschützandClaude Opus 5.5 a35dadd8f6 feat(agents): self-updating agent image variant
ci / image (pull_request) Successful in 4m40s
ci / lint (pull_request) Successful in 12m17s
ci / test (pull_request) Successful in 9m12s
ci / build (pull_request) Successful in 16m25s
The -autoupdate variant of the checker and status page images adds a
launcher layer. The launcher runs the agent as a child process and keeps
it on the platform's release: GET /agent/v1/update names the API's own
release and the agent image for it, the launcher downloads the binary
for its platform from the registry, accepts it only when the index is
signed with a release key for exactly that version, swaps the agent
gracefully and rolls back when the new release does not become ready or
crashes right after starting. Agents never get ahead of the API, and
installations on unreleased builds are not followed.

CI pushes both variants and signs each index with RELEASE_SIGNING_KEY
(minisign signature in a sha256-<digest>.minisig image next to it). The
image builder moves to internal/agentimage; the API image job takes the
build job's version so the API reports the release its agents are tagged
with. Agents gain a version command.

Closes #129
Closes #128

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 18:57:48 +01:00
Sebastian Unterschütz 431048e244 Merge remote-tracking branch 'origin/feat/release-signing' into feat/autoupdate
# Conflicts:
#	README.md
2026-11-23 18:40:16 +01:00
Sebastian UnterschützandClaude Opus 5.5 a9f94fc492 feat(agents): multi-arch checker and status page images on scratch
ci / image (pull_request) Successful in 7m15s
ci / test (pull_request) Successful in 9m5s
ci / lint (pull_request) Successful in 14m17s
ci / build (pull_request) Successful in 15m59s
uptimesebi-checker and uptimesebi-statuspage for linux/amd64, arm64,
arm/v7 and arm/v6, from a Raspberry Pi Zero to servers. tools/image
assembles them from the cross-compiled binaries without Docker or
emulation: one layer on an empty base with the binary, a data volume
owned by the unprivileged user and a HEALTHCHECK running the new
`checker health` / `statuspage health` commands. The binaries embed time
zone data and fallback CA roots, so no base image ever needs updating.
CI pushes them with the same channel tags as the main image; releases
carry tarballs for all four platforms.

Refs #128

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 18:33:42 +01:00
Sebastian UnterschützandClaude Opus 5.5 b1ca8eb19f feat(release): sign checksums and publish an SBOM
ci / image (pull_request) Successful in 4m1s
ci / build (pull_request) Successful in 8m59s
ci / lint (pull_request) Successful in 10m34s
ci / test (pull_request) Successful in 12m29s
Releases carry SHA256SUMS signed in the minisign format (prehashed
Ed25519, the release tag as trusted comment) and an SPDX SBOM of the Go
modules and the npm packages the frontend build bundles. internal/signing
signs and verifies; the release keys are committed in release.pub and
compiled in, so the self-updating agents can check their downloads.
Without the RELEASE_SIGNING_KEY secret a release is published unsigned
with a warning.

Closes #34

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 18:20:05 +01:00
Sebi 866e4c2313 chore(deps): pin dependencies
ci / image (pull_request) Successful in 5m10s
ci / test (pull_request) Successful in 18m16s
ci / build (pull_request) Successful in 9m5s
renovate/stability-days Updates have not met minimum release age requirement
ci / lint (pull_request) Failing after 10m22s
2026-11-23 16:21:49 +00:00
Sebi 5beb9f6451 Merge pull request 'chore(deps): update apache/kafka-native docker tag to v4.4.0' (#122) from renovate/apache-kafka-native-4.x into main
ci / test (push) Successful in 18m2s
ci / build (push) Successful in 5m57s
ci / image (push) Successful in 4m6s
ci / lint (push) Failing after 15m25s
2026-11-23 16:18:03 +00:00
Sebi b05f3dbdb0 Merge pull request 'ci: release automation from Conventional Commits' (#126) from feat/release into main
ci / lint (push) Canceled after 30s
ci / test (push) Canceled after 18s
ci / build (push) Canceled after 17s
ci / image (push) Canceled after 18s
2026-11-23 16:15:55 +00:00
Sebastian UnterschützandClaude Opus 5.5 68a7827475 ci: release automation from Conventional Commits
ci / image (pull_request) Successful in 3m39s
ci / build (pull_request) Successful in 5m34s
ci / lint (pull_request) Successful in 9m41s
ci / test (pull_request) Successful in 16m7s
tools/release derives the next version from the commits since the last
stable release and renders the changelog. `make release` tags it on main,
CHANNEL=beta a numbered prerelease of the coming version; pushing the tag
runs the release workflow, which publishes the release with its notes,
Linux binaries and checksums. Images get channel tags: edge for main, beta
for prereleases, latest, stable and X.Y for releases.

Closes #33

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 07:17:02 +01:00
Sebastian UnterschützandClaude Opus 5.5 d58e3e2653 chore(lint): re-enable staticcheck and unused
ci / lint (pull_request) Successful in 6m32s
ci / test (pull_request) Successful in 12m59s
ci / image (pull_request) Successful in 6m29s
ci / build (pull_request) Successful in 11m31s
golangci-lint v2.15.0 ships a honnef.co/go/tools that analyzes the Go 1.27
standard library without panicking. Fix what they found: dead helpers, an
unused constant, error strings starting with a product name, the usage
error, and two negations simplified by De Morgan.

Closes #43

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 07:12:20 +01:00
Sebi 77498934fc chore(deps): update apache/kafka-native docker tag to v4.4.0
ci / test (pull_request) Successful in 17m23s
renovate/stability-days Updates have met minimum release age requirement
ci / lint (pull_request) Successful in 14m45s
ci / image (pull_request) Successful in 7m11s
ci / build (pull_request) Successful in 9m0s
2026-11-23 00:15:48 +00:00
Sebastian UnterschützandClaude Opus 5.5 302514dc35 feat: message broker monitors in the editor and API docs
ci / build (pull_request) Successful in 7m52s
ci / image (pull_request) Successful in 4m9s
ci / test (pull_request) Successful in 7m3s
ci / lint (pull_request) Successful in 5m36s
Adds editor fields and translations for MQTT, Kafka and RabbitMQ, and
documents DBConfig and BrokerConfig, which the API reference lacked.
Compose's checks profile and CI gain Kafka and RabbitMQ.

Closes #94

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 16:43:51 +01:00
Sebastian UnterschützandClaude Opus 5.5 d3cf9f48e1 feat: database monitors with sealed credentials
ci / image (pull_request) Successful in 2m38s
ci / build (pull_request) Successful in 7m5s
ci / lint (pull_request) Successful in 10m15s
ci / test (pull_request) Failing after 11m53s
Secret monitor settings such as database passwords are stored sealed,
bound to monitor type and field, never returned by the API, the console
or exports, kept when an edit leaves them empty, and opened only for the
checker's job. Monitor types are validated by the check package; the
database only checks their format. Compose gets a checks profile with
MariaDB, MongoDB and SQL Server, and CI tests against MariaDB and
MongoDB.

Closes #93

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 16:17:08 +01:00
Sebastian UnterschützandClaude Opus 5.5 db8bdb3a62 ci: install Go and sqlc as binaries instead of through actions
ci / image (pull_request) Successful in 3m22s
ci / test (pull_request) Successful in 5m29s
ci / build (pull_request) Successful in 6m27s
ci / lint (pull_request) Successful in 9m34s
The runners are ephemeral and clone every action from GitHub, which took
several minutes per job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 12:46:32 +01:00
Sebastian UnterschützandClaude Opus 5.5 d24937e584 ci: lint, test against TimescaleDB and Redis, build binaries and image
ci / image (pull_request) Successful in 2m32s
ci / build (pull_request) Successful in 11m7s
ci / test (pull_request) Failing after 13m2s
ci / lint (pull_request) Successful in 18m32s
Refs #32, #37

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 12:16:01 +01:00