Security
What the installer and updater verify, and where secrets live.
Security
- Releases are signed. CI signs each channel's
version-latest.propertiesandinstall.shwith an Ed25519 key. The public key is built into the program and into the published installer. The installer andbxrig updateverify the signature and the SHA-256 of every file they download; any mismatch stops before anything changes. - The first
curl | bashtrusts the script it downloads (TLS and the bucket). For a stricter first install, downloadinstall.shandinstall.sh.sigand check the signature yourself withkeys/release.pub. - A GitHub source is not a release.
install.sh --source github:OWNER/REPO@REF(for testing a branch) skips the signed release: there is no signature and no checksum from the BxRig downloads, so it warns and needs--yesor the typed wordunsigned. Use it only for sources you trust.GITHUB_TOKENorGH_TOKEN(private repositories) goes to GitHub as a header from a curl config on standard input, never on a command line, in the log or on screen. - MatchBox comes from mvm or from a branch you name. The stable and snapshot builds are downloaded by
mvm(an external installer script that the installer shows with its URL and SHA-256 before it runs).--matchbox-branch REFclones that branch of the repository you name and runscargo buildon it, which executes the repository's build scripts as your user: name only repositories you trust. The branch build is verified to run and recorded in~/.local/share/bxrig/matchbox/build.info(repo, branch, commit). - Nothing runs without a plan. Commands that change the system print a plan and need
--yes. - Your files are yours. BxRig keeps a config you changed and only rewrites files it wrote; every write is atomic, backed up and journaled.
- Secrets live in the desktop keyring (or a private file fallback), are typed hidden, and never appear in answers files, logs or shell history.
- Skills from the hub are audited; one that failed its audit is refused.
Fingerprint, security key, SSH and passwordless sudo
bxrig security can turn on a fingerprint or a security key for sudo, the SSH server and passwordless sudo. These touch PAM and sudoers, so they are guarded.
bxrig security status
bxrig security fingerprint on --dry-run # prints the exact PAM line first
bxrig security fingerprint on --yes
bxrig security fingerprint enroll --yes
bxrig security fido2 register --yes # touch the key; `fido2 on` refuses until one is registered
bxrig security fido2 on --yes
bxrig security ssh-server on --yes
bxrig security passwordless-sudo on --yes
- Only
/etc/pam.d/sudois changed, never the login, the login screen or the lock screen. The line isauth sufficient, so your password still works when the reader or key is missing. The first time, the original is kept as/etc/pam.d/sudo.bxrig-backup;offremoves exactly the line BxRig added. - sudoers is checked with
visudo -cfbefore the file is installed, so a mistake cannot lock sudo out. - Passwordless sudo means any program running as you gets root without a password. Use it only on a machine where you accept that.
- Keep a root terminal open the first time you try PAM changes. They have not been tried on a real reader or key yet.