Repository navigation
Conversation
Adds `mairu harden` (install, --from with sigstore attestation verification, --uninstall/--purge, harden home), re-exec of the hardened copy from unhardened installations with a version-skew warning, a periodic harden suggestion, hardened copies and root-reachability warnings in doctor, the Debian postinst and sysusers/tmpfiles snippets, and a linux-hardened CI job. Attestations are verified with sigstore-verify/sigstore-trust-root, which verify bundles only and fetch the trust root through TUF from an embedded root, with system TLS roots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM
This branch has not been deployed
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.
Implements docs/specs/005-install.md.
sudo mairu harden: creates themairugroup (refusing members, primary-group users, group passwords), copies the binary asroot:mairu 2755into<harden_home>/libexec/mairu/withcap_ipc_lock, copies shipped helpers, creates/var/lib/mairu{,/users}, and records a root-owned manifest and the/var/lib/mairu/installsinventory.--uninstall [--purge]trusts only that manifest--home,MAIRU_HARDEN_HOME,harden_homein config.json; defaults to/usr/local(Linux)sudo <hardened copy> harden --from FILEverifies the sigstore attestation (signersorah/mairurelease.ymlat av*tag), refuses downgrades;--unattested,--allow-downgradedoctorlists hardened copies and warns about root-reachable users (passwordless sudo, docker/lxd/incus-admin/disk)pkg/sysusers.dandpkg/tmpfiles.dsnippets; alinux-hardenedCI jobAttestation uses
sigstore-verify/sigstore-trust-root(sigstore-rust) rather than thesigstorecrate; they pull reqwest 0.13 with platform-verifier roots on Linux only, growing the release binary by about 2.7 MB. Other deviations are recorded in the spec's Current Status.Note: a binary with
cap_ipc_lock=+epfails to exec whereCAP_IPC_LOCKis outside the bounding set (e.g. default Docker). That already applied to the deb; re-exec warns and continues unhardened there.Verified in Docker (120 checks), including a real
.debinstalled withdpkg -i.🤖 Generated with Claude Code
https://claude.ai/code/session_01Dg17LE9aWqsb1VBUCVcKLM