Skip to content

fix(security): trusted service binary and data folder paths, skip deleted orgs' SLO burn policies - #833

Merged
fclairamb merged 13 commits into
mainfrom
security/scan-specs-2026-11-10
Nov 10, 2026
Merged

fclairamb merged 13 commits into
mainfrom
security/scan-specs-2026-11-10

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Specs from the daily security scan, now implemented on this branch.

What changed

  • AI1/AI2/AI3, service install (specs/done/2026/11/2026-11-10-01-…): service install and service run refuse a service binary, data folder or parent that a non-admin can write or own (Linux, macOS, Windows). The resolved binary path is registered. Docs and CI service jobs updated.
  • AI4, SLO burn policies (specs/done/2026/11/2026-11-10-02-…): deleting an org disables its SLO alert policies, and the evaluation queue and the snooze-wake sweep skip deleted orgs.

Breaking / operator actions

  • Binaries owned by a non-root user, Homebrew binaries for a macOS daemon, Windows binaries directly under C:\, and group/world-writable existing data folders are now refused.
  • Already-installed services can stop at next start if their paths fail the run check (journal, logs/launchd.log, Windows Application event log).
  • Windows services get a hidden service run --installer-sid argument; older registrations trust only SYSTEM/Administrators/TrustedInstaller.
  • Windows parents tolerate add-only rights (default ACLs of C:\ grant them); Windows tests and CI jobs have not run yet.

Decided by autopilot

  • No open questions in either spec; nothing adopted.

🤖 Generated with Claude Code

@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch labels Nov 10, 2026
service install now checks the solidping binary (after resolving links)
and every folder above it, plus the parents of the data folder: each
part must be owned by root (Linux, macOS) or SYSTEM, Administrators,
TrustedInstaller or the installer (Windows), and nobody else may write
it. An existing data folder on Linux and macOS must be a real folder
owned by the service account, not group- or world-writable, with no
link or foreign file inside, as on Windows. service run checks the
binary, the data folder and its parents again before entering it.

Windows services now get a hidden --installer-sid run argument so the
run check trusts the same installer; services installed before keep
working when their files are owned by SYSTEM or Administrators.

Security scan 2026-11-10, findings AI1, AI2, AI3.

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

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.17040% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.27%. Comparing base (44d7a47) to head (9134473).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
server/cmd_service_trust_unix.go 87.69% 8 Missing ⚠️
server/cmd_service_trust.go 92.30% 2 Missing ⚠️
server/cmd_service.go 0.00% 1 Missing ⚠️
server/internal/db/postgres/postgres.go 94.44% 1 Missing ⚠️
server/internal/db/sqlite/sqlite.go 94.44% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main     #833    +/-   ##
========================================
  Coverage   89.27%   89.27%            
========================================
  Files        1335     1337     +2     
  Lines      136568   136774   +206     
========================================
+ Hits       121917   122109   +192     
- Misses      14642    14656    +14     
  Partials        9        9            
Files with missing lines Coverage Δ
server/cmd_service_linux.go 94.90% <100.00%> (-1.07%) ⬇️
server/internal/db/dbcontract/incidents.go 100.00% <100.00%> (ø)
server/internal/db/dbcontract/slos.go 100.00% <100.00%> (ø)
server/cmd_service.go 82.60% <0.00%> (ø)
server/internal/db/postgres/postgres.go 95.00% <94.44%> (-0.01%) ⬇️
server/internal/db/sqlite/sqlite.go 96.74% <94.44%> (-0.02%) ⬇️
server/cmd_service_trust.go 92.30% <92.30%> (ø)
server/cmd_service_trust_unix.go 87.69% <87.69%> (ø)

... 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 and others added 11 commits November 10, 2026 07:50
Windows: extract into C:\Program Files\SolidPing in the install steps too.
Linux and macOS: install the binary root-owned with sudo install, and
explain that a Homebrew binary cannot back a root daemon. Describe the
binary, data folder and parent checks of service install and run.

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

The service jobs now install solidping where install accepts it
(C:\Program Files\SolidPing, /Library/SolidPingCI, /usr/local/bin owned
by root) and check that a binary or data folder parent the runner user
owns is refused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…a folder path that a non-admin can change

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

DeleteOrganization now disables the org's SLO alert policies, and
ListEnabledSLOAlertPolicies joins organizations to skip deleted orgs (also
covering orgs deleted before this change). Orphan policies no longer take
slots in the instance-wide 500-policy batch and delay live orgs' alerts.

Same class in the other instance-wide sweeps: ListExpiredSnoozedIncidents
now skips deleted orgs, since unsnoozing schedules a reminder that notifies.

Left as is:
- check-based sweeps (degraded eval, freshness, stale placements, stale job
  periods/regions): org deletion soft-deletes every check, and they filter
  checks.deleted_at.
- ListStatusPagesWithCustomDomain (custom-domain re-verify): the re-verify
  demotes dangling CNAMEs, a takeover guard; skipping deleted orgs' pages
  would keep their domains verified forever.
- ListStaleSystemAgents: system agents belong to no org.
- ListEnabledReportSchedules: already fixed in #824.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb merged commit 5315038 into main Nov 10, 2026
37 checks passed
@fclairamb
fclairamb deleted the security/scan-specs-2026-11-10 branch November 10, 2026 12:20
fclairamb added a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.47.0](v0.46.0...v0.47.0)
(2026-11-10)


### Features

* **sealing:** browser-sealed check secrets for private agents
([#834](#834))
([00c376c](00c376c))
* **sealing:** peer re-wrap, solidping seal and sealed config-as-code
([#835](#835))
([91c656a](91c656a))


### Bug Fixes

* **ci:** leave the tag on HEAD out of the upgrade matrix
([#830](#830))
([d333957](d333957))
* **deps:** update github.com/dop251/goja digest to a443384
([#836](#836))
([bbfb783](bbfb783))
* **deps:** update module github.com/posthog/posthog-go to v1.42.2
([#837](#837))
([cf8fffc](cf8fffc))
* **security:** trusted service binary and data folder paths, skip
deleted orgs' SLO burn policies
([#833](#833))
([5315038](5315038))
* **status:** mobile header truncation and dotted response-time chart
([#831](#831))
([0c974de](0c974de))

---
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 Sonnet 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant