Skip to content

fix: email validation, OAuth error display, translator crash guard, clone slugs, watchdog pauses - #959

Merged
fclairamb merged 13 commits into
mainfrom
feat/todos-2026-11-20
Nov 21, 2026
Merged

fclairamb merged 13 commits into
mainfrom
feat/todos-2026-11-20

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Sign-up and invitations refuse an address the mail sender can't parse (trimmed first; 422 VALIDATION_ERROR on email), instead of returning 200 and silently dropping the confirmation email. Shareable invitations without an address still work.
  • Login page shows an OAuth sign-in error (e.g. EMAIL_NOT_VERIFIED) that the provider nested inside returnTo, and drops it from the retry link.
  • Dashboard no longer crashes when Chrome auto-translates it: a startup guard turns the translator's broken removeChild/insertBefore calls into a logged no-op.
  • Cloning a check no longer stacks suffixes: a clone of acme-copy gets acme-copy-2, names lose (copy) stacking. The edit form offers a one-click "Update slug to <derived>" after a rename while the slug is still the generated one; the inline slug editor selects its text on focus.
  • Checker watchdog gives a checker 250 ms of last chance after its abandon timer, and classifies an abandon past 2x the budget as process_paused (WARN) instead of ignored_context (ERROR). All abandon lines carry elapsed and exec_timeout; new metric reason process_paused.

Batch gate: make build-backend lint-back test, dash0 typecheck:e2e/lint:e2e, full Playwright (1056 passed, 15 skipped): green.

Closes fclairamb/solidping-business#95
Closes fclairamb/solidping-business#96
Closes fclairamb/solidping-business#97
Closes fclairamb/solidping-business#98
Closes fclairamb/solidping-business#99

Decided by autopilot

  • Clone slug spec, "where does the user choose the clone's slug?": on the edit form, no clone dialog (the existing slug field in the organization section is kept where it is).
  • Clone slug spec, "rename re-derives the slug?": only offered as a one-click hint while the slug is still auto-generated; a hand-set slug is never changed.
  • Checker watchdog spec, "pause detection signal": elapsed-vs-budget ratio (> 2x budget = pause).
  • chore(deps): update github-actions (non-major) #95: 422 VALIDATION_ERROR (the repo's usual status for field errors) rather than the 400 the issue suggested.
  • chore: retry release-as trailer for v0.2.0 #98: option 1 of the issue (DOM guard), translation stays available.

⚠️ Dashboards or alerts watching only ignored_context on solidping_check_runner_abandoned_total won't see pause-induced abandons (process_paused).

🤖 Generated with Claude Code

