mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Way to accomodate multiple CAs #494
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 @darix on GitHub (Sep 14, 2020).
I have one machine which uses LE for external certs and step CA for internal certificates.
Having an instantiated service in systemd makes this relatively simple to start dehydrated
with a different config file. But before we implement it I was wondering how we want to go about it
e.g. the unit file has
The first part is easy:
Should the instantiated service then keep using the shared postrun-hooks.d? or something like
do we want to have completely different config directories and just do:
This would also avoid potential conflicts when both configs/domain.txt specify the same output filename.
@lukas2511 commented on GitHub (Nov 14, 2020):
Tbh I think this is something you have to decide for yourself. I have no insight in your particular setup and in some cases it might make sense to reuse hooks, in others it might completely differ.
@darix commented on GitHub (Nov 14, 2020):
Well some of the problems could be made a lot easier if the code is already written with the multi CA handling in mind. And if this would be an upstream feature then all distros would use the same code for this and not everyone inventing their own.
@lukas2511 commented on GitHub (Nov 14, 2020):
That would require really big changes in dehydrated, rewriting a lot of the loop logic.
Since I don't see much use of this feature for most users I think it'd easier if the very few people who need it just use a wrapper like you are seemingly trying to do.
@darix commented on GitHub (Nov 14, 2020):
well other option would be to have e.g. --config-dir option ... then we wouldnt need (cmdline) options for each and every file. that would make the whole process a lot easier already. I dont expect the whole multi CA thing implemented within dehydrated. but making the cmdline interface easier to launch it multiple times
@jobe1986 commented on GitHub (Nov 14, 2020):
There is a "--config" (-f) option for specifying the path to a specific config file, in which you can configure various directories, including BASEDIR which would allow you to achieve the same goal.
Sure it would mean running dehydrated once for each config file, but it would allow you to use multiple CA's and keep their directories seperated.