14 Commits
Author SHA1 Message Date
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ützandClaude Opus 5.5 87b2f2a256 feat: verified sign-up and several organizations per account
ci / build (pull_request) Successful in 5m46s
ci / test (pull_request) Successful in 12m32s
ci / image (pull_request) Successful in 3m59s
ci / lint (pull_request) Successful in 14m9s
New accounts confirm their email address before signing in: sign-up
mails a link valid for 24 hours, and its page confirms only when the
visitor presses the button, so mail scanners opening links do not sign
in. Confirming signs the account in; unconfirmed accounts are told so
only after giving the right password, can ask for a new link, and are
deleted after a week. UPTIME_SIGNUP_VERIFY requires confirmation always
in the cloud edition and self-hosted wherever mail can be sent; without
a mail server, sign-up that needs it stays closed.

One account per mailbox: users.email_key drops +suffixes, and dots for
Gmail, and is unique, including for accounts created through
invitations and SSO, which count as confirmed. A client address (IPv6:
its /64) may create UPTIME_SIGNUPS_PER_IP accounts a day, 2 by default;
refused sign-ups do not count.

Sign-up asks only for name, email and password. Accounts without an
organization are led to create one; signed-in users create further
organizations from the switcher, within the per-account limit, and
POST /api/v1/orgs does the same.

Closes #112
Closes #113

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 21:59:12 +01: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 126d3a2fce feat: show monitor editors what the checker saw
The API keeps the latest success per monitor and region and failures,
thinned to one per five minutes while the error stays the same, for
UPTIME_RETENTION_EVIDENCE (30 days). Monitor pages link evidence from
the recent checks; a page shows timing, redirect chain with headers,
certificate and the body as text. Readers see none of it, since
responses may contain personal data or secrets.

Closes #79

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 12:09:42 +01:00
Sebastian UnterschützandClaude Opus 5.5 789ef077eb feat(platform): trust X-Forwarded-For only from configured proxies
gin trusted every proxy by default, so any client could choose the
address used for rate limits and the audit log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 09:59:52 +01:00
Sebastian UnterschützandClaude Opus 5.5 538e9358c3 feat(api): configurable retention, housekeeping and storage overview
UPTIME_RETENTION_RAW, _HOURLY and _DAILY set TimescaleDB's retention
policies, applied by "api migrate up" with owner rights and on start;
periods too short for the charts are rejected. An hourly job deletes
delivered notifications, stale invitations and expired API tokens after
UPTIME_RETENTION_HOUSEKEEPING and resolved incidents together with the
daily aggregate. The admin panel shows size, compression, retention and
background job status of each storage level.

Closes #63

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 09:50:12 +01:00
Sebastian UnterschützandClaude Opus 5.5 4d1db0943e feat(statuspage): obtain tls certificates on demand for custom domains
With UPTIME_STATUSPAGE_TLS the server serves HTTPS with ACME
certificates for its hosts and for verified custom domains of pages it
may serve, shared by all instances through the API. Plain HTTP answers
ACME challenges and health checks and redirects everything else.

Closes #22

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 08:54:08 +01:00
Sebastian UnterschützandClaude Opus 5.5 d9891bb050 feat!: let checkers and status page servers reach data only through the api
Only cmd/api connects to Postgres and Redis. Agents authenticate with
tokens created by 'api agent create' and use /agent/v1: checkers long
poll for jobs, which doubles as heartbeat, and report results in
batches. Organizations manage monitors through /api/v1/org/monitors.

BREAKING CHANGE: cmd/checker and cmd/statuspage no longer read
UPTIME_DATABASE_URL or UPTIME_REDIS_*; they need UPTIME_API_URL and
UPTIME_AGENT_TOKEN. UPTIME_CHECKER_REGION is replaced by the region bound
to the agent token.

Closes #10
Closes #11
Closes #12
Closes #13
Closes #49

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 01:12:53 +01:00
Sebastian UnterschützandClaude Opus 5.5 3f21361995 feat(api): let each organization sign in through its own identity provider
Owners manage OIDC providers under /settings/sso. Users start at
/sso/<org>. New users can be provisioned for verified emails in allowed
domains; existing accounts are never matched by email and must link
their SSO sign-in while signed in.

Closes #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:30:43 +01:00
Sebastian UnterschützandClaude Opus 5.5 db44fedc72 feat(api): add signup, login with totp and account security pages
Signup is limited to the first user by default (UPTIME_SIGNUP). TOTP
secrets are sealed with UPTIME_SECRET_KEYS and bound to the user id.

Closes #3
Closes #5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:55:23 +01:00
Sebastian UnterschützandClaude Opus 5.5 e9c7394c8b feat(platform)!: log exclusively as structured json
Request access logs, panics, migration output and fatal errors are now
emitted through the JSON slog handler.

BREAKING CHANGE: UPTIME_LOG_FORMAT is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:41:57 +01:00
Sebastian UnterschützandClaude Opus 5.5 8d1093cd2d build: add sentinel topology to dev compose stack
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:37:48 +01:00
Sebastian UnterschützandClaude Opus 5.5 073668a5b4 build: add dev compose stack, container image and makefile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:33:28 +01:00