fclairamb and others added 4 commits November 20, 2026 12:14
…nnot parse (fclairamb/solidping-business#95)

A sign-up with a malformed address (double dot, space, double @) got 200
"check your inbox" while enqueueEmail (service.go, email.ValidAddress) dropped
the confirmation mail. Service.Register only matched the address against
registration_email_pattern. Register and CreateInvitation now trim the address
and require a single plain parseable one (plainSendableAddress, email_change.go)
before anything is stored, answering 422 VALIDATION_ERROR on the email field.
A link-only invitation (no address) still works. Tests in handler_test.go fail
before the fix (200 and a stored pending entry).

Closes fclairamb/solidping-business#95

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… nested in returnTo (fclairamb/solidping-business#99)

A provider sign-in refused server-side (e.g. no verified email) showed no
error: redirectOAuthError (join_policy.go) appends error/error_description to
the post-login destination, which needs a session, so the guard bounced to the
login page with the error nested in returnTo, while the login page only read
its own error_description (orgs/$org/login.tsx validateSearch). The login page
now lifts the error out of returnTo (oauthErrorFromReturnTo) and drops it from
the retry destination. Vitest and e2e login.spec.ts guard it; the e2e test
fails on the previous build (no login-error banner).

Closes fclairamb/solidping-business#99

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

With Chrome auto-translating the dashboard into a language the app does not
ship, nearly every navigation crashed into the route error boundary
(NotFoundError on insertBefore/removeChild): the translator moves React-owned
text nodes into <font> wrappers, and the <html lang> fix in i18n.ts only stops
the offer for shipped languages. main.tsx now installs, before React mounts, a
guard (lib/translator-dom-guard.ts) that turns those two calls into a logged
no-op when the node is no longer a child, so translation stays available.
translator-dom-guard.test.ts fails without the guard (both calls throw).

Closes fclairamb/solidping-business#98

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch labels Nov 20, 2026
fclairamb and others added 5 commits November 20, 2026 12:22
Adds the clone-of-a-clone numbering test (-copy, -copy-2, -copy-3); the
check-clone-slug E2E passes against a fresh database; the react-hooks
set-state-in-effect errors in check-form.tsx are pre-existing at BASE.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.99559% with 109 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.84%. Comparing base (7dfbcd6) to head (b72f85b).

Files with missing lines Patch % Lines
server/internal/handlers/manifestapply/pages.go 82.07% 38 Missing ⚠️
server/internal/handlers/manifestapply/service.go 90.50% 17 Missing ⚠️
server/internal/handlers/manifestapply/windows.go 85.71% 16 Missing ⚠️
server/internal/handlers/manifestapply/channels.go 84.69% 15 Missing ⚠️
server/internal/handlers/manifestapply/handler.go 77.55% 11 Missing ⚠️
server/internal/handlers/manifestapply/export.go 92.85% 7 Missing ⚠️
server/internal/handlers/auth/handler.go 50.00% 3 Missing ⚠️
server/internal/handlers/auth/email_change.go 85.71% 1 Missing ⚠️
server/internal/handlers/checks/service.go 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #959      +/-   ##
==========================================
- Coverage   90.86%   90.84%   -0.03%     
==========================================
  Files        1392     1399       +7     
  Lines      143775   144643     +868     
==========================================
+ Hits       130640   131396     +756     
- Misses      13127    13239     +112     
  Partials        8        8              
Files with missing lines Coverage Δ
server/internal/app/server.go 92.19% <100.00%> (+0.03%) ⬆️
server/internal/checkworker/worker.go 91.81% <100.00%> (+0.47%) ⬆️
server/internal/db/models/integration.go 80.64% <ø> (ø)
server/internal/db/models/maintenance_window.go 93.93% <ø> (ø)
server/internal/db/models/status_page.go 95.61% <ø> (ø)
server/internal/db/postgres/postgres.go 94.99% <100.00%> (+0.01%) ⬆️
server/internal/db/sqlite/sqlite.go 96.78% <100.00%> (+<0.01%) ⬆️
server/internal/handlers/auth/service.go 97.78% <100.00%> (+0.01%) ⬆️
server/internal/handlers/checks/apply.go 94.44% <100.00%> (-0.37%) ⬇️
server/internal/handlers/checks/export_kinds.go 100.00% <100.00%> (ø)
... and 19 more

... and 17 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 and others added 3 commits November 20, 2026 12:47
…/solidping-business#97)

When the abandon timer fires, the watchdog keeps listening on the outcome
channel for 250 ms: a checker that honoured its context but needed a few
ms to unwind after a process pause returns a normal timeout result.

An abandonment whose timer fired more than twice past its budget
(execTimeout + grace) is classified reason=process_paused and logged at
WARN; ignored_context stays for a real hang. Both abandon lines now carry
elapsed and exec_timeout.

New metric reason value: solidping_check_runner_abandoned_total{reason="process_paused"}.

Closes fclairamb/solidping-business#97

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb changed the title fix: registration email validation, OAuth error display, translator crash guard fix: email validation, OAuth error display, translator crash guard, clone slugs, watchdog pauses Nov 20, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 20, 2026
…stgres Unix-socket docs (#964)

Stacked on #959: merge it first.

Closes #960
Closes #958

## What changed

- **Docs: PostgreSQL over its Unix socket** (#960): a subsection on the
Docker install page (mounted socket, working `SP_DB_URL`, `&port=5433`
for a non-default port, why percent-encoded hosts fail), linking to the
configuration reference. A test checks both pages carry a socket DSN the
driver resolves to a socket path.
- **`sp apply` beyond checks** (#958, Part B): a manifest can now hold
`channels`, `maintenanceWindows` and `statusPages` next to `checks`,
cross-referencing checks by slug. One orchestrator plans and applies
them in dependency order (checks → channels → windows → pages, prune in
reverse) under a single deletion cap; plan entries carry a `kind`.
- Migration 039 (Postgres + SQLite): optional per-org-unique `slug` on
channels and maintenance windows, `managed_by` on channels, windows and
status pages. Prune only deletes rows owned by the manifest.
- New admin-only routes `POST /orgs/:org/apply` and `GET
/orgs/:org/export`; `POST /checks/apply` keeps working through the
orchestrator.
- CLI: `sp apply` prints a KIND column; `sp checks export --all-kinds`
bootstraps a full manifest from a live org.
  - Docs (config-as-code, CLI) and OpenAPI updated.
- The Terraform/OpenTofu provider itself (Part A) moved to #965: it
needs a new repo, a GPG key and registry accounts.

## Decided by autopilot

- 2026-11-21-01, order of delivery: `sp apply` (Part B) first, provider
next in its own repo (#965).
- 2026-11-21-01, who creates and signs the provider release: Florent
(repo, GPG key in gopass, registries), tracked in #965.
- 2026-11-21-01, identity for channels and maintenance windows: new
optional per-org-unique `slug` column.
- Implementation: channel `${env:…}` secrets are resolved at apply time
and stored encrypted like any channel secret (the notification senders
cannot resolve references); rotating one means re-applying. Values are
never printed in the plan.
- Implementation: a slug-less channel (same name and type) or window
(same title) is adopted when exactly one matches, so `export
--all-kinds` then `apply` doesn't create duplicates.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb merged commit a20f951 into main Nov 21, 2026
37 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-20 branch November 21, 2026 07:56
fclairamb added a commit that referenced this pull request Nov 21, 2026
Closes #942

## What changed
- **OIDC-only mode (#942)**: a new switch `auth.local_login.enabled`
(`SP_LOCAL_LOGIN_ENABLED`, on by default) turns off password login,
register, password reset, change-password, LDAP login, and accepting an
invite with a password. Those endpoints then answer 403
`LOCAL_LOGIN_DISABLED`. Passkeys and SSO still work. The login and
security pages hide the password UI, and the super-admin auth settings
page has the switch.
- **Lock-out guard**: when no SSO provider is enabled, local login stays
on and the server logs a warning at boot. The API also refuses to turn
local login off.
- **Admin roles from IdP groups**: `auth.oidc.groups_claim`,
`auth.oidc.super_admin_groups` and `auth.oidc.org_admin_groups` give
super admin and org admin to members of those IdP groups.
- A role granted this way is removed when the user leaves the group.
Roles set by hand are never touched, and the last admin is always kept.
- Where a role came from is stored in two new columns,
`users.super_admin_source` and `organization_members.role_source`, in
the unreleased 039 migration.
- Each change is audited (`auth.super_admin_changed`) and returned as
`roleChanges` on `/auth/handoff/exchange`.
- **OIDC-only first boot**: no admin with a password is created and the
default org starts empty. The first member of a super-admin group
becomes its owner.
- **Break-glass access**: restart with `SP_LOCAL_LOGIN_ENABLED=true` and
`SP_ADMIN_PASSWORD` to get a super admin back.
- **Docs**: an authentication guide (docker-compose example, break-glass
steps), a new `wiki/features/sso.md`, the errors, auth and DB-model wiki
pages, and OpenAPI.
- Merged `main` (with #959). The 039 migration keeps both sections;
`handleInvitationError` keeps both the local-login-disabled and
invalid-email cases.

## Decided by autopilot
- oidc-only-mode, Q1 (local login off but no working SSO provider): keep
local login on at boot with a warning, and have the API refuse the
switch.
- oidc-only-mode, Q2 (does the switch cover LDAP?): yes.
`auth.ldap.enabled` stays the way to run LDAP-only.
- oidc-only-mode, Q3 (where to record the claim-granted super admin): a
nullable `users.super_admin_source` column. The org-admin role gets the
same treatment with `organization_members.role_source`.
- oidc-only-mode, Q4 (break-glass access): `SP_LOCAL_LOGIN_ENABLED=true`
+ `SP_ADMIN_PASSWORD` at restart, documented, with no hidden back door.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb added a commit that referenced this pull request Nov 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.53.0](v0.52.0...v0.53.0)
(2026-11-22)


### Features

* **auth:** OIDC-only mode with IdP group admin roles
([#966](#966))
([1b51f89](1b51f89))
* **service:** install writes config.env, unit loads it via
EnvironmentFile
([#948](#948))
([e4b7fc4](e4b7fc4))


### Bug Fixes

* **aggregation:** drain the raw backlog in one run and log lag
([#978](#978))
([26b93cd](26b93cd))
* **deps:** update github.com/dop251/goja digest to 79d6ad3
([#972](#972))
([02c6821](02c6821))
* **deps:** update go dependencies (non-major)
([#955](#955))
([7dfbcd6](7dfbcd6))
* **deps:** update go dependencies (non-major)
([#968](#968))
([6c09bae](6c09bae))
* **deps:** update go dependencies (non-major)
([#979](#979))
([ee088b6](ee088b6))
* **deps:** update module github.com/oapi-codegen/oapi-codegen/v2 to
v2.9.0 ([#975](#975))
([1121e2e](1121e2e))
* **deps:** update module go.mongodb.org/mongo-driver/v2 to v2.10.1
([#950](#950))
([9e684c4](9e684c4))
* email validation, OAuth error display, translator crash guard, clone
slugs, watchdog pauses
([#959](#959))
([a20f951](a20f951))
* log OAuth code-exchange failures, show a refused sign-in on the
invitation page
([#974](#974))
([c4a8dca](c4a8dca))
* retry SMTP 4xx, 503 on agent auth DB errors, scope checkGroupUid to
the org ([#973](#973))
([88179aa](88179aa))
* **security:** block WebRTC around the browser egress proxy, survive an
invalid status page ?lang=
([#957](#957))
([79bdc82](79bdc82))
* **security:** keep OIDC-group admin grants revocable, mask resolved
channel references, contain browser popups
([#976](#976))
([6e0f09e](6e0f09e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Opus 5.5 <[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

Development

Successfully merging this pull request may close these issues.

1 participant