# DotfilesDorkfiles repo.
Preserve unrelated dirty work.
Never print decrypted secrets.
## Secrets`.secrets` is plaintext.
It lists repo-relative paths to encrypt.
Encryption comes from local Git filter `dotfiles-aes` via `.git/info/attributes`.
`bootstripper` generates that file from `.secrets`.
For a new secret:
```sh$EDITOR .secrets
java bootstripper.java check
git check-attr -a -- path/to/secret
```
Required attrs:
```textfilter: dotfiles-aes
text: unset
diff: unset
```
Do not `git add -A` new secret-looking files before this.
For private keys, verify staged content is not plaintext:
```shgit cat-file -p :path/to/key | LC_ALL=C grep -q 'BEGIN .*PRIVATE KEY'&&exit 1
```