Skip to content

Add selfhostit check, plus SBOM, Scorecard and disk encryption notes - #21

Merged
kalfasyan merged 1 commit into
mainfrom
claude/project-thread-rwc637
Nov 7, 2026
Merged

kalfasyan merged 1 commit into
mainfrom
claude/project-thread-rwc637

Conversation

@kalfasyan

Copy link
Copy Markdown
Contributor

Requested by Yannis · project thread

selfhostit check [app...] is a read-only security check of each installed app. For every running container it reports:

  • ports open beyond 127.0.0.1, and host networking (expected for Tailscale)
  • processes running as uid 0 (expected for Tailscale)
  • privileged mode, cap_drop: [ALL], no-new-privileges and read_only
  • the Docker socket, if it's mounted
  • whether it runs the newest image of its ghcr.io tag. It asks the registry for the tag's digest and pulls nothing.

For each app it also reports whether pb_data/backups has a backup from the last 2 days. Anything that needs a look is marked WARN, and then it exits 1.

I tested it against real containers using the Flowy and Splitwiz compose files: a hardened one, one published on 0.0.0.0 and running as root, and one with no backups. The registry digest matched docker buildx imagetools inspect. shellcheck is clean.

Docs:

  • security.md: SBOMs, Scorecard, Dependabot in every app, selfhostit check, and disk encryption advice (LUKS, Synology encrypted volume). Scorecard is removed from "Not done yet".
  • updates-and-backups.md: a section for the new command, and the disk encryption line.
  • A scorecard.yml workflow for this repo too.

After merge, publish an installer release so the new selfhostit command is downloadable: gh workflow run release.yml --repo selfhostit/docs.


Generated by Claude Code

… advice

selfhostit check reports, per app, ports open beyond this machine, root
processes, capabilities, no-new-privileges, read-only filesystems, the
Docker socket, out-of-date ghcr.io images and missing recent backups.
It changes nothing and exits 1 when something needs a look. Also adds
an OpenSSF Scorecard workflow.
@kalfasyan kalfasyan self-assigned this Nov 7, 2026
@kalfasyan
kalfasyan merged commit 855435f into main Nov 7, 2026
2 checks passed
@kalfasyan
kalfasyan deleted the claude/project-thread-rwc637 branch November 7, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants