-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* When MDMessageCmd for a 'challenge-setup:<type>:<dnsname>' fails (…
…!= 0 exit), the renewal process is aborted and an error is reported for the MDomain. As discussed in #237, this provides scripts that distribute information in a cluster to abort early with bothering an ACME server to validate a dns name that will not work. The common retry logic will make another attempt in the future, as with other failures.
- Loading branch information
Stefan Eissing
committed
Sep 17, 2021
1 parent
eb7caff
commit 5f6aa7f
Showing
9 changed files
with
125 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def main(argv): | ||
if len(argv) > 3: | ||
log = argv[1] | ||
fail_on = argv[2] | ||
cmd = argv[3] | ||
domain = argv[4] | ||
if 'renewing' != cmd: | ||
f1 = open(log, 'a+') | ||
f1.write(f"{[argv[0], log, cmd, domain]}\n") | ||
f1.close() | ||
if cmd.startswith(fail_on): | ||
sys.stderr.write(f"failing on: {cmd}\n") | ||
sys.exit(1) | ||
sys.stderr.write("done, all fine.\n") | ||
sys.exit(0) | ||
else: | ||
sys.stderr.write("%s without arguments" % (argv[0])) | ||
sys.exit(7) | ||
|
||
|
||
if __name__ == "__main__": | ||
main(sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters