Repository navigation
feat!: run zrepl as the non-root tuxcrate user - #18
Merged
Merged
Conversation
Use UID/GID 1000:1000 and make the home and daemon runtime directory writable. Remove the root runtime-policy exception and exercise daemon startup with all capabilities dropped. BREAKING CHANGE: ZFS jobs now require host device access and dataset permissions delegated to the runtime UID. Existing root-dependent deployments must migrate or explicitly override the user.
Container preview:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main(5452568), with upstream and base-image pins unchanged.tuxcrate, UID/GID1000:1000, matching the other images./var/run/zrepl; remove the root runtime-policy exception.Test responsibilities
The shared pipeline validates platform coverage and runtime UID/GID/user/group names, applies hook timeouts and cleanup, checks artifact integrity, and validates release/OS metadata. The Containerfile asserts the exact installed Debian package version on every architecture. The smoke hook therefore does not repeat identity, package-version, or directory/configuration permission assertions; startup/control-socket access exercises the required runtime paths. It retains local cleanup and failure diagnostics for standalone use.
Validation
--pulland build-time smoke checks.Server test / migration
Please keep this PR open until server testing is complete. After CI publishes the preview, use
ghcr.io/tuxcrate/zrepl:pr-18-stableor the immutable commit-specific preview tag from the bot comment. No production aliases are changed by the PR.Expose
/dev/zfs, make configuration/secrets readable by UID 1000, and delegate the required dataset operations to the corresponding host UID usingzfs allow. Check user-namespace mappings if applicable. Restrict the test to a disposable dataset first. Receiving/mount-related operations may need additional privileges and configuration.The default-user change is breaking for existing root-dependent deployments.
--user 0:0is an explicit compatibility override; device access/capabilities must still be configured separately.Companion documentation: tuxcrate/docs#47 (draft until server testing and image publication are complete).