On this page

The installer changes files in $HOME that hold shell, SSH, and Git settings, so this page states what it verifies, what it trusts, and where credentials belong.

Trust boundaries

A full commit ID in DOTFILES_REF pins the repository content. Everything the installer fetches from that commit is verified by Git object IDs. Downloads from outside the commit rely on TLS alone.

ComponentFetched fromAuthenticated byCovered by a commit pin
Entrypoint, bootstrap.shraw.githubusercontent.comTLSOnly if you review it
Dotfiles and deploy scriptREPO_URLTLS or SSH, Git object IDsYes
Plugin submodulesGitHub and Codeberg over HTTPSTLS, Git object IDsYes, by gitlink
mise installerhttps://mise.runTLSNo
prek, run by the Git hooksRelease assets, through miseChecksums in mise.lockYes, the lock is tracked
Remote hook repositoriesGitHub, through prekTLS, Git object IDsYes, by rev commit hash
  • A gitlink records the exact commit of each submodule, so a pinned commit fixes every plugin version. The hosts must still serve those commits; a deleted repository breaks the install, not its integrity.
  • The entrypoint runs before any pin applies. Review the installer and pin a commit downloads it at the pinned commit so you read the same script that runs.
  • REPO_URL must use https://, ssh://, or a local path. The installer rejects http://, git://, and ftp://, which do not authenticate the server.

What a pin does not cover

  • The mise installer. https://mise.run is a trust-on-first-use download, outside commit verification. mise.lock records tool versions and checksums, not the version of mise itself, so the installer cannot pin mise from the lock. DOTFILES_SKIP_MISE_INSTALL=1 removes the download; install without mise for a Git-only install.
  • The machine toolchain. ~/.config/mise/mise.lock is ignored by the repository, so tools installed by mise bootstrap resolve per machine.
  • Who wrote a commit. A commit ID proves that content did not change after you reviewed it; it does not prove authorship. The repository does not sign its commits yet.

Secrets

The repository tracks configuration, never credentials.

KindWhere it lives
SSH private keys~/.ssh/, untracked; the repository tracks only SSH client configuration
Tokens and machine-specific variablesAn untracked module such as ~/.config/sh/sh.d/95_local.sh
Files the installer replaced~/.df-bak, mode 700, ignored by the repository
Tool state and shell historyUnder ~/.local/share and $XDG_STATE_HOME (~/.local/state by default), untracked
CachesUnder ~/.cache, untracked

Three controls keep credentials out of commits:

  • status.showUntrackedFiles=no hides untracked files, so you add files by name. dotfiles add -A defeats this control; see The bare repository.
  • The tracked ignore list, linked as info/exclude, excludes ~/.df-bak and the bare repository.
  • The detect-private-key hook blocks a commit that contains a private key header; see Hooks. It does not detect API tokens or passwords.

Decisions: ADR-0007.