Skip to content

feat!: validate runtime users for every container platform - #33

Merged
Skaronator merged 4 commits into
mainfrom
feat/shared-runtime-user-check
Nov 1, 2026
Merged

Skaronator merged 4 commits into
mainfrom
feat/shared-runtime-user-check

Conversation

@Skaronator

@Skaronator Skaronator commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Check the actual default UID, GID, username, and group of every platform image before its application smoke hook, including images without a hook.
  • Require 1000:1000:tuxcrate:tuxcrate by default.
  • Support explicit LABEL com.tuxcrate.runtime-user="root", enforcing 0:0:root:root rather than skipping validation. Other policy values fail.
  • Run with no network and no user override; override only the entrypoint to /bin/sh. Bound execution time and reuse existing labelled-container cleanup.
  • Document the policy and add regression tests for identity fields, declared/undeclared root, invalid labels, per-platform hook ordering, missing hooks, and publication-receipt invalidation.

Validation

  • go test -race ./..., go vet ./..., actionlint, and git diff --check passed.
  • Real AMD64 Docker integration passed for Lidarr/Sonarr stable and prerelease, gallery-dl, Radarr stable and prerelease, Prowlarr stable, and a labelled root fixture.
  • Radarr stable/prerelease and Prowlarr stable uncached builds and application hooks passed.

Rollout / breaking change

Images with undeclared root or other account names now fail validation. /bin/sh and id are required.

  1. Land prerequisites: zrepl root declaration, Sonarr username fix, gallery-dl username/home fix, Radarr username fix, and Prowlarr username fix. Lidarr already uses tuxcrate.
  2. Merge/deploy this shared validator. Caller workflow/tooling refs remain coordinated at main.
  3. Land identity-check cleanup drafts: Lidarr, Sonarr, and gallery-dl. Sonarr/gallery-dl cleanup PRs are stacked so their existing username-fix PRs retain tests until shared validation is live.

No caller is pinned to unpublished shared tooling.

Smoke-test labels

Use only com.tuxcrate.smoke-test for test containers and shared cleanup. There is no legacy-label fallback. Coordinate the caller label updates with the shared validator rollout.

Documentation

Runtime-user policy documentation and the new repository contribution guide live in tuxcrate/docs#45. The github-actions README remains a short description with a documentation link; no guide content is added to it. Deploy the docs after this validator is available.

@Skaronator
Skaronator merged commit dedf9dd into main Nov 1, 2026
1 check passed
@Skaronator
Skaronator deleted the feat/shared-runtime-user-check branch November 1, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant