1
0
Fork 0
gnu-plus-dotfiles/dot_omp/agent
rain d61ffacc22 omp secrets: use encrypted_private_ prefix (decrypts + 0600)
chezmoi parses attribute prefixes left-to-right and 'encrypted_' must
precede 'private_'. The 'private_encrypted_' order silently breaks
decryption: chezmoi consumes 'private_', then treats 'encrypted_foo.age'
as a literal filename and copies the ciphertext verbatim instead of
decrypting it.

models.yml was named 'private_encrypted_models.yml.age' since commit
3c3fab7 and was never decrypting — a stale 'encrypted_models.yml.age'
blob was sitting in ~/.omp/agent/ and the plaintext models.yml was an
unmanaged leftover. .env and zai.key used the plain 'encrypted_'
prefix and were decrypting at umask 0644 (world-readable in isolation;
the 700 ~/.omp/agent/ dir was the only thing shielding them).

This commit:

  * renames all three to encrypted_private_{zai.key,.env,models.yml}.age
    so chezmoi decrypts AND lands them at 0600 natively
  * rewrites run_onchange_35 as 'ensure-omp-secret-perms.sh' covering
    all three, as belt-and-suspenders for any box where a secret still
    sits at 0644 from a prior apply
  * removes the stale encrypted_models.yml.age verbatim blob and its
    orphan state entry
  * corrects the README perms section to document the prefix-order
    gotcha (was misleadingly claiming 'private_' alone gave 0600)

Verified end-to-end on this box: chezmoi managed lists all three as
decrypted targets, scoped apply writes them at 600, chmod script is
idempotent. Other boxes need a 'chezmoi apply' to pick up the rename
and the onchange chmod.
2026-06-25 18:33:58 -04:00
..
config.yml Fix omp zai.key encryption: use proper chezmoi 'encrypted_' attribute 2026-06-22 00:44:51 -04:00
encrypted_private_.env.age omp secrets: use encrypted_private_ prefix (decrypts + 0600) 2026-06-25 18:33:58 -04:00
encrypted_private_models.yml.age omp secrets: use encrypted_private_ prefix (decrypts + 0600) 2026-06-25 18:33:58 -04:00
encrypted_private_zai.key.age omp secrets: use encrypted_private_ prefix (decrypts + 0600) 2026-06-25 18:33:58 -04:00
mcp.json Fix omp zai.key encryption: use proper chezmoi 'encrypted_' attribute 2026-06-22 00:44:51 -04:00