Repository navigation
be: carry the validator's reason in a refused key's message, so a red key check says why - #88
Merged
Merged
Conversation
… reason and resolved's journal
… key check says why
Owner
Author
|
@claude review it |
|
Claude finished @landsman's task in 20s —— View job Review of #88
Verdict: looks good. I have no blocking issues. I only read the code. I did not run the build or the live tests, so the "all three fail without the reason" claim and the green run are as you reported them. What I checked
Nits and things to consider
I can't edit files under |
Owner
Author
|
Thanks. Point by point:
|
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #77. The key check went red on 2026-11-25 and printed only
which cannot tell a new bank key from a broken chain or a failing resolver. It no longer reproduces: seven runs on 2026-11-26 passed the check, three on a cold resolver cache and two on unmodified main. The runner's resolver (systemd-resolved forwarding to 168.63.129.16) hands the validator every signature it needs:
Every RRSIG on the three chains was valid on the 25th, and the red tests failed within half a second of each other, so the refusals were fast, not timeouts. What the resolver answered then was never logged, so the cause stays unknown, and this does not guess at it.
So the next failure says why. The lookup appends the validator's own reason (a TXT record of class 65280 it adds to the answer) to its refusal, and
checkKeysprints the full exception instead of only its class. The same message already reachesUnverifiedfor a caller ofwithDns(), as.docs/usage.mddescribes; no API changes.The refusal tests now pin how each zone is refused. A broken resolver fails every validation, so the two unsigned zones used to pass for the wrong reason; now they go red. Without the reason in the message all three fail, checked locally.
Green on the branch head: https://github.com/landsman/bank-java/actions/runs/45732483886. Diagnostic runs: https://github.com/landsman/bank-java/actions/runs/45731153988 and the cold-cache https://github.com/landsman/bank-java/actions/runs/45731553400 (red only from
resolvectl statisticsin a diagnostic step, the check passed). Unmodified main: https://github.com/landsman/bank-java/actions/runs/45731958946.