don't try to get DKIM keys from pass; don't recreate DKIM keys if already existing

This commit is contained in:
missytake
2023-10-12 15:27:26 +02:00
parent 96ff282382
commit 0cad23885d
2 changed files with 4 additions and 25 deletions

View File

@@ -1,11 +1,6 @@
import subprocess
def get_pass(filename: str) -> str:
"""Get the data from the password manager."""
r = subprocess.run(["pass", "show", filename], capture_output=True, check=True)
return r.stdout.decode("utf-8")
chatmail = [
(
"c1.testrun.org",
@@ -13,8 +8,6 @@ chatmail = [
"ssh_user": "root",
"domain": "c1.testrun.org",
"dkim_selector": "2023",
"dkim_key": get_pass("delta/c1.testrun.org/dkim_key"),
"dkim_txt": get_pass("delta/c1.testrun.org/dkim_txt"),
},
),
]