Skip to content

feat: status updates in several languages, random first admin password, Postgres Unix socket - #939

Merged
fclairamb merged 40 commits into
mainfrom
feat/todos-2026-11-18-2
Nov 19, 2026
Merged

fclairamb merged 40 commits into
mainfrom
feat/todos-2026-11-18-2

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #938: merge it first.

What changed

  • Status updates in several languages (specs/done/2026/11/2026-11-18-04-status-update-translations.md). A nullable translations column on status_updates and incident_publications, keyed by language ({"fr": {"title": "...", "body": "..."}}). The API accepts and returns it (PATCH: absent keeps it, {}/null clears it, a map replaces it), the public status page returns it, and invalid entries answer 422 VALIDATION_ERROR. The dash0 editors (status updates, publications) get an "Other languages" block, also shown on the design reference page. The status page and the TV board show, for a visitor in language L: the translation in L, else the generated text in L, else the page-language text. Mails, webhooks and feeds keep the page language. Migration 038 is extended, not a new one: a dev database that already ran 038 needs a reset.
  • First admin gets a random password (specs/done/2026/11/2026-11-19-01-first-boot-random-admin-password.md, First boot: random admin password printed to console instead of the public default #943). Outside the test and demo run modes, a fresh install seeds [email protected] with a 20-character random password, printed once in a First login WARN line, still forced to change at first login. SP_ADMIN_PASSWORD sets it instead. If the line is lost, a boot with SP_ADMIN_PASSWORD resets the seeded admin's password, only while it has never been rotated. Docs: a "Password of the first admin" section in configuration/authentication.md, and every install page, the Helm NOTES and the READMEs updated. make dev keeps solidpass via SP_ADMIN_PASSWORD.
  • Postgres over a Unix socket (Postgres: verify and document Unix-socket DSN (host=/var/run/postgresql) #944). host=/var/run/postgresql names the socket directory, as with libpq: the DSN is rewritten for bun's pgdriver and for the LISTEN notifier. There's a test against a real socket-only Postgres, and a "Unix-domain socket" section in configuration/database.md.

Behaviour change

New installs in the default run mode no longer accept [email protected] / solidpass: the password is in the startup logs, or set by SP_ADMIN_PASSWORD. Existing databases are not affected. This belongs in the release notes. It isn't marked !: the release-please config has no bump-minor-pre-major, so a ! would cut 1.0.0.

Decided by autopilot

  • First-boot password, run modes: test and demo keep solidpass, the default mode gets a random one (spec's recommended answer).
  • First-boot password, reprint: no, it is printed once. Recovery goes through SP_ADMIN_PASSWORD while the seeded admin hasn't rotated (spec's recommended answer).
  • Translations: invalid input answers 422 VALIDATION_ERROR (the repo's WriteValidationError), not the 400 the spec said. The spec was updated.
  • Issue First boot: random admin password printed to console instead of the public default #943 was turned into a spec rather than fixed directly: it touches the superadmin login and spans many files.

Batch gate

Build, lint-back, make test (287 packages), and dash0/status0 typecheck and e2e lint are green. The full dash0 Playwright run had 1045 passed, 4 failed, 3 flaky and 15 skipped, at load average ~27 from other sessions. On reruns, badges.spec.ts:557, check-scheduling.spec.ts:248 and check-multi-picker-uuid-chips.spec.ts still time out on serial API calls. A side-by-side run of origin/main under the same load fails the same tests, and one more. POST/PATCH /checks latencies are identical on both builds (p50 ~200/120 ms, p90 ~4.8/4.2 s). So it's load, not this batch. CI has the last word.

Closes #943
Closes #944


Specs filed with /todo, implemented on this branch by /implement-todos (or /autopilot). It gets the implemented label once every spec is done.

🤖 Generated with Claude Code

fclairamb and others added 10 commits November 18, 2026 20:23
…lts (fclairamb/solidping-business#93)

The "sender authentication incomplete" WARN only said "dmarc" when the
policy lookup failed (emailcheck/auth.go lookupDMARC): it now carries the
DNS cause ("dmarc: TXT record unavailable: ..."), the queried domain as a
dmarc_domain attribute, and tells a deadline already spent before the lookup
apart from a DNS failure. The abandoned-result reaper WARN now adds
reaped_by_region ("none" for rows without a region, such as the
"Check created" marker), so a burst can be traced to a checker.
Tests: auth_cover_test.go (temp failure entry, deadline case), the reaper
tests of both dialects and models.CountReaped; they fail before the fix.

Closes fclairamb/solidping-business#93

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…iramb/solidping-business#94)

With a search or a group filter active, the checks list force-expands every
group, but the header kept its button role, chevron and "Collapse group"
tooltip (checks.index.tsx GroupSection): clicks did nothing visible and each
one persisted "collapsed" to localStorage, so the group came back collapsed
once the filter was cleared. While forced, the header now has no toggle
(no chevron, role, aria-expanded or pointer) and a click writes nothing.
Test: e2e/check-group-collapse.spec.ts (search and group filter cases),
which fails before the fix.

Closes fclairamb/solidping-business#94

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-probe delivery watch

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb changed the title feat: todos 2026-11-18 feat(status-pages): write status updates in several languages Nov 18, 2026
fclairamb and others added 14 commits November 19, 2026 00:08
Frontend input, locales, docs and E2E for max_delivery_delay. CHANGELOG is
owned by release-please: feat(email) max_delivery_delay, delivery latency as
result duration, missed-probe delivery watch.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Punch list: hold a watch timeout row against the regular passive
evaluation until a newer email arrives (deliveryTimeoutAt, passiveVerdict),
enforce max_delivery_delay < period on create/update/plan/validate with the
effective period, test the late mail after a timeout, record the mechanism
in the spec done notes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A mail without X-SolidPing-Sent-At now gets its send time from its Date
header (sentAtSource: date), so third-party mail has a latency and can be
judged late against max_delivery_delay. The latency no longer needs the
source-check header. An email check with no paired SMTP check gets no
timeout row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The delivery card now renders for third-party mail too, and flags a latency
measured from the mail's Date header (sentAtSource: date). The maximum
delivery delay help line explains both send-time sources.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb added the frozen Batch PR under review: takes only its own fixes, new work goes to the next batch label Nov 19, 2026
fclairamb and others added 4 commits November 19, 2026 02:39
)

A libpq-style DSN such as postgres://u:p@/db?host=/var/run/postgresql failed:
bun's pgdriver dials the host value itself (driver/pgdriver config.go parseDSN),
so it tried to connect to the directory, not to its .s.PGSQL.<port> file.
postgres.DriverDSN now rewrites a socket-directory host to the socket file
(port from ?port=, the URL, or 5432) before pgdriver sees it, and ListenerDSN
does the inverse for lib/pq (LISTEN notifier), which wants the directory.
TestUnixSocketDSN_Postgres runs embedded Postgres with TCP off (new
embeddedpg.Options.SocketDir) and pings through both drivers; it fails without
the fix ("socket operation on non-socket"). Documented in configuration/database.md.

Closes #944

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fclairamb and others added 9 commits November 19, 2026 02:58
… read order

localizeGenerated takes the translations map: translation, then recipe, then
literal. dash0 editors get an Other languages block.
Docs (status pages feature page, database model), Playwright spec for a
French translation read with ?lang=fr and ?lang=de, lint fixes. Release
note for the changelog: status updates and publication titles accept
hand-written per-language translations (translations field).
Design reference gets the translations editor, a public status page test pins translations on recentUpdates and incidents, spec text says 422.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…test and demo

A fresh production install no longer seeds [email protected] with the
public solidpass. The startup seed now takes, in order: SP_ADMIN_PASSWORD
(auth.admin_password), defaults.Password in the test and demo run modes,
or a random 20-character password printed once in a WARN line at seed time.
The account keeps must_change_password.

While the seeded admin has not rotated its password, a boot with
SP_ADMIN_PASSWORD set re-hashes that one account to it (recovery when the
first-boot line is lost). The ready line prints solidpass only when it is
still the account's password, otherwise where to find it.

Behaviour change for new installs only: existing databases are untouched.

Closes #943

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…PASSWORD

Every page that told the user to sign in with solidpass now points at the
First login log line (docker logs, kubectl logs, fly logs, journalctl) and at
SP_ADMIN_PASSWORD to pin or recover it. make dev and make dev-backend pin
SP_ADMIN_PASSWORD=solidpass so fresh dev databases keep the known password;
the showcase side-car commands do the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb changed the title feat(status-pages): write status updates in several languages feat: status updates in several languages, random first admin password, Postgres Unix socket Nov 19, 2026
@fclairamb fclairamb added autopilot implemented Every spec of the PR is implemented and its batch gate was green labels Nov 19, 2026
Base automatically changed from feat/todos-2026-11-18 to main November 19, 2026 06:37
@fclairamb
fclairamb enabled auto-merge (squash) November 19, 2026 06:40
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.62295% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.89%. Comparing base (a87c869) to head (8a3ba0e).

Files with missing lines Patch % Lines
...ternal/jobs/jobtypes/job_startup_admin_password.go 80.64% 6 Missing ⚠️
.../internal/handlers/incidentpublications/service.go 88.63% 5 Missing ⚠️
server/internal/app/public_incidents.go 0.00% 2 Missing ⚠️
server/internal/db/models/translations.go 92.59% 2 Missing ⚠️
server/internal/handlers/statusupdates/service.go 96.42% 1 Missing ⚠️
server/internal/jobs/jobtypes/job_startup.go 88.88% 1 Missing ⚠️
server/internal/utils/passwords/generate.go 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #939      +/-   ##
==========================================
+ Coverage   90.87%   90.89%   +0.02%     
==========================================
  Files        1384     1388       +4     
  Lines      143138   143361     +223     
==========================================
+ Hits       130072   130307     +235     
+ Misses      13058    13046      -12     
  Partials        8        8              
Files with missing lines Coverage Δ
server/internal/app/ready.go 98.50% <100.00%> (+0.23%) ⬆️
server/internal/app/server.go 92.11% <100.00%> (ø)
server/internal/config/config.go 93.53% <100.00%> (+0.02%) ⬆️
server/internal/config/envvars.go 100.00% <100.00%> (ø)
server/internal/db/models/incident_publication.go 100.00% <ø> (ø)
server/internal/db/models/status_update.go 100.00% <ø> (ø)
server/internal/db/postgres/dsn.go 100.00% <100.00%> (ø)
...rver/internal/db/postgres/embeddedpg/embeddedpg.go 81.25% <100.00%> (+4.90%) ⬆️
...erver/internal/db/postgres/incident_publication.go 99.23% <100.00%> (+0.02%) ⬆️
server/internal/db/postgres/postgres.go 94.98% <100.00%> (ø)
... and 13 more

... and 24 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb
fclairamb merged commit a69424f into main Nov 19, 2026
35 of 36 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-18-2 branch November 19, 2026 07:24
fclairamb added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.52.0](v0.51.0...v0.52.0)
(2026-11-19)


### Features

* **checks:** Pingdom TMS and Chrome Recorder import, named steps and
test runs, richer selectors and basic auth for JS browser checks
([#909](#909))
([1240c57](1240c57))
* **dash0:** switch the dashboard language with ?lang= on any URL
([#926](#926))
([c2640ae](c2640ae))
* **email:** maximum delivery delay, Date-header latency and
missed-probe detection
([#938](#938))
([8489326](8489326))
* **showcase:** cut the published video in any dashboard language
([#932](#932))
([d940da5](d940da5))
* **showcase:** take the dashboard stills in any dashboard language
([#925](#925))
([5104606](5104606))
* status updates in several languages, random first admin password,
Postgres Unix socket
([#939](#939))
([a69424f](a69424f))


### Bug Fixes

* **dash0:** chart dates follow the dashboard language
([#928](#928))
([eae2951](eae2951))
* **deps:** update github.com/dop251/goja digest to 0802ca1
([#920](#920))
([3524928](3524928))
* **deps:** update github.com/dop251/goja digest to 2eded47
([#911](#911))
([a8496d4](a8496d4))
* **deps:** update github.com/dop251/goja digest to 8dfece3
([#935](#935))
([98297e8](98297e8))
* **deps:** update go dependencies (non-major)
([#907](#907))
([41187dc](41187dc))
* **deps:** update go dependencies (non-major)
([#927](#927))
([fcef3fc](fcef3fc))
* **deps:** update go dependencies (non-major)
([#940](#940))
([0fd9228](0fd9228))
* **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.9.0
([#922](#922))
([fe48c84](fe48c84))
* **deps:** update module github.com/posthog/posthog-go to v2
([#924](#924))
([eab03f2](eab03f2))
* **deps:** update module github.com/posthog/posthog-go to v2
([#929](#929))
([545e621](545e621))
* **deps:** update module github.com/posthog/posthog-go to v2
([#930](#930))
([82b03cc](82b03cc))
* **deps:** update module github.com/rabbitmq/amqp091-go to v1.17.0
([#916](#916))
([6974177](6974177))
* **deps:** update module
github.com/standard-webhooks/standard-webhooks/libraries to v1
([#931](#931))
([7b9d073](7b9d073))
* **deps:** update module golang.org/x/net to v0.63.0
([#923](#923))
([7d0fac9](7d0fac9))
* DMARC temperror cause, reaper regions, force-expanded group headers
([#934](#934))
([99f955d](99f955d))
* **i18n:** say "Check" instead of "Prüfung" in German
([#910](#910))
([696dcf8](696dcf8))
* **i18n:** translate generated incident, status-page and validation
text ([#913](#913))
([92bb05a](92bb05a))
* **security:** no paging contacts via impersonation/PAT, shared MCP
probe caps, browser WebSocket egress, analytics key replay
([#946](#946))
([8d51875](8d51875))
* **security:** per-org test-run slots, typed credentials of imported
transaction checks go to secrets
([#933](#933))
([51914b3](51914b3))
* **security:** Telegram bot membership and role checks, admin-only
email suppressions, mask import payload in replay
([#914](#914))
([55ffc4b](55ffc4b))
* Slack events after ack, region badge clicks, WHOIS deadline, legacy
agent warning, empty check groups
([#917](#917))
([65b00e2](65b00e2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
fclairamb added a commit that referenced this pull request Nov 21, 2026
…ntFile (#948)

Implements #947, requested by a user who tested the systemd install in
an LXC (https://feddit.org/comment/16146954): prepare the first start
with environment variables rather than YAML.

**What changes**
- `systemdUnit()` adds `EnvironmentFile=<data dir>/config.env` to both
system and user units.
- `serviceInstall` writes a commented `config.env` starter (0600,
chowned to the service user like the data folder). An existing
`config.env` is never overwritten — it may hold what the operator set.
- Completion output now prints `Configuration (YAML)` and `Configuration
(ENV)` paths.
- Docs (installation/linux): the data-folder tree, an ENV-only
first-start example (`SP_ADMIN_EMAIL`, `SP_DB_TYPE`, `SP_DB_URL` — each
`SP_*` overrides the matching `config.yml` key via the koanf env
loader), and the drop-in/migration sections updated to reference the
built-in file.

**Tests**
- Unit expectations updated (system + user), install tests assert the
file's mode/content and the `EnvironmentFile=` line, root install
asserts the chown, reuse test asserts an operator's `config.env`
survives reinstall.
- `writeConfigEnv` error paths (Lstat failure, write failure, chown
failure) are covered by `TestWriteConfigEnvErrors`, for the
codecov/patch target.
- `go test . -run 'TestServiceInstall|TestSystemdUnit|TestServiceRun'`
green in a golang:1.27 Linux container (the linux-tagged tests do not
run on the macOS dev host); `GOOS=linux go vet` clean.

Note: #939 (random first-boot password, `SP_ADMIN_PASSWORD`) is
independent; once both land, the ENV-only first start covers the admin
password too.

Source: https://feddit.org/comment/16146954

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

2 participants