Add credential loading from file, KeePassXC, and Docker/Podman secrets. #994

Merged
witten merged 9 commits from keepassxc-docker-podman-file-credentials into main 2025-02-15 04:20:12 +00:00
Owner

This PR adds several more credential hooks. Example usage...

Docker/Podman secrets from inside a container

encryption_passphrase: "{credential container borgmatic_passphrase}"

(This reads from /run/secrets/borgmatic_passphrase.)

KeePassXC

encryption_passphrase: "{credential keepassxc /home/user/keys.kdbx 'borgmatic passphrase'}"

Plain ol' file

encryption_passphrase: "{credential file /home/user/mycredential.txt}"

Still to do

  • unit tests
  • end-to-end tests
  • documenation
  • manual testing
This PR adds several more credential hooks. Example usage... #### Docker/Podman secrets from inside a container ```yaml encryption_passphrase: "{credential container borgmatic_passphrase}" ``` (This reads from `/run/secrets/borgmatic_passphrase`.) #### KeePassXC ```yaml encryption_passphrase: "{credential keepassxc /home/user/keys.kdbx 'borgmatic passphrase'}" ``` #### Plain ol' file ```yaml encryption_passphrase: "{credential file /home/user/mycredential.txt}" ``` ### Still to do * [x] unit tests * [x] end-to-end tests * [x] documenation * [x] manual testing
witten added 1 commit 2025-02-12 06:59:05 +00:00
witten added 1 commit 2025-02-12 07:00:46 +00:00
witten added 1 commit 2025-02-12 17:14:59 +00:00
witten added 1 commit 2025-02-13 05:44:43 +00:00
witten added 1 commit 2025-02-13 06:49:33 +00:00
witten added 1 commit 2025-02-14 00:39:14 +00:00
witten added 1 commit 2025-02-14 18:16:35 +00:00
witten added 1 commit 2025-02-14 23:34:12 +00:00
witten added 1 commit 2025-02-15 03:36:18 +00:00
witten changed title from WIP: Add credential loading from file, KeePassXC, and Docker/Podman secrets. to Add credential loading from file, KeePassXC, and Docker/Podman secrets. 2025-02-15 04:05:45 +00:00
witten merged commit 7f22612bf1 into main 2025-02-15 04:20:12 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#994
No description provided.