8000 Add fail backoff after ACME errors by dominicletz · Pull Request #9 · dominicletz/certmagex · GitHub
[go: up one dir, main page]

Skip to content

Add fail backoff after ACME errors - #9

Merged
dominicletz merged 1 commit into
masterfrom
fix/acme-fail-backoff
Sep 30, 2026
Merged

dominicletz merged 1 commit into
masterfrom
fix/acme-fail-backoff

Conversation

@dominicletz
Copy link
Copy Markdown
Owner

Stores last_fail per domain on issuance failure. Honors retry-after when present, else 1h (5m for unknown errors). Stops per-handshake order storms after HTTP 429. Tests: worker_backoff_test.exs. Follows up with diode_node dep bump and as1-only deploy.

Made with Cursor

Store last_fail per domain on issuance failure. Honor retry-after
when present, else wait 1h (5m for unknown errors). This stops
per-handshake order storms after HTTP 429.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor cursor Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 17a684e. Configure here.

CertMagex.Storage.delete({:last_fail, @domain})

assert CertMagex.Storage.lookup({:last_fail, @domain}) == nil
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stub test never clears backoff

Low Severity

The successful issuance clears a prior fail backoff test inserts a last_fail value and immediately deletes it, then asserts the key is gone. It never runs issuance, so a regression in the success-path clear of last_fail would not be caught.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 17a684e. Configure here.

@dominicletz
dominicletz merged commit 7c9e6f4 into master Sep 30, 2026
3 checks passed
@dominicletz
dominicletz deleted the fix/acme-fail-backoff branch September 30, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0