Skip to content

feat: private org event feed, Ansible docs, Redis socket validation - #1017

Open
fclairamb wants to merge 21 commits into
mainfrom
feat/todos-2026-11-24-2
Open

fclairamb wants to merge 21 commits into
mainfrom
feat/todos-2026-11-24-2

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

What changed

Closes #999
Closes #1013
Closes #1014
Closes #1015

Decided by autopilot

  • Ansible spec, collection namespace: fclairamb.solidping.
  • Ansible spec, modules: hand-written, mirroring the Terraform provider.
  • Ansible spec, molecule driver: docker.
  • Ansible spec, where the collection lives: its own repo, only the docs page here. The collection itself (new repo, roles, modules, CI, Galaxy) needs a new repository, so it went to Ansible collection fclairamb.solidping (separate repo) #1018, assigned to you.
  • Event feed spec, scope: chosen per feed, default incident.* plus check.created|updated|deleted.
  • Event feed spec, retention: 100 entries or 30 days.
  • Event feed spec, secrets: several named feeds, capped at 10 per org.
  • Event feed spec, format: Atom only.

Notes for review

  • The 10-feed cap is a count before the insert, so two concurrent creates could reach 11.
  • When Server.BaseURL is unset, feed links use the request's Host header.
  • sp checks diff exits 1, not 2, on a connection error, against its documented contract. The docs work around it.

fclairamb and others added 4 commits November 24, 2026 10:13
…lidping-business#109)

Agents older than the rolling upgrade send no autoUpgrade field and ignore
the upgrade frame, yet the server asked them anyway (VersionPinned read an
absent field as "follow", protocol.go:217): each request burned an attempt,
held the region's slot for the 10 min timeout, and ended in a misleading
"giving up (check imagePullPolicy)" WARN. Such agents are now withdrawn from
the rollout like pinned ones (upgrade.go noteAgentVersion), logged once per
connection at INFO "agent predates auto-upgrade: upgrade it by hand".

The timeout WARN now says "asking it again" with the attempt when the agent
that timed out is the next candidate (single-agent region), carries the
slot's deadline (the expiry is only seen when an agent next contends), and
names next_agent when it really moves on.

Tests: upgrade_legacy_test.go (a claim without autoUpgrade never gets an
upgrade frame, and does not hold up its region) and
TestUpgradeTimeoutAsksTheOnlyAgentAgain; all fail before the fix.

Closes fclairamb/solidping-business#109

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

A run that spent its 30 s budget with no raw lag logged "Aggregation is
behind its raw retention" at INFO, every few minutes on a busy deployment,
although it was keeping up (logAggregationRun, job_aggregation.go:287 used
the message for budget_exhausted || lag > 1h). The "behind" message now
needs the lag past the threshold; a budget-only stop logs "Aggregation
stopped on its run budget" (INFO, same attributes).

Test: TestLogAggregationRun_BudgetWithoutLagIsNotBehind, fails before the fix.

Closes fclairamb/solidping-business#110

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cket field (#999)

A Valkey socket path typed into the redis check's host (/run/valkey/valkey.sock)
was saved, then dialed as "<path>:6379" and went down with no hint. Unix socket
targets now exist as the separate `socket` field (gated by checkers.unix_socket_paths);
RedisConfig.Validate (checkredis/config/config.go:211) now refuses a host with a
`/` or a leading `@` and names that field and setting. hostpath_test.go covers
the reporter's four inputs; it fails without the fix.

Closes #999

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fclairamb and others added 3 commits November 24, 2026 12:36
Closes #1013
Closes #1015

The collection itself lives in a separate repo (operator action).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb and others added 12 commits November 24, 2026 12:48
…failed

Option B gets a sp checks diff drift task; the page says option B needs an admin
token and that tokens start with pat_. Ran with ansible-core (uvx): the uri task,
the sp apply tasks and the diff task against a local SP_RUNMODE=test server,
and the EDA rulebook with ansible-rulebook 1.x + Java 21 and ansible.eda.
Fixes: login task needs check_mode false; diff exits 1 with an Error: line on
stdout when the server is unreachable, so failed_when checks for it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
#1014)

Migration 041_v0_55_0 adds org_event_feeds on both engines: named feeds,
SHA-256 of the URL secret, scope as a JSON array, soft revocation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GET /api/v1/org-feeds/:secret/feed.xml serves the newest 100 events of the
last 30 days in the feed's scope (incident.*, check.created|updated|deleted
by default; status_update.* and maintenance_window.* on request), from the
same query as the Events page. Unknown, malformed, rotated and revoked
secrets all answer 410 with one body. Rate limited per secret,
Cache-Control: private, max-age=60, X-Robots-Tag: noindex.

Org admins manage up to 10 named feeds per org through
/api/v1/orgs/:org/event-feeds (list, create, rotate, revoke). The spf_
secret is shown once; only its SHA-256 is stored. Each action is audited
as org.settings_updated with target_type event_feed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Create a named feed with its scope, copy its URL (shown once, kept out of
session replay), rotate it, revoke it, and see when each feed was last read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from feat/todos-2026-11-24 to main November 24, 2026 12:40
@fclairamb fclairamb changed the title feat: redis socket validation, Ansible support and private org event feed feat: private org event feed, Ansible docs, Redis socket validation Nov 24, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

1 participant