mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 07:10:34 +01:00
Add hook callback before privkey loading, e.g. "preload_cert" #358
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nyurik on GitHub (Jun 27, 2018).
In some cases, an external storage is used to keep the keys between runs, e.g. a HashiCrop's Vault. In order to use it, the
certs/dir needs to be restored for the specific domains that are being validated. Please add a new hook, e.g. this code, to allow for this to happen. I am not a bash expert, so there might be a need of some wrapper code to prevent older hooks from failing. Thx!This code should be placed after certs dir is created, but before it loads any data from it:
10d4b98e7f/dehydrated (L1195)@lukas2511 commented on GitHub (Dec 11, 2020):
This seems like a very niche use case to me and I'm guessing that this behavior could simply be implemented using a wrapper script or during the startup hook, especially since dehydrated would call it for every single certificate anyways, might as well do it in batch.