repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

AGENTS.md

Raw

Dotfiles

Dorkfiles 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:

$EDITOR .secrets
java bootstripper.java check
git check-attr -a -- path/to/secret

Required attrs:

filter: 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:

git cat-file -p :path/to/key | LC_ALL=C grep -q 'BEGIN .*PRIVATE KEY' && exit 1
Markdown source
File outline
# Dotfiles

Dorkfiles 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:

```text
filter: 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:

```sh
git cat-file -p :path/to/key | LC_ALL=C grep -q 'BEGIN .*PRIVATE KEY' && exit 1
```