summaryrefslogtreecommitdiff
path: root/renew-all
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-12-28 18:34:03 +0000
committerMatthew Fennell <matthew@fennell.dev>2025-12-29 01:46:12 +0000
commit9170e9823d29f9488ee3a6dd796ca8a66f25edf8 (patch)
treece8521669555c09689f1fcb0d6d7c64e1fb46be4 /renew-all
parentb8a63413acd298970451df55e485b3de0338c1c5 (diff)
Make mythic beasts secrets available to lego
mercuric.uk is now using Mythic Beasts instead of deSEC for DNS, and I'll be moving the other domains shortly. As a result, I would like to be able to select between providers them in the config file. As a first step towards supporting Mythic Beasts, pass the API key ID and secret to lego. We can do this in all circumstances: it will be unused if we don't specify mythicbeasts when the command is invoked.
Diffstat (limited to 'renew-all')
-rwxr-xr-xrenew-all3
1 files changed, 3 insertions, 0 deletions
diff --git a/renew-all b/renew-all
index 04e9314..89fb4bc 100755
--- a/renew-all
+++ b/renew-all
@@ -40,6 +40,9 @@ def main() -> None:
environment = {
"DESEC_POLLING_INTERVAL": str(config["timeout_seconds"]),
"DESEC_TOKEN": config["desec_token"],
+ "MYTHICBEASTS_PASSWORD": config["mythic_beasts_secret"],
+ "MYTHICBEASTS_POLLING_INTERVAL": str(config["timeout_seconds"]),
+ "MYTHICBEASTS_USERNAME": config["mythic_beasts_key_id"],
}
logging.info(f"Running command {command}")
subprocess.run(command, env=environment)