mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Please pass domains to startup_hook #379
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 @bzed on GitHub (Oct 2, 2018).
Hi,
it would be great if you could pass all domains to the startup hook like it is done for the other hooks, or add an extra "validate_domains" hook. We need to check if all (customer) configured domains are avtually lvalid before trying to get certificates for them - right now its a script wrapped around dehydrated, but I'd prefer to be able to do this in a hook.
Thanks,
Bernd
@lukas2511 commented on GitHub (Oct 20, 2018):
Sorry, but I think that you should really validate the customer domains before handing them over to dehydrated.
The way
startup_hookcurrently is implemented there is no way of adding the domains to it and your only move would be to cancel execution anyways, so it's not much better than a wrapper-script, actually even worse as with a wrapper you can use the--domainparameters and do your domain-list-parsing the way you need it.Also you could set the
KEEP_GOINGparameter and dehydrated would just continue with the next certificate if there is an issue with domain validation.