fix: decrypt SOPS .env keys written with export or spaces #78

Merged
keb merged 1 commits from fix/sops-dotenv-export into main 2026-10-15 12:18:09 +02:00
1 Commits
Author SHA1 Message Date
keb ee688c6c9b fix: decrypt SOPS .env keys written with export or spaces
CI / Checks (pull_request) Successful in 37s
PR title / Conventional title (pull_request) Successful in 1s
sops keeps everything before the = in a dotenv key, so `export TOKEN=…`
is the key `export TOKEN`. lazysecrets asked sops for `TOKEN` and the
value couldn't be decrypted, from the list or a link.

- The sops path is the key as written; names and links are unchanged.
- A link finds its key's path in the file, as the list does, instead of
  rebuilding it from the name.
2026-10-15 12:16:47 +02:00