Back to Chezmoi

Custom

assets/chezmoi.io/docs/user-guide/password-managers/custom.md

2.70.21.6 KB
Original Source

Custom

You can use any command line tool that outputs secrets either as a string or in JSON format. Choose the binary by setting secret.command in your configuration file. You can then invoke this command with the secret and secretJSON template functions which return the raw output and JSON-decoded output respectively. All of the above secret managers can be supported in this way:

Secret Managersecret.commandTemplate skeleton
1Passwordop{{ secretJSON "get" "item" "$ID" }}
Bitwardenbw{{ secretJSON "get" "$ID" }}
Dopplerdoppler{{ secretJSON "secrets" "download" "--json" "--no-file" }}
HashiCorp Vaultvault{{ secretJSON "kv" "get" "-format=json" "$ID" }}
LastPasslpass{{ secretJSON "show" "--json" "$ID" }}
KeePassXCkeepassxc-cliNot possible (interactive command only)
Keeperkeeper{{ secretJSON "get" "--format=json" "$ID" }}
passpass{{ secret "show" "$ID" }}
passholeph{{ secret "$ID" "password" }}
Proton Passpass-cli{{ secretJSON "item" "view" "$ID" "--output=json" }}