Repository navigation
fix: email validation, OAuth error display, translator crash guard, clone slugs, watchdog pauses - #959
Merged
Conversation
…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/solidping-business#96, fclairamb/solidping-business#97) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mb/solidping-business#96) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 Report❌ Patch coverage is 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
🚀 New features to boost your workflow:
|
…/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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
Merged
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
VALIDATION_ERRORonemail), instead of returning 200 and silently dropping the confirmation email. Shareable invitations without an address still work.EMAIL_NOT_VERIFIED) that the provider nested insidereturnTo, and drops it from the retry link.removeChild/insertBeforecalls into a logged no-op.acme-copygetsacme-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.process_paused(WARN) instead ofignored_context(ERROR). All abandon lines carryelapsedandexec_timeout; new metric reasonprocess_paused.Batch gate:
make build-backend lint-back test, dash0typecheck: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
VALIDATION_ERROR(the repo's usual status for field errors) rather than the 400 the issue suggested.ignored_contextonsolidping_check_runner_abandoned_totalwon't see pause-induced abandons (process_paused).🤖 Generated with Claude Code