Upgrade to iroh 1.2 and report relay auth denials - #9
Open
andrewchen5678 wants to merge 1 commit into
Open
Conversation
Require iroh >=1.2.0, <1.3.0 (iroh-relay 1.2.0 in the e2e CI job) and use the new RelayStatus::auth_denied_reason: a relay probe that times out now reports the relay's actual failure (authentication denied, or the last connection error) instead of a guess, and the failover outage report uses the same description. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C44v6KPU4Jc5arm6ML48Go
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.
Summary
iroh >=1.2.0, <1.3.0. Lockfile: iroh / iroh-base / iroh-relay 1.2.0, iroh-dns 1.3.0, noq 1.3.0. No API breaks. The e2e CI job now installs iroh-relay 1.2.0.RelayStatus::auth_denied_reason(feat(iroh): addRelayStatus::auth_denied_reasonand example n0-computer/iroh#4501):authentication denied by the relay (<reason>); check the relay auth tokenordisconnected (<error>), instead of "unreachable or rejected the auth token".relay_failure()helper. Failover behaviour is unchanged.Cargo.toml,README.md,src/lib.rs.Relay failover in iroh 1.2.0
net_report(home-relay selection) did not change between 1.1.0 and 1.2.0, so a home relay that answers probes but refuses connections still wedges the endpoint;relay_failoveris still needed. Upstream work to watch:Test plan
cargo clippy --all-targets --all-features: cleancargo test --all-features: 26 passede2e/run_e2e.sh --local-relaysand--local-relays --relay-onlyagainst iroh-relay 1.2.0: all passe2e/run_relay_failover.shagainst iroh-relay 1.2.0: phases A–D all pass🤖 Generated with Claude Code
https://claude.ai/code/session_01C44v6KPU4Jc5arm6ML48Go