2696 Commits
Author SHA1 Message Date
Floris Bruynooghe eaf3181a9b docs: Start documenting security-relevant behaviour (#4713)
## Description

This is an attempt at starting to document some security relevant
behaviour which is intentional. The aim is not right now to create a
comprehensive thread model, but rather to collect some known design
tradeoffs and their implications.

## API Changes

n/a

## Notes & open questions

n/a

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-27 10:19:06 +00:00
Floris Bruynooghe 237dced6fb chore: Run zizmor, pinact and check-for-cc in merge queue (#4726)
## Description

We need this to be able to make those jobs required. We do this in noq
also.

This removes the file filter for when the zizmor and pinact checks are
triggered. They were wrong anyway and already didn't trigger when they
needed to because the files had moved.

## API Changes

n/a

## Notes & open questions

n/a

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-27 10:02:52 +00:00
3955bf6ea9 fix(iroh-relay): back off when accepting connections fails (#4719)
<!-- Attention agents and contributors using AI, please see our AI
policy before opening a PR:
https://github.com/n0-computer/iroh/blob/main/AI_POLICY.md -->
<!-- Any PRs violating this policy will be closed. -->
<!-- As per our contributor guidelines, all PRs that do not link to an
issue with the label `ready-for-pr` will be closed:
https://github.com/n0-computer/iroh/blob/main/CONTRIBUTING.md -->

## Description

Fixes #4636

When accept() fails, the relay and captive portal listeners logged the
error and retried immediately. If the error persists, like EMFILE at the
open-file limit, this spun the CPU and flooded the log.

Retry immediately only on per-connection errors. For anything else, log
and sleep for one second. Both listeners share this in
`handle_accept_error`. In the relay listener the sleep is cancellable,
so
shutdown stays immediate.

Adds a regression test that runs the relay with a low file descriptor
limit. It goes through the relay listener only. The captive portal
listener only starts with TLS, so the test doesn't exercise its call to
`handle_accept_error`.

## API Changes

None.

## Change checklist

- [x] Self-review.
- [n/a] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

Co-authored-by: ramfox <kasey@n0.computer>
Co-authored-by: Philipp Pohl-Krüger <philipp.krueger1@gmail.com>
2026-11-27 09:59:14 +00:00
Asmir Avdicevic 5544ddbeaa feat(iroh-relay): increase listen backlog of the relay listener (#4699)
<!-- Attention agents and contributors using AI, please see our AI
policy before opening a PR:
https://github.com/n0-computer/iroh/blob/main/AI_POLICY.md -->
<!-- Any PRs violating this policy will be closed. -->

<!-- As per our contributor guidelines, all PRs that do not link to an
issue with the label `ready-for-pr` will be closed:
https://github.com/n0-computer/iroh/blob/main/CONTRIBUTING.md -->

## Description

Same situation as in https://github.com/n0-computer/iroh/pull/4619. Our
TCP listen backlog was limited to 128 so handling bursts meant we drop
many requests and they get retried over time.

## API Changes

The config for `iroh-relay` is extended but is non breaking otherwise.

We introduce a `listen_backlog` field which controls the depth of the
TCP backlog allowed so it can be tuned.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-26 17:04:15 +00:00
dependabot[bot] c4cb5141fd chore(deps): bump the github-actions group across 1 directory with 3 updates (#4725)
Bumps the github-actions group with 3 updates in the / directory:
[taiki-e/install-action](https://github.com/taiki-e/install-action),
[actions/setup-java](https://github.com/actions/setup-java) and
[actions/create-github-app-token](https://github.com/actions/create-github-app-token).

Updates `taiki-e/install-action` from 2.90.3 to 2.90.6
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/releases">taiki-e/install-action's
releases</a>.</em></p>
<blockquote>
<h2>2.90.6</h2>
<ul>
<li>
<p>Update <code>wasmtime@latest</code> to 50.0.2.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.41.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.9.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.11.3.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.57.2.</p>
</li>
<li>
<p>Update <code>prek@latest</code> to 0.5.11.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.9.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.19.1.</p>
</li>
<li>
<p>Update <code>dprint@latest</code> to 0.65.0.</p>
</li>
<li>
<p>Update <code>cargo-machete@latest</code> to 0.10.1.</p>
</li>
<li>
<p>Update <code>cargo-deny@latest</code> to 0.21.0.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.8.</p>
</li>
</ul>
<h2>2.90.5</h2>
<ul>
<li>
<p>Update <code>mise@latest</code> to 2026.11.8.</p>
</li>
<li>
<p>Update <code>cargo-nextest@latest</code> to 0.9.152.</p>
</li>
</ul>
<h2>2.90.4</h2>
<ul>
<li>
<p>Update <code>yq@latest</code> to 4.54.3.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.40.1.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.8.</p>
</li>
<li>
<p>Update <code>typos@latest</code> to 1.52.2.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.11.2.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.57.1.</p>
</li>
<li>
<p>Update <code>rafn@latest</code> to 0.1.7.</p>
</li>
<li>
<p>Update <code>osv-scanner@latest</code> to 2.7.1.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.7.</p>
</li>
<li>
<p>Update <code>knope@latest</code> to 0.24.0.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md">taiki-e/install-action's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this
file.</p>
<p>This project adheres to <a href="https://semver.org">Semantic
Versioning</a>.</p>
<!-- raw HTML omitted -->
<h2>[Unreleased]</h2>
<h2>[2.90.10] - 2026-11-25</h2>
<ul>
<li>Update <code>sccache@latest</code> to 0.20.1.</li>
</ul>
<h2>[2.90.9] - 2026-11-25</h2>
<ul>
<li>
<p>Update <code>zizmor@latest</code> to 1.33.1.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.42.3.</p>
</li>
<li>
<p>Update <code>sccache@latest</code> to 0.20.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.14.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.20.0.</p>
</li>
<li>
<p>Update <code>kache@latest</code> to 2.3.0.</p>
</li>
<li>
<p>Update <code>grcov@latest</code> to 0.10.9.</p>
</li>
<li>
<p>Update <code>cosign@latest</code> to 3.1.5.</p>
</li>
<li>
<p>Update <code>cargo-xwin@latest</code> to 0.24.1.</p>
</li>
<li>
<p>Update <code>cargo-minimal-versions@latest</code> to 0.1.39.</p>
</li>
<li>
<p>Update <code>cargo-deny@latest</code> to 0.22.1.</p>
</li>
<li>
<p>Update <code>cargo-binstall@latest</code> to 1.28.0.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.9.</p>
</li>
</ul>
<h2>[2.90.8] - 2026-11-21</h2>
<ul>
<li>
<p>Update <code>wasmtime@latest</code> to 51.0.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.11.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/taiki-e/install-action/commit/75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f"><code>75a7c0f</code></a>
Release 2.90.6</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/d04c1db9f0036db5ae78ba77fd50a545815d9c93"><code>d04c1db</code></a>
Update wasmtime manifest</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/94c5e7660ec7b649e9382a62ea835bb188f1aaec"><code>94c5e76</code></a>
Update <code>wasmtime@latest</code> to 50.0.2</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/4d35baa8f44b392095ac00a8bf58e29eae6a6724"><code>4d35baa</code></a>
Update <code>vacuum@latest</code> to 0.41.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/6ce999b39840502b341ee06d43927d9de65a6963"><code>6ce999b</code></a>
Update <code>uv@latest</code> to 0.13.9</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/e413e8e561a2388e37e3a0f27e54a957865ee075"><code>e413e8e</code></a>
Update trunk manifest</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/75d77757ea2cac3a47980f1c18fe19e071567c17"><code>75d7775</code></a>
Update <code>tombi@latest</code> to 1.11.3</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/e201dcce9fde4a2c8cfd773a63b9a2a349b36f2f"><code>e201dcc</code></a>
Update <code>syft@latest</code> to 1.57.2</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/f7b1c482ff6790c7f345006f8dd2de83bf214ddd"><code>f7b1c48</code></a>
Update <code>prek@latest</code> to 0.5.11</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/384d202751979e5b06f32ac3172bbddfe2d08699"><code>384d202</code></a>
Update <code>mise@latest</code> to 2026.11.9</li>
<li>Additional commits viewable in <a
href="https://github.com/taiki-e/install-action/compare/cfdb7ed4ccc7c7dce37759eae89dc5674b469b39...75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 6.2.0 to 6.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v6.3.0</h2>
<h2>Behavior change: Java problem matcher is now opt-in</h2>
<p>Starting with v6.3.0, <code>setup-java</code> no longer registers the
Java problem matcher by default (<a
href="https://redirect.github.com/actions/setup-java/issues/1326">#1326</a>,
fixes <a
href="https://redirect.github.com/actions/setup-java/issues/1322">#1322</a>).
Java compiler warnings, compiler errors, and uncaught exceptions are no
longer turned into annotations on pull request diffs unless you opt
in.</p>
<p>To keep annotations, set <code>problem-matcher: true</code>:</p>
<pre lang="yaml"><code>- uses: actions/setup-java@v6
  with:
    distribution: temurin
    java-version: '25'
    problem-matcher: true
</code></pre>
<p>Compiler output still appears in the build logs, and compilation
errors still fail the build. Only annotations are affected.</p>
<p><strong>Why:</strong> inline annotations cluttered pull request
reviews, and GitHub Actions caps annotations at 10 errors, 10 warnings,
and 10 notices per step, and 50 per job. Larger Java builds therefore
showed only a truncated subset of their diagnostics as annotations. See
<a
href="https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#java-problem-matcher-compiler-annotations">Java
problem matcher (compiler annotations)</a>.</p>
<h2>What's Changed</h2>
<ul>
<li>Architecture validation for JDK file installs by <a
href="https://github.com/v-mahabaleshwars"><code>@​v-mahabaleshwars</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/1324">actions/setup-java#1324</a></li>
<li>chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1323">actions/setup-java#1323</a></li>
<li>Add Microsoft OpenJDK 25.0.5.0.2 support by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1320">actions/setup-java#1320</a></li>
<li>Fix JetBrains Runtime hotfix version selection by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1321">actions/setup-java#1321</a></li>
<li>Make Java problem matcher opt-in (default problem-matcher to false)
by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1326">actions/setup-java#1326</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v6.2.0...v6.3.0">https://github.com/actions/setup-java/compare/v6.2.0...v6.3.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/d1374f8ac74474200d16ef8ecee22c7ae7a51880"><code>d1374f8</code></a>
Make Java problem matcher opt-in (<a
href="https://redirect.github.com/actions/setup-java/issues/1326">#1326</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/5fb63c9bc97316aca87b7eae68a3404a62579dd7"><code>5fb63c9</code></a>
Fix JetBrains Runtime hotfix version selection (<a
href="https://redirect.github.com/actions/setup-java/issues/1321">#1321</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/a1bf0b5568e6a2d842b3426fa2d47b4cf0ad5d1b"><code>a1bf0b5</code></a>
Add Microsoft OpenJDK 25.0.5.0.2 support (<a
href="https://redirect.github.com/actions/setup-java/issues/1320">#1320</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/a3c80683014bc0e5a1aa6bf9fa3a1d2b32a593a0"><code>a3c8068</code></a>
chore(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 (<a
href="https://redirect.github.com/actions/setup-java/issues/1323">#1323</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/9ce5b12cb90c06fc1b0e3343c3e65bb977578591"><code>9ce5b12</code></a>
Architecture validation for JDK file installs (<a
href="https://redirect.github.com/actions/setup-java/issues/1324">#1324</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-java/compare/77dd5b2ce225ea11469928ac317850245a74ae78...d1374f8ac74474200d16ef8ecee22c7ae7a51880">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/create-github-app-token/releases">actions/create-github-app-token's
releases</a>.</em></p>
<blockquote>
<h2>v3.4.0</h2>
<h2><a
href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0">3.4.0</a>
(2026-11-18)</h2>
<h3>Features</h3>
<ul>
<li>bump actions/setup-node from 6 to 7 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56">09c1ab7</a>)</li>
<li>bump actions/stale from 10 to 11 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5">679345a</a>)</li>
<li>bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the
github-actions group (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/408">#408</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3">660c44c</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump undici (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7">18e9994</a>)</li>
</ul>
<h2>v3.4.0-beta</h2>
<h2><a
href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0-beta">3.4.0-beta</a>
(2026-11-17)</h2>
<h3>Features</h3>
<ul>
<li>support GitHub Actions OIDC authentication (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/411">#411</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/8240f10d3ae05b4d450da83e8e247111a36eaf2c">8240f10</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md">actions/create-github-app-token's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2><a
href="https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0">3.4.0</a>
(2026-11-18)</h2>
<h3>Features</h3>
<ul>
<li>bump actions/setup-node from 6 to 7 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56">09c1ab7</a>)</li>
<li>bump actions/stale from 10 to 11 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5">679345a</a>)</li>
<li>bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the
github-actions group (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/408">#408</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3">660c44c</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump undici (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7">18e9994</a>)</li>
</ul>
<h2><a
href="https://github.com/actions/create-github-app-token/compare/v3.2.0...v3.3.0">3.3.0</a>
(2026-10-12)</h2>
<h3>Features</h3>
<ul>
<li>update permission inputs (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/399">#399</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/a47236f79f79fcbc3532af49fe3a5ded89529b6e">a47236f</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump nested undici from 6.24.0 to 6.29.0 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/403">#403</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/12461a3a794e67c032f1eff5bb95ece9427eb4fb">12461a3</a>)</li>
<li><strong>deps:</strong> bump the production-dependencies group across
1 directory with 3 updates (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/395">#395</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/a69c19ddfdf8e1ab093900e0064524ce9309c807">a69c19d</a>)</li>
</ul>
<h2><a
href="https://github.com/actions/create-github-app-token/compare/v3.1.1...v3.2.0">3.2.0</a>
(2026-05-12)</h2>
<h3>Features</h3>
<ul>
<li>add support for enterprise-level GitHub Apps (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/263">#263</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/952a2a7073df6bfa5f49bc469ec895b6ec1acea4">952a2a7</a>)</li>
<li>support full repository names in <code>repositories</code> input (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/372">#372</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/85eb8dd41472213aed25d1a126460e0069138ab6">85eb8dd</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump <code>@​actions/core</code> from 3.0.0
to 3.0.1 in the production-dependencies group (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/364">#364</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/43e5c345bfd4d4f3ecea019ad0042001a09dd857">43e5c34</a>)</li>
<li>validate private-key input (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/376">#376</a>)
(<a
href="https://github.com/actions/create-github-app-token/commit/f24bbd89643991c0de27ae823c01791b2c6bafdd">f24bbd8</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/create-github-app-token/commit/f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc"><code>f418cff</code></a>
chore(main): release 3.4.0 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/415">#415</a>)</li>
<li><a
href="https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56"><code>09c1ab7</code></a>
feat: bump actions/setup-node from 6 to 7 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/410">#410</a>)</li>
<li><a
href="https://github.com/actions/create-github-app-token/commit/01b8009bd6d3d8cce95b612d9793c2b76ef46ee3"><code>01b8009</code></a>
test: strip ANSI escape codes from snapshot output (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/412">#412</a>)</li>
<li><a
href="https://github.com/actions/create-github-app-token/commit/e05686484174f08cd73b6c67321c77132a9ace91"><code>e056864</code></a>
build(deps-dev): bump undici from 8.12.3 to 8.12.4 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/416">#416</a>)</li>
<li><a
href="https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5"><code>679345a</code></a>
feat: bump actions/stale from 10 to 11 (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/409">#409</a>)</li>
<li><a
href="https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3"><code>660c44c</code></a>
feat: bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in
the gi...</li>
<li><a
href="https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7"><code>18e9994</code></a>
fix(deps): bump undici (<a
href="https://redirect.github.com/actions/create-github-app-token/issues/406">#406</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/create-github-app-token/compare/64ab729a6294000f5aa4a4bc0b73d1f32bc45510...f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 16:35:00 +00:00
Floris Bruynooghe c7c4248d7d chore: Delete the docs preview CI workflow (#4720)
## Description

We never look at this, it is so rarely valuable and it eats up
CI resources and spams every PR with a comment. In the rare case where
we want to see this we can build the docs locally.

## API Changes

n/a

## Notes & open questions

I've been wanting to do this for soooo long. Hopefully not too
controversial.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-26 14:39:41 +00:00
Floris Bruynooghe 185ccf5726 chore: fix deny, semver, and hickory breakages (#4714)
## Description

This moves to the common cargo-deny workflow and makes sure deny
failures are only a problem if deps are modified.

It also fixes hickory-server semver breakage in the code and in the
semver CI check.

## API Changes

n/a

## Notes & open questions

Everything is verified to work, only needs to use the tag once
https://github.com/n0-computer/workflows/pull/12 is merged and tagged:
- [x] update to workflow tag
- [ ] update required checks before merging


## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-26 12:54:42 +00:00
dignifiedquire 4c12b0f7bc fix(iroh): give up the home relay when it leaves the relay map
Actually drop the relay if it is the last one. The removed relay's actor is now demoted, so its connection closes once idle.

Originally reported & fixed in https://github.com/n0-computer/iroh/pull/4616
2026-11-25 14:57:57 +01:00
dependabot[bot]andFloris Bruynooghe 40833b58fb chore(deps): bump redb from 4.4.0 to 4.5.0 (#4702)
Bumps [redb](https://github.com/cberner/redb) from 4.4.0 to 4.5.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/cberner/redb/releases">redb's
releases</a>.</em></p>
<blockquote>
<h2>4.5.0</h2>
<h3>Multi-process support</h3>
<p>Database files cannot be shared between processes using these modes
and processes using the
<code>experimental-multiprocess</code> feature of redb 4.3 or 4.4. Their
locking is incompatible, and 4.5
can't detect the older processes.</p>
<ul>
<li>Add <code>Builder::set_concurrency_mode()</code>, which takes a
<code>ConcurrencyMode</code> configuring how processes
may share the database.</li>
<li><code>ConcurrencyMode::ExclusiveWriter</code> (the default) locks
the whole file, as earlier versions do.</li>
<li><code>ConcurrencyMode::SingleWriter</code> allows one process to
write, and any number of processes may open
the database read-only.</li>
<li><code>ConcurrencyMode::MultiWriter</code> allows any number of
processes to open the database for
writing, one write transaction at a time, and any number may open it
read-only.</li>
</ul>
<h3>New features</h3>
<ul>
<li>Add <code>Builder::open_read_only_with_backend()</code> to open a
read-only database from a storage backend.</li>
<li>Add <code>Builder::set_check_integrity_on_open()</code>, which
verifies the whole file on every <code>open()</code>
instead of trusting the state recorded by a clean shutdown.</li>
<li>Add <code>ReadOnlyDatabase::close()</code>, which releases the file
and its locks without waiting for the
read transactions opened from the database to be dropped.</li>
<li>Add <code>Database::close()</code>, which closes the database as
dropping it does, but returns any error
rather than ignoring it.</li>
<li>Add <code>Database::try_begin_write()</code>, which returns
<code>TransactionError::WouldBlock</code> instead of
waiting for an in-progress write transaction to finish.</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Operations on tables with <code>&amp;str</code> or
<code>String</code> keys are faster.</li>
</ul>
<h3>Deprecations</h3>
<ul>
<li><code>Builder::create_file()</code> is deprecated; use
<code>Builder::create_with_backend(FileBackend::new(file)?)</code>
instead.</li>
<li><code>WriteTransaction::print_allocated_page_debug()</code> is
deprecated. It is an internal debugging aid,
present only in debug builds.</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><code>open()</code> reports a malformed allocator state as
<code>StorageError::Corrupted</code> instead of panicking.</li>
<li>Repair and <code>check_integrity()</code> verify the trees kept by
persistent savepoints, which were not
checked before.</li>
<li>Fix <code>cache_stats()</code>, with the <code>cache_metrics</code>
feature, panicking in debug builds or returning a
<code>write_misses()</code> near <code>u64::MAX</code> in release builds
when called while another thread is writing.</li>
<li>Repair, <code>check_integrity()</code>, and <code>commit()</code>
report some forms of file corruption as
<code>StorageError::Corrupted</code> instead of panicking. This cannot
occur in normal operation, and only effects database which were
externally modified.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/cberner/redb/blob/master/CHANGELOG.md">redb's
changelog</a>.</em></p>
<blockquote>
<h2>4.5.0 - 2026-11-05</h2>
<h3>Multi-process support</h3>
<p>Database files cannot be shared between processes using these modes
and processes using the
<code>experimental-multiprocess</code> feature of redb 4.3 or 4.4. Their
locking is incompatible, and 4.5
can't detect the older processes.</p>
<ul>
<li>Add <code>Builder::set_concurrency_mode()</code>, which takes a
<code>ConcurrencyMode</code> configuring how processes
may share the database.</li>
<li><code>ConcurrencyMode::ExclusiveWriter</code> (the default) locks
the whole file, as earlier versions do.</li>
<li><code>ConcurrencyMode::SingleWriter</code> allows one process to
write, and any number of processes may open
the database read-only.</li>
<li><code>ConcurrencyMode::MultiWriter</code> allows any number of
processes to open the database for
writing, one write transaction at a time, and any number may open it
read-only.</li>
</ul>
<h3>New features</h3>
<ul>
<li>Add <code>Builder::open_read_only_with_backend()</code> to open a
read-only database from a storage backend.</li>
<li>Add <code>Builder::set_check_integrity_on_open()</code>, which
verifies the whole file on every <code>open()</code>
instead of trusting the state recorded by a clean shutdown.</li>
<li>Add <code>ReadOnlyDatabase::close()</code>, which releases the file
and its locks without waiting for the
read transactions opened from the database to be dropped.</li>
<li>Add <code>Database::close()</code>, which closes the database as
dropping it does, but returns any error
rather than ignoring it.</li>
<li>Add <code>Database::try_begin_write()</code>, which returns
<code>TransactionError::WouldBlock</code> instead of
waiting for an in-progress write transaction to finish.</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Operations on tables with <code>&amp;str</code> or
<code>String</code> keys are faster.</li>
</ul>
<h3>Deprecations</h3>
<ul>
<li><code>Builder::create_file()</code> is deprecated; use
<code>Builder::create_with_backend(FileBackend::new(file)?)</code>
instead.</li>
<li><code>WriteTransaction::print_allocated_page_debug()</code> is
deprecated. It is an internal debugging aid,
present only in debug builds.</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><code>open()</code> reports a malformed allocator state as
<code>StorageError::Corrupted</code> instead of panicking.</li>
<li>Repair and <code>check_integrity()</code> verify the trees kept by
persistent savepoints, which were not
checked before.</li>
<li>Fix <code>cache_stats()</code>, with the <code>cache_metrics</code>
feature, panicking in debug builds or returning a
<code>write_misses()</code> near <code>u64::MAX</code> in release builds
when called while another thread is writing.</li>
<li>Repair, <code>check_integrity()</code>, and <code>commit()</code>
report some forms of file corruption as
<code>StorageError::Corrupted</code> instead of panicking. This cannot
occur in normal operation, and only effects database which were
externally modified.</li>
</ul>
<h2>redb-derive 0.2.0 - 2026-10-13</h2>
<ul>
<li>Fix <code>#[derive(Value)]</code> and <code>#[derive(Key)]</code>
failing to compile on structs whose lifetimes are
named <code>'a</code> or <code>'b</code>; the generated implementations
no longer shadow the struct's lifetimes.</li>
<li>Fix the derived implementations calling inherent methods named
<code>fixed_width</code>, <code>from_bytes</code>,
<code>as_bytes</code>, or <code>type_name</code> on field types, instead
of the <code>Value</code> trait methods. The
generated code now uses fully qualified paths, and no longer requires
the <code>Value</code> and <code>Key</code>
traits to be in scope at the derive site.</li>
<li>Add <code>#[redb(crate = &quot;...&quot;)]</code> to name the crate
the implementations are generated for, when
redb is renamed or present in several versions. Structs with fields
require redb 3.0+.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/cberner/redb/commit/96ce31fe5cafcf735425a02f1781487a4287e2de"><code>96ce31f</code></a>
Bump version to 4.5.0</li>
<li><a
href="https://github.com/cberner/redb/commit/9ee24057313245ba1ed76a1b13481ce4e161c9fb"><code>9ee2405</code></a>
Update changelog</li>
<li><a
href="https://github.com/cberner/redb/commit/7ad68a31050802353035ec83dd32e9eb591176ae"><code>7ad68a3</code></a>
redb-python: the README no longer says write transactions take
turns</li>
<li><a
href="https://github.com/cberner/redb/commit/17a28fa017c2aeb36d5b1332daf474bf3304d159"><code>17a28fa</code></a>
redb-python: leaving <code>with db:</code> keeps the exception that is
propagating</li>
<li><a
href="https://github.com/cberner/redb/commit/58a001d18482ea559f307635798703d1a98e2168"><code>58a001d</code></a>
Leave development files out of the crates.io package and the Python
sdist</li>
<li><a
href="https://github.com/cberner/redb/commit/fffa5fa93ddc8b932d20d6652dc212b608c586d7"><code>fffa5fa</code></a>
redb-python: Ctrl-C interrupts a begin_write() waiting for another
writer</li>
<li><a
href="https://github.com/cberner/redb/commit/893a1be8e4b5ac390b00e4026fd3bdc1f20b48c3"><code>893a1be</code></a>
Add Database::try_begin_write(), which returns WouldBlock rather than
waiting</li>
<li><a
href="https://github.com/cberner/redb/commit/7b70c6942d1da7c8c9d1521acc5631912d994b47"><code>7b70c69</code></a>
redb-python: both databases close through redb's close(), in one
helper</li>
<li><a
href="https://github.com/cberner/redb/commit/77258c3eabd2e5227baf7c3fe13d1cf9499914ce"><code>77258c3</code></a>
redb-python: reads after close are left to redb, without
check_open()</li>
<li><a
href="https://github.com/cberner/redb/commit/ff4a789bdd926c2544917d1d82866774654e245f"><code>ff4a789</code></a>
redb-python: entering a closed database raises DatabaseClosed</li>
<li>Additional commits viewable in <a
href="https://github.com/cberner/redb/compare/v4.4.0...v4.5.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=redb&package-manager=cargo&previous-version=4.4.0&new-version=4.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Floris Bruynooghe <flub@n0.computer>
2026-11-19 23:01:51 +00:00
dependabot[bot] 2e74408863 chore(deps): bump taiki-e/install-action from 2.90.1 to 2.90.3 in the github-actions group (#4704)
Bumps the github-actions group with 1 update:
[taiki-e/install-action](https://github.com/taiki-e/install-action).

Updates `taiki-e/install-action` from 2.90.1 to 2.90.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/releases">taiki-e/install-action's
releases</a>.</em></p>
<blockquote>
<h2>2.90.3</h2>
<ul>
<li>
<p>Update <code>yq@latest</code> to 4.54.2.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.39.3.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.57.0.</p>
</li>
<li>
<p>Update <code>rclone@latest</code> to 1.76.0.</p>
</li>
<li>
<p>Update <code>protoc-gen-connect-openapi@latest</code> to 0.30.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.3.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.17.0.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.6.</p>
</li>
</ul>
<h2>2.90.2</h2>
<ul>
<li>
<p>Update <code>trivy@latest</code> to 0.76.2.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.10.0.</p>
</li>
<li>
<p>Update <code>prek@latest</code> to 0.5.10.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.2.</p>
</li>
<li>
<p>Update <code>mdbook-d2@latest</code> to 0.3.10.</p>
</li>
<li>
<p>Update <code>cargo-zigbuild@latest</code> to 0.24.1.</p>
</li>
<li>
<p>Update <code>cargo-tarpaulin@latest</code> to 0.37.6.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.5.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md">taiki-e/install-action's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this
file.</p>
<p>This project adheres to <a href="https://semver.org">Semantic
Versioning</a>.</p>
<!-- raw HTML omitted -->
<h2>[Unreleased]</h2>
<h2>[2.90.6] - 2026-11-18</h2>
<ul>
<li>
<p>Update <code>wasmtime@latest</code> to 50.0.2.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.41.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.9.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.11.3.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.57.2.</p>
</li>
<li>
<p>Update <code>prek@latest</code> to 0.5.11.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.9.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.19.1.</p>
</li>
<li>
<p>Update <code>dprint@latest</code> to 0.65.0.</p>
</li>
<li>
<p>Update <code>cargo-machete@latest</code> to 0.10.1.</p>
</li>
<li>
<p>Update <code>cargo-deny@latest</code> to 0.21.0.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.8.</p>
</li>
</ul>
<h2>[2.90.5] - 2026-11-15</h2>
<ul>
<li>
<p>Update <code>mise@latest</code> to 2026.11.8.</p>
</li>
<li>
<p>Update <code>cargo-nextest@latest</code> to 0.9.152.</p>
</li>
</ul>
<h2>[2.90.4] - 2026-11-14</h2>
<ul>
<li>
<p>Update <code>yq@latest</code> to 4.54.3.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.40.1.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/taiki-e/install-action/commit/cfdb7ed4ccc7c7dce37759eae89dc5674b469b39"><code>cfdb7ed</code></a>
Release 2.90.3</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/0a7121930a2b50a86493394ff371be5944d87f42"><code>0a71219</code></a>
Update <code>yq@latest</code> to 4.54.2</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/4072c983d74b307847287f7220fce7a9c141b992"><code>4072c98</code></a>
Update <code>vacuum@latest</code> to 0.39.3</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/d429e9b8ea70b66f46e73feb606ddc9ee0f4efde"><code>d429e9b</code></a>
Update <code>syft@latest</code> to 1.57.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/24c26286aac008b9637a57b31fe0b3ddb2bd4ded"><code>24c2628</code></a>
Update <code>rclone@latest</code> to 1.76.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/ab9bbc83facfaf93b4b8c40d6b13ddc1bb0169a3"><code>ab9bbc8</code></a>
Update <code>protoc-gen-connect-openapi@latest</code> to 0.30.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/4bff33fa4dd584dfccaa7582398a2b31ddd8f0cb"><code>4bff33f</code></a>
Update <code>mise@latest</code> to 2026.11.3</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/cdf8dc3a14f3d788d3da291c51381dd2849ae5cf"><code>cdf8dc3</code></a>
Update <code>kingfisher@latest</code> to 2.17.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/b8b14a4959fcb616bab58d718dcffcc06ecc6bdb"><code>b8b14a4</code></a>
Update <code>biome@latest</code> to 2.6.6</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2"><code>3a3daaf</code></a>
Release 2.90.2</li>
<li>Additional commits viewable in <a
href="https://github.com/taiki-e/install-action/compare/c509219cf42fba86913069efd0ade2458c59337b...cfdb7ed4ccc7c7dce37759eae89dc5674b469b39">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=taiki-e/install-action&package-manager=github_actions&previous-version=2.90.1&new-version=2.90.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 22:54:12 +00:00
Michael WildpanerandFloris Bruynooghe 970c5690e7 fix(iroh): read time from tokio in the noq runtime (#4677)
## Description

Closes #4676.

iroh's noq runtime took its timers from tokio but kept noq's default
`now()`, which reads the system clock. Under tokio's paused test clock
the two disagree, so the connection driver spins until real time catches
up. This delegates `now()` to `noq::TokioRuntime`, like `new_timer`
already does.

Adds `runtime::tests::now_follows_tokio_clock`: on a paused clock,
`advance(60s)` must move `Runtime::now()` by 60 s. Without the fix it
moves by a few µs.

## API Changes

None. Outside a paused clock, tokio's `Instant::now()` is the system
clock.

## Notes & open questions

Only for `not(wasm_browser)`, matching `new_timer`.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented. (No API changes)
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Co-authored-by: Floris Bruynooghe <flub@devork.be>
2026-11-19 17:45:39 +00:00
ramfox ea3bbb6ab4 chore: Release v1.5.0 2026-11-18 23:23:38 -05:00
ramfox 7a863f1b91 deps: upgrade noq, tokio-rustls-acme, and patchbay deps (#4701)
## Description

upgrade noq, tokio-rustls-acme, and patchbay deps
2026-11-18 22:52:57 -05:00
ramfox 41a445cae4 Merge branch 'maint-1.4' (iroh 1.4.2) into main 2026-11-18 20:14:03 -05:00
1f08ed1928 feat(iroh): add path wait helpers (#4672)
## Description

This adds `PathListStream::wait_any` to wait for the first path to
appear that matches a condition, `PathListStream:::wait_none` to wait
until no path matches a condition, and `PathListStream::wait_closed` to
wait for a certain path to close.

## API Changes

None. Three additions, see above.

## Notes & open questions

The `PathListStream` has a field now for a next value, because otherwise
`wait_any` can't return a `Path` (because the `Path` is lifetime-bound
to a refernce on its `PathData`, which would otherwise only be owned by
`wait_any`'s function scope, so we couldn't return a reference to it).
It turned out to be a nice refactor after review suggestions, removing
the awkward `first_poll` field.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Co-authored-by: ramfox <kasey@n0.computer>
Co-authored-by: Floris Bruynooghe <flub@n0.computer>
2026-11-19 00:24:01 +00:00
ramfox 2131f266da chore: Release v1.4.2 2026-11-18 19:23:32 -05:00
ramfox 96e56d3d79 deps: update tokio to 1.54.1 for RUSTSEC-2026-0386 2026-11-18 15:32:47 -05:00
ramfox e13fcec7b1 deps: update ctutils to 0.4.6 for RUSTSEC-2026-0385 2026-11-18 15:26:25 -05:00
ramfox ba400ec066 deps(*): upgrade deps to get security fixes
Backport of #4700 (44c3c9b6fd) to 1.4. Updated:

portmapper -> 0.20.2 (requirement raised from 0.19.3)
netwatch -> 0.20.2 (requirement raised from 0.19.3)
n0-dns-resolver -> 0.1.1
n0-watcher -> 1.0.1
iroh-metrics -> 1.0.3

On 1.4 netwatch and portmapper are required at 0.19, so the fixed 0.20.2
releases need a requirement bump in iroh/Cargo.toml. No netwatch or
portmapper types are part of iroh's public API.

Also drops MPL-2.0 from deny.toml: attohttpc, its only user, is gone after
the portmapper upgrade.
2026-11-18 15:14:11 -05:00
dependabot[bot]anddignifiedquire fa0c1d1f9b chore(deps): bump simple-dns from 0.12.0 to 0.13.1 (#4679)
## Description

Bumps [simple-dns](https://github.com/balliegojr/simple-dns) from 0.12.0
to 0.13.1.

Since [iroh#4700](https://github.com/n0-computer/iroh/pull/4700), `main`
locks simple-dns twice: 0.12.0 for iroh, iroh-dns and iroh-dns-server,
and 0.13.1 for n0-dns-resolver 0.1.1, which moved to 0.13 in
[n0-dns-resolver#41](https://github.com/n0-computer/n0-dns-resolver/pull/41).
This bump leaves only 0.13.1.

## API Changes

None.

## Notes & open questions

- The lockfile keeps 0.13.1, which `main` already uses, instead of
0.13.0. 0.13.1 caps allocations when parsing packets and returns write
errors when an output buffer fills.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dignifiedquire <me@dignifiedquire.com>
2026-11-18 20:11:49 +00:00
ramfox 87fb85e6b6 chore(deny): ignore unmaintained advisories for chrono and humantime (#4696)
## Description

RUSTSEC-2026-0543 and RUSTSEC-2026-0542 mark chrono and humantime as
unmaintained. Allowing these advisories in deny.toml.

## Change checklist

- [x] Self-review.
- [x] `cargo make` passes locally.

(cherry picked from commit a9e9e35999)
2026-11-18 15:11:39 -05:00
ramfox ddb546092f fix(iroh-relay): drop packets that cannot be encoded instead of disconnecting the recv side (#4694)
## Description

In `iroh-relay`, when forwarding a packet from a sender to a receiver,
if the packet is returned as too large, it now drops that packet and
keeps the recv side of the relay connection connected.

Stream errors and timeouts still close the connection from the server to
the recv side.

Follow-up to #4646.

## API Changes

None.

## Notes & open questions

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

(cherry picked from commit 325b3d3e13)
2026-11-18 15:07:47 -05:00
mattyg e58b1e5c53 fix(iroh-relay): prevent empty datagrams payload from disconnecting recipient (#4646)
<!-- Attention agents and contributors using AI, please see our AI
policy before opening a PR:
https://github.com/n0-computer/iroh/blob/main/AI_POLICY.md -->
<!-- Any PRs violating this policy will be closed. -->

<!-- As per our contributor guidelines, all PRs that do not link to an
issue with the label `ready-for-pr` will be closed:
https://github.com/n0-computer/iroh/blob/main/CONTRIBUTING.md -->

## Description

Recipients now gracefully ignore empty datagrams instead of erroring,
and the no longer used error variant is marked as deprecated. Resolution
to
https://github.com/n0-computer/iroh/security/advisories/GHSA-5c6r-mh39-9998

## API Changes

<!-- Optional, any API additions, deprecations or breaking changes,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [ ] All API changes documented.

---------

Co-authored-by: ramfox <kasey@n0.computer>
Co-authored-by: Floris Bruynooghe <flub@n0.computer>
(cherry picked from commit 55181bfd33)
2026-11-18 15:07:47 -05:00
dignifiedquire 2cdee06fb5 fix(iroh): bound the relay actor's close and keep answering route queries
Fixes ANT-2026-VLPHAYRL. When an `ActiveRelayActor` stopped, it awaited `client_sink.close()` without a timeout and without reading its inboxes. tokio-websockets only finishes that close once the server ends the stream, so a relay that ignored the WebSocket Close kept the actor alive but deaf. The endpoint's `RelayActor` then blocked on it, through a route query or a full send queue, and the endpoint sent nothing through any relay.

- `run_closing` replaces the untimed close. It gives up after `CLOSE_TIMEOUT` (1 s, below the `RelayActor`'s 3 s bound for shutting down its actors), and answers `HasEndpointRoute` with `false` meanwhile, like `sleep_backoff`.
- The regression test, now `active_relay_answers_routes_and_exits_when_server_ignores_close`, runs without `#[ignore]`. It requires a route reply while the close hangs and then the actor's exit, and fails without either part of the fix.

None.

- This is a private security PR, so there is no public `ready-for-pr` issue.
- Shutdown still closes gracefully: `run_closing` does not stop on the stop token, so honest relays still get a Close frame, just never waited on for more than 1 s.
- [iroh#4686](https://github.com/n0-computer/iroh/pull/4686) (draft) fixes this as well, with a 3 s close timeout. It also bounds the `RelayActor`'s waits on its actors and retires stuck actors. That `RelayActor` side overlaps ANT-2026-2W9CJR5V ([iroh#4603](https://github.com/n0-computer/iroh/issues/4603)) and is left for that fix.
- Bounding the close matches others: [coder/websocket](https://github.com/coder/websocket/blob/ac2177d22d91/close.go#L190-L204) allows 5 s to write the close frame and 5 s for the reply, [Node's `ws`](https://github.com/websockets/ws/blob/0cc9185755fa/lib/websocket.js#L1385-L1390) destroys the socket 30 s after it starts closing, and [RFC 6455 §7.1.1](https://www.rfc-editor.org/rfc/rfc6455#section-7.1.1) lets a client close the TCP connection when the server does not within a reasonable time. tokio-websockets waits for the peer without a limit, and [Gelbpunkt/tokio-websockets#128](https://github.com/Gelbpunkt/tokio-websockets/issues/128) (open) reports `Sink::poll_close` hanging.

<details>
<summary>Finding ANT-2026-VLPHAYRL (high, CWE-1088)</summary>

> Relay ignoring WebSocket Close stalls ActiveRelayActor and all relay sends
>
> A relay server that an iroh endpoint connects to as a non-home relay
> can permanently stop that endpoint from sending through any relay,
> its home relay included, until the application closes the endpoint
> and builds a new one. The relay only has to ignore the WebSocket
> Close frame and keep the TCP connection open. It sends no malformed
> data. The endpoint is in its default configuration and reaches the
> attacker's relay when the application dials an address that names
> it, for example from a ticket or from the address lookup of an
> endpoint id the attacker controls. An endpoint that only accepts
> connections cannot be steered there this way.
>
> The bug is at the end of `ActiveRelayActor::run_connected` in
> `iroh/src/socket/transports/relay/actor.rs` (line 706–707). It
> awaits `client_sink.close()` with no timeout and without serving its
> priority inbox. Since the move to tokio-websockets, that future
> resolves only when the server ends the stream. A non-home relay's
> actor reaches this close after 60 s without outgoing datagrams, and
> then sits alive but no longer reading its inboxes.

</details>

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

(cherry picked from commit 4a9c834d025d160b6dd843d3d316af40d46f7b88)
2026-11-18 15:07:47 -05:00
dignifiedquire de1d7f32c4 fix(iroh): serve the relay actor's inbox and idle timeout while it backs off
## Description

Fixes ANT-2026-Q02EK5PM. A relay URL that cannot become a ws(s) URL, such as `x://h/`, makes the dial fail on its first poll. Its `ActiveRelayActor` then alternated between that dial and `sleep_backoff`, never read its inbox, and never exited. The `RelayActor` sends `CheckConnection` to every actor on each network change and waits for room, so after 64 network changes it blocked, and all relay traffic stopped.

- `sleep_backoff` now serves the inbox as `run_dialing` does, through the shared `handle_msg_while_disconnected`, so control messages always find room.
- `sleep_backoff` also serves the inactivity timeout, so a non-home actor that can never dial exits after `RELAY_INACTIVE_CLEANUP_TIME` instead of running until the endpoint closes.
- The regression test `undialable_relay_does_not_stall_relay_actor_on_network_changes` runs without `#[ignore]`, and the new `undialable_relay_actor_exits_when_inactive` checks the exit. Each fails without its part of the fix.

## API Changes

None.

## Notes & open questions

- This is a private security PR, so there is no public `ready-for-pr` issue.
- The branch is rebased onto main 55181bfd.
- The repeated-dial route of this finding is fixed by #28 (ANT-2026-2W9CJR5V), which stops the `RelayActor` waiting on a full datagram queue. Both fixes apply together and the relay actor tests pass with both. Their test commits both add the `setup_relay_actor` helper, so whichever lands second drops its copy.
- [iroh#4686](https://github.com/n0-computer/iroh/pull/4686) fixes the network-change route differently: it bounds the `RelayActor`'s control sends to 5 s, aborts actors that do not accept them in time, and also drains the inbox during backoff. Once every actor state reads its inbox, those bounds are not needed for this finding, and an actor that can never dial still never exits there.

<details>
<summary>Finding ANT-2026-Q02EK5PM (medium, CWE-833)</summary>

> Invalid relay URL from a peer can hang RelayActor, stopping all relay traffic
>
> An attacker who can get an iroh application to dial an address they
> supply can make that endpoint stop sending anything through any
> relay, its home relay included, until the endpoint is closed. The
> address only has to carry a relay URL that cannot be turned into a
> ws(s) URL, such as `x://h/`. It can arrive in a ticket, or in a
> validly signed address record the attacker publishes for their own
> endpoint id. The attacker needs no server and no connection to the
> victim, and the default configuration is affected. The hang is then
> triggered in one of two ways: the application dials that address
> again (9 dials with a 10 s timeout, 6 with the default timeout, or
> 10 at once, as a retry loop would), or, after a single dial, the
> machine sees 33 major network changes.
>
> The cause is in `ActiveRelayActor` in
> `iroh/src/socket/transports/relay/actor.rs`:

</details>

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

(cherry picked from commit 3c8dc9acefbebc449954cbaf03e199c88de50f75)
2026-11-18 15:05:30 -05:00
dignifiedquire 507ab37534 fix(iroh-relay): stop reading after a ping until its pong is written
## Description

Fixes ANT-2026-IET59ARW. A peer that sends WebSocket pings but never reads made the other side of a relay connection queue one pong per ping without limit, on both the relay server and the endpoint, until it ran out of memory.

- `WsBytesFramed::poll_next` now waits until the pong for a ping is written before it reads the next frame. Such a peer is no longer read from, and the existing write and ping timeouts drop it.
- Write polls from either half use a waker that wakes both halves, because tokio-websockets keeps only the waker of the last write poll and `Client::split` allows the halves on separate tasks.
- `WsBytesFramed::new` replaces the struct literals.
- The regression test `unread_pongs_hold_back_further_pings` runs without `#[ignore]`, and two new tests drive the split halves from separate tasks in both orders.

## API Changes

None. `WsBytesFramed` and its constructor are crate-private.

## Notes & open questions

- This is a private security PR, so there is no public `ready-for-pr` issue.
- Other WebSocket libraries that wait for the pong to be written before reading on, as this PR does:
  - [soketto](https://github.com/paritytech/soketto/blob/595d57978ea8/src/connection.rs#L376-L383) writes and flushes the pong before the next read.
  - [fastwebsockets](https://github.com/denoland/fastwebsockets/blob/ed8eea7405fb/src/lib.rs#L299-L305) awaits the pong write before returning a frame, also on its split read half, which takes a send function for this.
  - [coder/websocket](https://github.com/coder/websocket/blob/ac2177d22d91/read.go#L317-L323) writes the pong synchronously in its read path.
  - [gorilla/websocket](https://github.com/gorilla/websocket/blob/e064f32e3674/conn.go#L1170-L1179) writes the pong synchronously with a 1 s deadline, then drops it.
- Two libraries bound the queue differently:
  - [tungstenite](https://github.com/snapview/tungstenite-rs/blob/89576c6fcf7a/src/protocol/mod.rs#L773-L782) keeps only the latest unsent pong, as RFC 6455 §5.5.3 allows. tokio-websockets offers no way to do this from outside.
  - Node's `ws` fixed the same ping flood as a security issue on 2026-11-10 ([websockets/ws@ace7248](https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63), released in 8.23.0, 7.5.14 and 6.2.7). It terminates a connection once more than 60 automatic pongs are pending (`maxPendingAutoPongs`).
- tokio-websockets 0.13.3 and its `main` still queue every pong without a limit, and no upstream issue or advisory covers it. We should report it there after disclosure.
- Not in this PR: the endpoint's ping timer resets on any relay frame, and `client_sink.close()` has no timeout ([iroh#4686](https://github.com/n0-computer/iroh/pull/4686) bounds it).

<details>
<summary>Finding ANT-2026-IET59ARW (high, CWE-770)</summary>

> iroh-relay: WebSocket ping flood exhausts endpoint and relay memory
>
> A relay can make a connected iroh endpoint allocate memory without
> limit until the process aborts on a failed allocation. In the other
> direction, a client that has not authenticated can do the same to a
> relay server for 30 s per connection, which was enough to take one
> release-build relay to 6.6 GB from a single connection. Both sides
> hold about 56 bytes for every 2-byte WebSocket ping the remote sends
> and never reads the pong for. Neither the relay's access control,
> which runs after the handshake, nor the `limits.client.rx` rate
> limiter bounds the total.
>
> The cause is in `WsBytesFramed::poll_next`
> (`iroh-relay/src/protos/streams.rs`), which every relay connection
> reads through on both sides. It `continue`s past WebSocket pings and
> asks for the next frame immediately. tokio-websockets has already
> put a pong for that ping into `frame_queue`, an uncapped `VecDeque`.
> Once the peer stops reading and the TCP send buffer fills, the flush
> before each read returns `Pending`, the result is dropped, and the
> queue grows with every further ping.

</details>

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

(cherry picked from commit db3908d8e29fd2f9065f43ccd5426a9b2618a933)
2026-11-18 15:05:29 -05:00
dignifiedquire fe9e92eee1 fix(iroh-relay): bound the client actor's flushes by the write timeout
## Description

Fixes ANT-2026-5NEABCX1. The relay server's client actor flushed its connection without a timeout in two places: at the end of every loop iteration and when the actor is cancelled. A client that floods websocket pings and reads nothing could park the actor in either flush, where it got no keep-alive, ignored `Clients::disconnect` and kept `Server::shutdown` from returning, while its queued pongs stayed in memory.

- A `flush` method bounds `self.stream.flush()` by the same `timeout` that `write_frame` already uses, and both flush sites call it.
- The regression test `actor_exits_when_client_leaves_pongs_unread` runs without `#[ignore]`, and the new `shutdown_completes_while_client_leaves_pongs_unread` covers the cancellation flush. Each test fails when the timeout is removed from its flush site.

## API Changes

None.

## Notes & open questions

- This is a private security PR, so there is no public `ready-for-pr` issue.
- Relation to ANT-2026-IET59ARW (#11): its fix stops reading after a ping until the pong is written, which bounds the queued pongs and already makes `actor_exits_when_client_leaves_pongs_unread` pass. Shutdown still hangs with that fix alone while one pong is unwritten, which is what this PR fixes. The two fixes touch different files, and the iroh-relay tests pass with both applied.
- Bounding every write, including the final flush, matches how others handle a peer that does not read:
  - [Tailscale's DERP server](https://github.com/tailscale/tailscale/blob/4aebff0a3180/derp/derpserver/derpserver.go#L2776-L2791), which iroh-relay descends from, puts a write deadline under each client's buffered writer, so every flush is bounded, by [2 s](https://github.com/tailscale/tailscale/blob/4aebff0a3180/derp/derpserver/derpserver.go#L90) by default.
  - The [gorilla/websocket chat server](https://github.com/gorilla/websocket/blob/e064f32e3674/examples/chat/client.go#L91-L115) sets a 10 s write deadline before each message write and the final close message.
  - [coder/websocket](https://github.com/coder/websocket/blob/ac2177d22d91/close.go#L190-L204) bounds the close handshake by 5 s for writing the close frame and 5 s for the reply.
  - [Node's `ws`](https://github.com/websockets/ws/blob/0cc9185755fa/lib/websocket.js#L1385-L1390) destroys the socket 30 s after it starts closing.
  - tokio-websockets, tungstenite and soketto have no timeouts of their own, so the application has to bound them, as `write_frame` already did.

<details>
<summary>Finding ANT-2026-5NEABCX1 (high, CWE-400)</summary>

> iroh-relay: client actor flush has no timeout, enabling memory DoS
>
> Any client of an iroh-relay server can make the relay hold its
> connection, and the memory behind it, indefinitely, and the relay
> never drops that connection. Repeating this across connections runs
> the relay out of memory: a relay capped at 600 MB above its idle
> size aborted after 21 such connections. Under the default access
> policy any keypair can do this, and one stuck connection also keeps
> Ctrl-C / `Server::shutdown` from completing when QUIC address
> discovery is off (the default).
>
> The per-client actor in `iroh-relay/src/server/client.rs`
> (`Actor::run_inner`) wraps every frame write in
> `SERVER_WRITE_TIMEOUT`, but the flush at the end of each loop
> iteration (line 439) and the one in the cancellation branch (line
> 388) have no timeout. tokio-websockets queues a pong, without a cap,
> for every websocket ping it reads. `WsBytesFramed::poll_next` skips
> those pings, so the actor never sees them. A client that floods
> websocket pings without reading, then sends one relay frame that
> needs no reply (a relay `Pong`, or `Datagrams` to an endpoint that
> is not connected), leaves the actor parked in that flush outside the
> `select!`. There it gets no keep-alive, ignores
> `Clients::disconnect` and cancellation, and never unregisters. The
> queued pongs are never freed: about 35 MB per 26 MB uploaded, paid
> once and at any pace. The attached reproducer runs the stock relay
> binary with default settings and compares a plain non-reading
> client, which is dropped on keep-alive timeout, with one that adds
> the single `Pong` frame. The second one's actor never exits, the
> relay still owns its socket with about 2.5 MB unsent 30 s later, and
> the relay is still running 10 s after SIGINT. The size of each stuck
> connection comes partly from the uncapped pong queue in
> tokio-websockets, but the untimed flush is what makes that memory
> permanent. History and a revert experiment point to 3a1592ac75
> (first in v0.91.0) as the commit that made this reachable, though it
> has not been bisected. A patch that puts the same timeout on both
> flushes is attached.

</details>

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

(cherry picked from commit df4696b6709a2ffaad50fd8cbcb707a6e4bc0110)
2026-11-18 15:05:29 -05:00
Anthony Krupko 41b7244238 fix(iroh-relay): check the full frame length when decoding client frames
## Description

Fixes GHSA-9mgr-cc4j-g7qv.

The relay checked a client frame's size AFTER removing the frame type, so it did not reject frames that were too large.

Fix pulled from AnthyonyKrupko's security advisory, with additional tests.

## API Changes

None.

## Notes & open questions

No CI runs in private repos, but `cargo make` passes locally.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

Co-authored-by: ramfox <kasey@n0.computer>
(cherry picked from commit b0d2c6820bcf7ddd8b157e492e16ff8bac1d7c9b)
2026-11-18 15:05:29 -05:00
Franz Heinzmannandramfox a87799f744 test(iroh): add patchbay test for stream affinity (#4671)
## Description

Based on #4654 

This adds a patchbay test for end-to-end stream affinity verification.
The test sets up two endpoints connected through two network links, one
that has a relay server but UDP blocked, and one with direct
connectivity but no upstream connetivity to the relay. It then connects
them over the relay link, waits for the connection to become direct,
opens a send stream that is sticky to the direct link, brings the direct
interface down, and observes that the stream is blocked while only the
relay path is available. It then brings up the direct link again, waits
for a new direct path to be established, changes the stream to be sticky
to that one, and observes that data is flowing again.

## API Changes

<!-- Optional, any API additions, deprecations or breaking changes,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Co-authored-by: ramfox <kasey@n0.computer>
2026-11-18 19:04:31 +00:00
ramfox 44c3c9b6fd deps(*): upgrade deps in lockfile to get security fixes (#4700)
## Description

The following were updated in the lockfile to inherit security fixes:

portmapper -> 0.20.2
netwatch -> 0.20.2
n0-dns-resolver -> 0.1.1
n0-watcher -> 1.0.1
iron-metrics -> 1.0.3

Also fixes cargo deny: we no longer need the MPL-2.0 license after doing
these upgrades
2026-11-18 13:47:38 -05:00
Rüdiger Klaehn 8797f944ec deps(iroh-dns-server): update n0-mainline to 0.8.0 (#4698)
## Description

Update iroh-dns-server to n0-mainline 0.8.0 and refresh its lockfile
dependencies. This picks up the upstream fixes and keeps the DNS
fallback in the new default client-only mode. No source API changes are
needed.

## Validation

- DNS-server tests and doctest pass (9 tests; 1 normally ignored).
- Explicitly ran the ignored integration_mainline test: passed.
- Clippy for all DNS-server targets with warnings denied: passed.
- Formatting and diff checks pass.
- Linux-only patchbay tests and the full workspace cargo make suite were
not run.
2026-11-18 18:11:39 +00:00
55181bfd33 fix(iroh-relay): prevent empty datagrams payload from disconnecting recipient (#4646)
<!-- Attention agents and contributors using AI, please see our AI
policy before opening a PR:
https://github.com/n0-computer/iroh/blob/main/AI_POLICY.md -->
<!-- Any PRs violating this policy will be closed. -->

<!-- As per our contributor guidelines, all PRs that do not link to an
issue with the label `ready-for-pr` will be closed:
https://github.com/n0-computer/iroh/blob/main/CONTRIBUTING.md -->

## Description

Recipients now gracefully ignore empty datagrams instead of erroring,
and the no longer used error variant is marked as deprecated. Resolution
to
https://github.com/n0-computer/iroh/security/advisories/GHSA-5c6r-mh39-9998

## API Changes

<!-- Optional, any API additions, deprecations or breaking changes,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [ ] All API changes documented.

---------

Co-authored-by: ramfox <kasey@n0.computer>
Co-authored-by: Floris Bruynooghe <flub@n0.computer>
2026-11-17 21:06:00 +00:00
ramfox 325b3d3e13 fix(iroh-relay): drop packets that cannot be encoded instead of disconnecting the recv side (#4694)
## Description

In `iroh-relay`, when forwarding a packet from a sender to a receiver,
if the packet is returned as too large, it now drops that packet and
keeps the recv side of the relay connection connected.

Stream errors and timeouts still close the connection from the server to
the recv side.

Follow-up to #4646.

## API Changes

None.

## Notes & open questions

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-17 20:47:31 +00:00
ramfox a9e9e35999 chore(deny): ignore unmaintained advisories for chrono and humantime (#4696)
## Description

RUSTSEC-2026-0543 and RUSTSEC-2026-0542 mark chrono and humantime as
unmaintained. Allowing these advisories in deny.toml.

## Change checklist

- [x] Self-review.
- [x] `cargo make` passes locally.
2026-11-17 19:58:49 +00:00
Floris Bruynoogheandramfox d27cced69e chore: update the issue template checkboxes (#4662)
## Description

This explicitly refers to our AI policy, changes the tone to be a bit
less cavalier and more about mutual collaboration.

## API Changes

n/a

## Notes & open questions

It's hard to come up with a good one liner. Feel free to suggest other
ways of wording a sentiment like this.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Co-authored-by: ramfox <kasey@n0.computer>
2026-11-16 23:42:33 +00:00
dependabot[bot] 2c12bb58f4 chore(deps): bump the github-actions group with 3 updates (#4680)
Bumps the github-actions group with 3 updates:
[taiki-e/install-action](https://github.com/taiki-e/install-action),
[actions/setup-java](https://github.com/actions/setup-java) and
[docker/login-action](https://github.com/docker/login-action).

Updates `taiki-e/install-action` from 2.88.0 to 2.90.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/releases">taiki-e/install-action's
releases</a>.</em></p>
<blockquote>
<h2>2.90.1</h2>
<ul>
<li>
<p>Update <code>zizmor@latest</code> to 1.32.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.7.</p>
</li>
<li>
<p>Update <code>typos@latest</code> to 1.52.0.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.9.9.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.56.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.0.</p>
</li>
<li>
<p>Update <code>kache@latest</code> to 2.0.0.</p>
</li>
<li>
<p>Update <code>cargo-nextest@latest</code> to 0.9.151.</p>
</li>
</ul>
<h2>2.90.0</h2>
<ul>
<li>
<p>Add <code>fallback: skip</code> input option. This is similar to
<code>fallback: none</code> but skip unsupported tools instead of error.
(<a
href="https://redirect.github.com/taiki-e/install-action/issues/2052">#2052</a>)</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.36.2.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.4.3.</p>
</li>
<li>
<p>Update <code>bpf-linker@latest</code> to 0.13.0.</p>
</li>
</ul>
<h2>2.89.1</h2>
<ul>
<li>
<p>Install <code>ld.mold</code> symlink when installing
<code>mold</code> on Linux. Previously, only <code>mold</code> binary
was installed. (<a
href="https://redirect.github.com/taiki-e/install-action/pull/2050">#2050</a>,
thanks <a
href="https://github.com/FirelightFlagboy"><code>@​FirelightFlagboy</code></a>)</p>
</li>
<li>
<p>Update <code>parse-dockerfile@latest</code> to 0.1.9.</p>
</li>
<li>
<p>Update <code>parse-changelog@latest</code> to 0.6.18.</p>
</li>
<li>
<p>Update <code>cargo-minimal-versions@latest</code> to 0.1.38.</p>
</li>
<li>
<p>Update <code>cargo-hack@latest</code> to 0.6.46.</p>
</li>
</ul>
<h2>2.89.0</h2>
<ul>
<li>
<p>Support <code>yq</code>. (<a
href="https://redirect.github.com/taiki-e/install-action/pull/2036">#2036</a>,
thanks <a
href="https://github.com/FirelightFlagboy"><code>@​FirelightFlagboy</code></a>)</p>
</li>
<li>
<p>Support <code>mold</code>. (<a
href="https://redirect.github.com/taiki-e/install-action/pull/2044">#2044</a>,
thanks <a
href="https://github.com/FirelightFlagboy"><code>@​FirelightFlagboy</code></a>)</p>
</li>
<li>
<p>Fix an error when old cargo-binstall had already been installed at
non-standard location. (<a
href="https://redirect.github.com/taiki-e/install-action/pull/2048">#2048</a>)</p>
</li>
<li>
<p>Update <code>wasm-tools@latest</code> to 1.263.0.</p>
</li>
<li>
<p>Update <code>wasm-pack@latest</code> to 0.15.1.</p>
</li>
<li>
<p>Update <code>wasm-bindgen@latest</code> to 0.2.130.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md">taiki-e/install-action's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this
file.</p>
<p>This project adheres to <a href="https://semver.org">Semantic
Versioning</a>.</p>
<!-- raw HTML omitted -->
<h2>[Unreleased]</h2>
<h2>[2.90.3] - 2026-11-08</h2>
<ul>
<li>
<p>Update <code>yq@latest</code> to 4.54.2.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.39.3.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.57.0.</p>
</li>
<li>
<p>Update <code>rclone@latest</code> to 1.76.0.</p>
</li>
<li>
<p>Update <code>protoc-gen-connect-openapi@latest</code> to 0.30.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.3.</p>
</li>
<li>
<p>Update <code>kingfisher@latest</code> to 2.17.0.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.6.</p>
</li>
</ul>
<h2>[2.90.2] - 2026-11-06</h2>
<ul>
<li>
<p>Update <code>trivy@latest</code> to 0.76.2.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.10.0.</p>
</li>
<li>
<p>Update <code>prek@latest</code> to 0.5.10.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.2.</p>
</li>
<li>
<p>Update <code>mdbook-d2@latest</code> to 0.3.10.</p>
</li>
<li>
<p>Update <code>cargo-zigbuild@latest</code> to 0.24.1.</p>
</li>
<li>
<p>Update <code>cargo-tarpaulin@latest</code> to 0.37.6.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.5.</p>
</li>
</ul>
<h2>[2.90.1] - 2026-11-04</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/taiki-e/install-action/commit/c509219cf42fba86913069efd0ade2458c59337b"><code>c509219</code></a>
Release 2.90.1</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/4809658b6cf8ed9bf9321805fb70a1c638229053"><code>4809658</code></a>
codegen: kache 2.0.0 split binaries</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/2f5a77a15c987eb064d3937fb1691dea49c851c2"><code>2f5a77a</code></a>
Update <code>zizmor@latest</code> to 1.32.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/44e3ac116a73cfb941b046620d03b96d6e9e291e"><code>44e3ac1</code></a>
Update <code>uv@latest</code> to 0.13.7</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/91480afcb94a4b6e1471efe1971dd0eed6eba4df"><code>91480af</code></a>
Update <code>typos@latest</code> to 1.52.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/188699834dc871fbe7d68700984c38ee35aec9ec"><code>1886998</code></a>
Update <code>tombi@latest</code> to 1.9.9</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/d66493dfe990dda0d66a0ce0a93c7f6f467ed700"><code>d66493d</code></a>
Update <code>syft@latest</code> to 1.56.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/ae0b89b6ffb1cde493d3f7daf5a97f42eaf82430"><code>ae0b89b</code></a>
Update prek manifest</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/773fb6f5984c2c2a93c08c3fbe57ba798b2b02f4"><code>773fb6f</code></a>
Update <code>mise@latest</code> to 2026.11.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/0a95b08efda4903b1773d9363c01fc2532adbedb"><code>0a95b08</code></a>
Update <code>kache@latest</code> to 2.0.0</li>
<li>Additional commits viewable in <a
href="https://github.com/taiki-e/install-action/compare/86f7a0ffb25f40114606501a311ebcfaf882ea32...c509219cf42fba86913069efd0ade2458c59337b">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 6.1.0 to 6.2.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v6.2.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix Liberica SDKMAN patch release resolution by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1291">actions/setup-java#1291</a></li>
<li>Update Undici to 6.29.1 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1308">actions/setup-java#1308</a></li>
<li>chore(deps): bump the monthly-npm-updates group with 12 updates by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1309">actions/setup-java#1309</a></li>
<li>Fix Liberica Java 25 release resolution by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1313">actions/setup-java#1313</a></li>
<li>Add repository-specific Copilot instructions by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1312">actions/setup-java#1312</a></li>
<li>Support exact Corretto release versions by <a
href="https://github.com/electrum"><code>@​electrum</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1310">actions/setup-java#1310</a></li>
<li>Support Maven mirrors in generated settings.xml by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1289">actions/setup-java#1289</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/electrum"><code>@​electrum</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/1310">actions/setup-java#1310</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v6.1.0...v6.2.0">https://github.com/actions/setup-java/compare/v6.1.0...v6.2.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/77dd5b2ce225ea11469928ac317850245a74ae78"><code>77dd5b2</code></a>
Support Maven mirrors in generated settings.xml (<a
href="https://redirect.github.com/actions/setup-java/issues/1289">#1289</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/644a850ee5ec48d9b701b1ec84e256c2037e2b0e"><code>644a850</code></a>
Support exact Corretto release versions (<a
href="https://redirect.github.com/actions/setup-java/issues/1310">#1310</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/dade0c5eef3aef41e81b015c85cc2712dbbadf01"><code>dade0c5</code></a>
Save uncommitted changes (<a
href="https://redirect.github.com/actions/setup-java/issues/1312">#1312</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/ef0b92225551f5dea37b94738e0faca5c4cb1d50"><code>ef0b922</code></a>
Fix Liberica Java 25 release resolution (<a
href="https://redirect.github.com/actions/setup-java/issues/1313">#1313</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/e144521edf97fa9c192b287815d50ed4a4569b23"><code>e144521</code></a>
chore(deps): bump the monthly-npm-updates group with 12 updates (<a
href="https://redirect.github.com/actions/setup-java/issues/1309">#1309</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/8cd57eb6819cd70d5d2c135495e695b28eeffee0"><code>8cd57eb</code></a>
Update Undici to 6.29.1 (<a
href="https://redirect.github.com/actions/setup-java/issues/1308">#1308</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/816722acf8fd27c9d1e9ae6ee6085da07e0d44c1"><code>816722a</code></a>
Fix Liberica SDKMAN patch release resolution (<a
href="https://redirect.github.com/actions/setup-java/issues/1291">#1291</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-java/compare/b843ebf9b913146b38da2eaa7aeddf76074ae1ad...77dd5b2ce225ea11469928ac317850245a74ae78">compare
view</a></li>
</ul>
</details>
<br />

Updates `docker/login-action` from 4.7.0 to 4.8.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/docker/login-action/releases">docker/login-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.8.0</h2>
<ul>
<li>Set Docker Hub OIDC token lifetime default to 1 hour by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/login-action/pull/1070">docker/login-action#1070</a></li>
<li>Bump <code>@​aws-sdk/client-ecr</code> and
<code>@​aws-sdk/client-ecr-public</code> to 3.1161.0 in <a
href="https://redirect.github.com/docker/login-action/pull/1103">docker/login-action#1103</a></li>
<li>Bump <code>@​docker/actions-toolkit</code> from 0.107.0 to 0.109.0
in <a
href="https://redirect.github.com/docker/login-action/pull/1105">docker/login-action#1105</a></li>
<li>Bump vite from 7.3.6 to 7.3.7 in <a
href="https://redirect.github.com/docker/login-action/pull/1101">docker/login-action#1101</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/docker/login-action/compare/v4.7.0...v4.8.0">https://github.com/docker/login-action/compare/v4.7.0...v4.8.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/docker/login-action/commit/8aa5831fb8d48d8f76594c7ddde61ae58019f550"><code>8aa5831</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1105">#1105</a>
from docker/dependabot/npm_and_yarn/docker/actions-t...</li>
<li><a
href="https://github.com/docker/login-action/commit/043f81d4e05e27a19df9020f2e39dd823f4d2d8f"><code>043f81d</code></a>
[dependabot skip] chore: update generated content</li>
<li><a
href="https://github.com/docker/login-action/commit/3ff6998ba6383ce47260ffcee94d4c6842a8b82a"><code>3ff6998</code></a>
build(deps): bump <code>@​docker/actions-toolkit</code> from 0.107.0 to
0.109.0</li>
<li><a
href="https://github.com/docker/login-action/commit/694ef6a96b98401c14cb99361bb25142fc540e33"><code>694ef6a</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1103">#1103</a>
from docker/dependabot/npm_and_yarn/aws-sdk-dependen...</li>
<li><a
href="https://github.com/docker/login-action/commit/7c6e412a106e8281efb167d841ac30d9a1e148bc"><code>7c6e412</code></a>
[dependabot skip] chore: update generated content</li>
<li><a
href="https://github.com/docker/login-action/commit/aa2441f70facbd0c60782b7bfa92a9430707b661"><code>aa2441f</code></a>
build(deps): bump the aws-sdk-dependencies group across 1 directory with
2 up...</li>
<li><a
href="https://github.com/docker/login-action/commit/d6c10b0849c4d7c082f3e15f0d7dd2c5a3b6885a"><code>d6c10b0</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1106">#1106</a>
from docker/dependabot/github_actions/codeql-actions...</li>
<li><a
href="https://github.com/docker/login-action/commit/319f1ee2c2e4d3703fe262e3a6c99fa9ec1b66af"><code>319f1ee</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1104">#1104</a>
from docker/dependabot/github_actions/actions/setup-...</li>
<li><a
href="https://github.com/docker/login-action/commit/b483b7fe94742a2022eaca73acbef42f721e8ad0"><code>b483b7f</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1101">#1101</a>
from docker/dependabot/npm_and_yarn/vite-7.3.7</li>
<li><a
href="https://github.com/docker/login-action/commit/dc7d67cbf207b05c94d86fc176c0b8a3043322f0"><code>dc7d67c</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1070">#1070</a>
from crazy-max/increase-oidc-default-expiry</li>
<li>Additional commits viewable in <a
href="https://github.com/docker/login-action/compare/81c6f93d4bc991e510b342a00b419b3bb4efc5c6...8aa5831fb8d48d8f76594c7ddde61ae58019f550">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-12 14:16:56 +00:00
Floris Bruynoogheandramfox d18a684ec8 docs: add example for stream affinity (#4667)
## Description

This example uses a watcher for the paths to ensure the stream
affinity is always set correctly. There is no need for a separate
actor as watching the paths is already handled by iroh.

## API Changes

n/a

## Notes & open questions

- I removed the counting of stream frames on all paths. Mostly to save
  time as I was figuring this out, could add this again.
- This coordinates connection closure correctly.

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates following the [style guide], if relevant.
- [ ] Tests if relevant.
- [ ] All API changes documented.
- [ ] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Co-authored-by: ramfox <kasey@n0.computer>
2026-11-10 14:37:47 +00:00
Floris Bruynoogheandramfox 4d5b4b1d39 feat(iroh): expose noq::SendStream::set_affinity (#4654)
## Description

There is actually nothing to do for this. It is automatically
available. This just pulls from the noq branch. It should point to noq
main branch once it is merged there.

## API Changes

- `SendStream::set_affinity` re-exported from noq

## Notes & open questions

I'm not sure if this should get some extra iroh-specific docs or not?

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates following the [style guide], if relevant.
- [ ] Tests if relevant.
- [ ] All API changes documented.
- [ ] `cargo make` passes locally.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text

---------

Co-authored-by: ramfox <kasey@n0.computer>
2026-11-10 13:13:40 +00:00
dependabot[bot] a5e39c44d3 chore(deps): bump the github-actions group across 1 directory with 3 updates (#4663)
Bumps the github-actions group with 3 updates in the / directory:
[n0-computer/workflows/.github/workflows/minimal-crates.yaml](https://github.com/n0-computer/workflows),
[taiki-e/install-action](https://github.com/taiki-e/install-action) and
[docker/login-action](https://github.com/docker/login-action).

Updates `n0-computer/workflows/.github/workflows/minimal-crates.yaml`
from 1 to 2
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/n0-computer/workflows/commit/a52bc33bbea33b946494903381e866a0e9b6bf04"><code>a52bc33</code></a>
minimal-crates: blacksmith runners &amp; noq support (<a
href="https://redirect.github.com/n0-computer/workflows/issues/10">#10</a>)</li>
<li><a
href="https://github.com/n0-computer/workflows/commit/ff0d1010be12075c128b2586c06fa853d056f119"><code>ff0d101</code></a>
Use pinact, zizmor &amp; dependabot on this repo too (<a
href="https://redirect.github.com/n0-computer/workflows/issues/8">#8</a>)</li>
<li>See full diff in <a
href="https://github.com/n0-computer/workflows/compare/v1...v2">compare
view</a></li>
</ul>
</details>
<br />

Updates `taiki-e/install-action` from 2.87.30 to 2.88.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/releases">taiki-e/install-action's
releases</a>.</em></p>
<blockquote>
<h2>2.88.0</h2>
<ul>
<li>Support <code>similarity-rs</code>. (<a
href="https://redirect.github.com/taiki-e/install-action/pull/2017">#2017</a>,
thanks <a
href="https://github.com/HardMax71"><code>@​HardMax71</code></a>)</li>
</ul>
<h2>2.87.33</h2>
<ul>
<li>
<p>Update <code>vacuum@latest</code> to 0.35.4.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.6.</p>
</li>
<li>
<p>Update <code>trunk@latest</code> to 0.22.1.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.9.6.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.4.2.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.10.21.</p>
</li>
<li>
<p>Update <code>cargo-nextest@latest</code> to 0.9.150.</p>
</li>
<li>
<p>Update <code>cargo-about@latest</code> to 0.9.3.</p>
</li>
</ul>
<h2>2.87.32</h2>
<ul>
<li>
<p>Update <code>wild@latest</code> to 0.11.0.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.35.2.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.9.5.</p>
</li>
<li>
<p>Update <code>sccache@latest</code> to 0.19.0.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.4.1.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.10.19.</p>
</li>
<li>
<p>Update <code>knope@latest</code> to 0.23.2.</p>
</li>
<li>
<p>Update <code>dprint@latest</code> to 0.64.3.</p>
</li>
<li>
<p>Update <code>cargo-vet@latest</code> to 0.10.3.</p>
</li>
<li>
<p>Update <code>cargo-sort@latest</code> to 2.1.4.</p>
</li>
<li>
<p>Update <code>cargo-binstall@latest</code> to 1.26.1.</p>
</li>
<li>
<p>Update <code>biome@latest</code> to 2.6.3.</p>
</li>
</ul>
<h2>2.87.31</h2>
<ul>
<li>
<p>Downgrade <code>cargo-sort@latest</code> to 2.1.3.</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.35.0.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md">taiki-e/install-action's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this
file.</p>
<p>This project adheres to <a href="https://semver.org">Semantic
Versioning</a>.</p>
<!-- raw HTML omitted -->
<h2>[Unreleased]</h2>
<h2>[2.90.1] - 2026-11-04</h2>
<ul>
<li>
<p>Update <code>zizmor@latest</code> to 1.32.0.</p>
</li>
<li>
<p>Update <code>uv@latest</code> to 0.13.7.</p>
</li>
<li>
<p>Update <code>typos@latest</code> to 1.52.0.</p>
</li>
<li>
<p>Update <code>tombi@latest</code> to 1.9.9.</p>
</li>
<li>
<p>Update <code>syft@latest</code> to 1.56.0.</p>
</li>
<li>
<p>Update <code>mise@latest</code> to 2026.11.0.</p>
</li>
<li>
<p>Update <code>kache@latest</code> to 2.0.0.</p>
</li>
<li>
<p>Update <code>cargo-nextest@latest</code> to 0.9.151.</p>
</li>
</ul>
<h2>[2.90.0] - 2026-11-03</h2>
<ul>
<li>
<p>Add <code>fallback: skip</code> input option. This is similar to
<code>fallback: none</code> but skip unsupported tools instead of error.
(<a
href="https://redirect.github.com/taiki-e/install-action/issues/2052">#2052</a>)</p>
</li>
<li>
<p>Update <code>vacuum@latest</code> to 0.36.2.</p>
</li>
<li>
<p>Update <code>release-plz@latest</code> to 0.4.3.</p>
</li>
<li>
<p>Update <code>bpf-linker@latest</code> to 0.13.0.</p>
</li>
</ul>
<h2>[2.89.1] - 2026-11-02</h2>
<ul>
<li>
<p>Install <code>ld.mold</code> symlink when installing
<code>mold</code> on Linux. Previously, only <code>mold</code> binary
was installed. (<a
href="https://redirect.github.com/taiki-e/install-action/pull/2050">#2050</a>,
thanks <a
href="https://github.com/FirelightFlagboy"><code>@​FirelightFlagboy</code></a>)</p>
</li>
<li>
<p>Update <code>parse-dockerfile@latest</code> to 0.1.9.</p>
</li>
<li>
<p>Update <code>parse-changelog@latest</code> to 0.6.18.</p>
</li>
<li>
<p>Update <code>cargo-minimal-versions@latest</code> to 0.1.38.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/taiki-e/install-action/commit/86f7a0ffb25f40114606501a311ebcfaf882ea32"><code>86f7a0f</code></a>
Release 2.88.0</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/90d1803bbfd94c94c05ab55a315407bedff5285f"><code>90d1803</code></a>
Update changelog</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/73284604a3c53d7199bff672d8d6b2f2b84f2fc6"><code>7328460</code></a>
Support similarity-rs (<a
href="https://redirect.github.com/taiki-e/install-action/issues/2017">#2017</a>)</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/645d1ab48b3cb8591684a8b730b2ccf4cb3f9568"><code>645d1ab</code></a>
Release 2.87.33</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/4c6c821774f76b9411d0974794af51da9b181cf9"><code>4c6c821</code></a>
Update <code>vacuum@latest</code> to 0.35.4</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/2412e4dd7bfe88a37653b4cd6e7b11f3100fa27b"><code>2412e4d</code></a>
Update <code>uv@latest</code> to 0.13.6</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/d370c278805f6d2285530fbfa6a4c2887b0b6c13"><code>d370c27</code></a>
Update <code>trunk@latest</code> to 0.22.1</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/9145af1a5102891c3da858d184da5336dcad465d"><code>9145af1</code></a>
Update <code>tombi@latest</code> to 1.9.6</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/6b400b69a5e1404971ce6607bed6fea0f6966f80"><code>6b400b6</code></a>
Update <code>release-plz@latest</code> to 0.4.2</li>
<li><a
href="https://github.com/taiki-e/install-action/commit/bdef1945595ac603e5d82ba5dae4edef41837e93"><code>bdef194</code></a>
Update <code>mise@latest</code> to 2026.10.21</li>
<li>Additional commits viewable in <a
href="https://github.com/taiki-e/install-action/compare/a4d3f3f761dcd95cce1b72cb61cb6d1963438177...86f7a0ffb25f40114606501a311ebcfaf882ea32">compare
view</a></li>
</ul>
</details>
<br />

Updates `docker/login-action` from 4.6.0 to 4.7.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/docker/login-action/releases">docker/login-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.7.0</h2>
<ul>
<li>Preserve explicit ECR settings in <code>registry-auth</code> by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/login-action/pull/1089">docker/login-action#1089</a></li>
<li>Use registry hosts for scoped credentials by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/login-action/pull/1088">docker/login-action#1088</a></li>
<li>Raise Docker Hub OIDC max expiry to 6 hours by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/login-action/pull/1068">docker/login-action#1068</a></li>
<li>Log Docker Hub OIDC token exchange progress by <a
href="https://github.com/crazy-max"><code>@​crazy-max</code></a> in <a
href="https://redirect.github.com/docker/login-action/pull/1061">docker/login-action#1061</a></li>
<li>Bump <code>@​aws-sdk/client-ecr</code> and
<code>@​aws-sdk/client-ecr-public</code> to 3.1154.0 in <a
href="https://redirect.github.com/docker/login-action/pull/1093">docker/login-action#1093</a></li>
<li>Bump <code>@​docker/actions-toolkit</code> from 0.94.0 to 0.107.0 in
<a
href="https://redirect.github.com/docker/login-action/pull/1100">docker/login-action#1100</a></li>
<li>Bump <code>@​humanfs/node</code> from 0.16.7 to 0.16.8 in <a
href="https://redirect.github.com/docker/login-action/pull/1077">docker/login-action#1077</a></li>
<li>Bump csv-parse from 7.0.1 to 7.0.3 in <a
href="https://redirect.github.com/docker/login-action/pull/1078">docker/login-action#1078</a></li>
<li>Bump handlebars from 4.7.9 to 4.7.10 in <a
href="https://redirect.github.com/docker/login-action/pull/1091">docker/login-action#1091</a></li>
<li>Bump js-yaml from 5.2.2 to 5.5.0 in <a
href="https://redirect.github.com/docker/login-action/pull/1066">docker/login-action#1066</a></li>
<li>Bump postcss from 8.5.22 to 8.5.26 in <a
href="https://redirect.github.com/docker/login-action/pull/1071">docker/login-action#1071</a></li>
<li>Bump postcss-selector-parser from 7.1.1 to 7.1.6 in <a
href="https://redirect.github.com/docker/login-action/pull/1092">docker/login-action#1092</a></li>
<li>Bump source-map-js from 1.2.1 to 1.2.2 in <a
href="https://redirect.github.com/docker/login-action/pull/1090">docker/login-action#1090</a></li>
<li>Bump undici from 6.27.0 to 6.29.1 in <a
href="https://redirect.github.com/docker/login-action/pull/1085">docker/login-action#1085</a></li>
<li>Bump uuid from 14.0.1 to 14.0.3 in <a
href="https://redirect.github.com/docker/login-action/pull/1096">docker/login-action#1096</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/docker/login-action/compare/v4.6.0...v4.7.0">https://github.com/docker/login-action/compare/v4.6.0...v4.7.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/docker/login-action/commit/81c6f93d4bc991e510b342a00b419b3bb4efc5c6"><code>81c6f93</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1100">#1100</a>
from docker/dependabot/npm_and_yarn/docker/actions-t...</li>
<li><a
href="https://github.com/docker/login-action/commit/1b16c8d1815e1d951d87a3522ff48a76d073735a"><code>1b16c8d</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1096">#1096</a>
from docker/dependabot/npm_and_yarn/uuid-14.0.3</li>
<li><a
href="https://github.com/docker/login-action/commit/ac86b5e9e9d2db43b12b2d3afb9140a427d69d65"><code>ac86b5e</code></a>
[dependabot skip] chore: update generated content</li>
<li><a
href="https://github.com/docker/login-action/commit/1476d845f08dd8309a938959a280f2e23c0cba14"><code>1476d84</code></a>
build(deps): bump <code>@​docker/actions-toolkit</code> from 0.94.0 to
0.107.0</li>
<li><a
href="https://github.com/docker/login-action/commit/503cee68d85e94275776fcc6f5315f19207f7567"><code>503cee6</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1095">#1095</a>
from docker/dependabot/github_actions/actions/create...</li>
<li><a
href="https://github.com/docker/login-action/commit/f0935357f5c539aeb7ff6b886ba5434ab76e9de3"><code>f093535</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1099">#1099</a>
from docker/dependabot/github_actions/codecov/codeco...</li>
<li><a
href="https://github.com/docker/login-action/commit/d5ae7f188776587b12b77b45e29ea21332462da9"><code>d5ae7f1</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1098">#1098</a>
from docker/dependabot/github_actions/docker/bake-ac...</li>
<li><a
href="https://github.com/docker/login-action/commit/6f9750797f6e7186f18c069a7e97abc1dcf1006b"><code>6f97507</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1097">#1097</a>
from docker/dependabot/github_actions/docker/bake-ac...</li>
<li><a
href="https://github.com/docker/login-action/commit/006d61fa598847d65f6670d1569545fa2af9cf02"><code>006d61f</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1094">#1094</a>
from docker/dependabot/github_actions/codeql-actions...</li>
<li><a
href="https://github.com/docker/login-action/commit/93f5f522eea5eacabf35cc89b9d19ec23e742471"><code>93f5f52</code></a>
Merge pull request <a
href="https://redirect.github.com/docker/login-action/issues/1093">#1093</a>
from docker/dependabot/npm_and_yarn/aws-sdk-dependen...</li>
<li>Additional commits viewable in <a
href="https://github.com/docker/login-action/compare/dbcb813823bdd20940b903addbd779551569679f...81c6f93d4bc991e510b342a00b419b3bb4efc5c6">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-05 14:24:53 +00:00
ramfoxanddependabot[bot] 3e9a854c32 chore(*): dependabot updates (#4652)
This PR rolls up the following dependabot PRs:

- #4632: chore(deps): bump proptest from 1.11.0 to 1.12.0
- #4633: chore(deps): bump redb from 4.3.0 to 4.4.0
- #4634: chore(deps): bump the github-actions group across 1 directory
with 4 updates
- #4648: chore(deps): bump portmapper from 0.19.3 to 0.20.0
- #4649: chore(deps): bump base64-url from 3.0.4 to 4.0.0
- #4650: chore(deps): bump lru from 0.18.4 to 0.19.0

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-05 13:23:33 +00:00
Riccardo Spagni f350394938 fix(iroh-relay): keep proxy credentials out of the debug log (#4653)
## Description

Relay client: When dialing via an HTTP proxy whose URL includes the
user’s username and password, the password was included in debug-level
log output in two places: in the URL, and in the `Proxy-Authorization`
header in the `Debug` output of the `CONNECT` request.

This PR masks the password as `***` in the URL that is logged, while
leaving the username in place so the log line is still useful. It also
marks the `Proxy-Authorization` header value as sensitive, which causes
the `Debug` impl of the request to show `Sensitive` instead of the
base64-encoded username and password. This doesn’t change the bytes that
are sent over the wire. There’s a new test that dials the fake proxy
with a password and asserts that the output log contains `user:***@` and
does not contain either the password or its base64-encoded form.

This was reported privately first, and you asked for the fix as a public
PR, so here it is.

## API Changes

None.

## Notes & open questions

There are two other places the proxy URL is printed: in the `warn!` in
the pkarr client in `iroh/src/address_lookup/pkarr.rs` when the reqwest
client doesn’t accept the URL because of its scheme, and in the
`DialError::ProxyInvalidUrl` error. The latter cannot contain
credentials as far as I can tell, but if you’d like me to mask the URL
in those two places as well I can do that.

## Change checklist

- [x] Self-review.
- [ ] Documentation updates following the [style guide], if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [ ] `cargo make` passes locally. I ran `cargo fmt --check`, the
`client::tls` tests, and clippy with `-D warnings` for iroh-relay with
all, no and default features.

[style guide]:
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text
2026-11-02 16:28:34 +00:00
Marco Meyer-Conde    メイヤーマルコandFloris Bruynooghe 5b98ddbaeb feat(iroh-relay): keep the relay URL's path prefix (#4617)
<!-- Attention agents and contributors using AI, please see our AI
policy before opening a PR:
https://github.com/n0-computer/iroh/blob/main/AI_POLICY.md -->
<!-- Any PRs violating this policy will be closed. -->

<!-- As per our contributor guidelines, all PRs that do not link to an
issue with the label `ready-for-pr` will be closed:
https://github.com/n0-computer/iroh/blob/main/CONTRIBUTING.md -->

## Description

Fixes: #2440

* Adds `RELAY_RELATIVE_PATH` (`"relay"`) and `RELAY_PROBE_RELATIVE_PATH`
(`"ping"`), which join onto a relay URL that carries a path prefix
(`https://example.com/prefix/`) instead of landing on the host's root.
* `RELAY_PATH` and `RELAY_PROBE_PATH` keep their values and are
deprecated.
* The client and the HTTPS probe join the relative paths onto the relay
URL with `Url::join`; the relay server routes `/{RELAY_RELATIVE_PATH}`
and `/{RELAY_PROBE_RELATIVE_PATH}`.
* `RelayUrl`'s `From<Url>` (and so `FromStr` and `Deserialize`) adds a
trailing `/` to a path that lacks one, with an INFO message, so
`https://example.com/prefix` works too. `iroh-base` now depends on
`tracing` (with the `relay` feature).
* Relay URLs without a path behave as before.

## Breaking Changes

None.

## Notes & open questions

A `RelayUrl` without the trailing slash, serialised before this change,
gains it when read back.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.

---------

Co-authored-by: Floris Bruynooghe <flub@n0.computer>
2026-10-29 16:53:55 +00:00
Floris Bruynooghe ebdaaefecc chore: Update Makefile.toml to have a normal dev workflow (#4508)
## Description

This mimics the Makefile.toml from noq, which is very useful and we
can mention in the PR template.

## Breaking Changes

n/a

## Notes & open questions

n/a

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
- [x] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.
2026-10-28 13:38:21 +00:00
Asmir Avdicevic cf0d2b048b chore(ci): migrate CI runners mostly to blacksmith (#4635)
<!-- Attention agents and contributors using AI, please see our AI
policy before opening a PR:
https://github.com/n0-computer/iroh/blob/main/AI_POLICY.md -->
<!-- Any PRs violating this policy will be closed. -->

<!-- As per our contributor guidelines, all PRs that do not link to an
issue with the label `ready-for-pr` will be closed:
https://github.com/n0-computer/iroh/blob/main/CONTRIBUTING.md -->

## Description

We've trialed blacksmith long enough to be reasonably happy with it so
we're switching (most) to run on top of blacksmith so we can simplify
our pipeline and also release some of the load on the self hosted nodes
to serve other repos better.

Not all jobs have been transitioned, but they are not behind a picker
and are pinned to self hosted runners directly, mainly for deps reasons
(glibc versions and similar) or bugs we hit on blacksmith due to layered
hypervisors (android builds) or netsim which requires a stable env for
good reference numbers.

I also used the opportunity to beef up the nodes 1 notch to make the
experience smoother.

## API Changes

<!-- Optional, any API additions, deprecations or breaking changes,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
2026-10-22 15:24:42 +00:00
Floris Bruynooghe 0f9106731b chore: use new minimal-crates CI step (#4627)
## Description

- Use new minimal-crates CI step.
- Allow ref-pin for n0-computer actions and workflows.
- Move zizmor & pinact configs into .github

## API Changes

n/a

## Notes & open questions

n/a

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
2026-10-22 08:37:03 +00:00
Philipp Pohl-Krüger 9abdae460b feat(iroh-relay): Fix potentially leaking connections during handshake (#4621)
## Description

Follow up from #4612, I checked more cases where we are potentially
leaking connections.
Turns out there's another case where it's possible during the relay
handshake to circumvent the establish timeout.
This fixes that case, while trying to keep API compatibility.
Also adds a `timeouts.rs` test file that checks various places where
timeouts should be applied.

## API Changes

- Added `RelayServiceWithNotify::with_timeout` for configuring the
timeout in the relay service. `RelayServiceWithNotify::new` uses a
default timeout value of 30s.

## Notes & open questions

I had to add another API, otherwise the public function
`handle_connection`, which takes the establish timeout as a parameter,
can't forward the desired timeout to the `RelayServiceWithNotify`.

We probably have to wait to merge this until after today's release due
to the API breaking change.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
2026-10-22 07:18:55 +00:00
ramfox d6c6963b96 chore: Release v1.4.1 2026-10-21 13:06:43 -04:00
ramfox 60259e1d8e chore: additional git-cliff fixes 2026-10-21 13:01:19 -04:00
ramfox efcb1c3f98 chore: fix changelog (#4628)
We had stray headers throughout the file. I thought I fixed this last time, but thankfully the latest version of git-cliff (`2.14`) adds a tag in the file to ensure this does not keep happening.
2026-10-21 12:04:24 -04:00
Floris Bruynooghe 467bf239ca test(iroh): more generous timeouts for slow CI boxes (#4626)
## Description

This test keeps being flaky. We should not have flaky tests. Bad test.

## API Changes

n/a

## Notes & open questions

Can't believe I've lived with this for so long. Embarrassing.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
2026-10-21 14:06:18 +00:00