Skip to content

feat: sp apply for channels, maintenance windows and status pages; Postgres Unix-socket docs - #964

Merged
fclairamb merged 6 commits into
feat/todos-2026-11-20from
feat/todos-2026-11-21
Nov 21, 2026
Merged

fclairamb merged 6 commits into
feat/todos-2026-11-20from
feat/todos-2026-11-21

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #959: merge it first.

Closes #960
Closes #958

What changed

  • Docs: PostgreSQL over its Unix socket (Docs: add a working Postgres Unix-socket DSN example #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 (Terraform/OpenTofu provider (IaC users pick competitors without one) #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 Terraform/OpenTofu provider: terraform-provider-solidping (repo, release, registries) #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 (Terraform/OpenTofu provider: terraform-provider-solidping (repo, release, registries) #965).
  • 2026-11-21-01, who creates and signs the provider release: Florent (repo, GPG key in gopass, registries), tracked in Terraform/OpenTofu provider: terraform-provider-solidping (repo, release, registries) #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

#960)

The Docker install page only showed a TCP SP_DB_URL; socket users had no example
since the fix of #939 (the reference page had one, docker.md did not). It now
shows a docker run with the mounted socket directory, the `&port=5433` note and
why a percent-encoded host fails. dsn_docs_test.go checks that both pages show a
socket DSN that DriverDSN turns into a socket file; it failed before this change.

Closes #960

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 21, 2026
fclairamb and others added 5 commits November 21, 2026 01:47
Converted from issue #958: no provider repo exists yet, sp apply only
manages checks. Needs a new repo, migrations and new apply endpoints.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds slug/managed_by columns (migration 039), the multi-kind apply
orchestrator, POST /orgs/:org/apply and GET /orgs/:org/export, and
`sp checks export --all-kinds`.

Refs #958

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d widen sp apply past checks (Part B)

Part A (provider repo) is tracked in #965 and not implemented here.
Refs #958

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb changed the title docs: add a working Postgres Unix-socket DSN example feat: sp apply for channels, maintenance windows and status pages; Postgres Unix-socket docs Nov 21, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 21, 2026
@fclairamb
fclairamb merged commit b72f85b into feat/todos-2026-11-20 Nov 21, 2026
5 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-21 branch November 21, 2026 07:18
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