Skip to content

fix(agent): finish background work before integration cleanup - #2464

Merged
henrygd merged 11 commits into
henrygd:mainfrom
user01010111:contrib/agent-integration
Oct 13, 2026
Merged

henrygd merged 11 commits into
henrygd:mainfrom
user01010111:contrib/agent-integration

Conversation

@user01010111

@user01010111 user01010111 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Give the integration fixtures a cancellable agent lifetime and join their agents before hub cleanup. Pending reconnects, dials and WebSocket upgrades now follow that lifetime; tickers stop and callbacks can finish during shutdown. Public startup retains signal handling.

Read connection state through the locked accessor, test the duplicate-reconnect guard with a known in-flight attempt, and prepare SSH listeners before connecting. Server fixtures use allocated ports and stop and join each listener; the rejected-key case now authorises a different key from the client. Disable package-update probes in the three connection fixtures using the existing interval option.

Cancellation regressions cover listener reuse, reconnect delay and an unfinished HTTP upgrade. All 36 affected agent test groups and all three hub integration tests pass three times under the race detector on Linux. Vet, formatting and the production agent build pass. The branch includes merged #2441 and preserves its authenticated SSH session tracking, WebSocket preference and persistent SSH fallback listener.

@user01010111
user01010111 force-pushed the contrib/agent-integration branch from df22bf6 to 53c42ff Compare September 29, 2026 00:17
@user01010111
user01010111 marked this pull request as ready for review October 2, 2026 10:28
@user01010111
user01010111 requested a review from henrygd as a code owner October 2, 2026 10:28
Agent.Start and ConnectionManager.Start now accept a context directly,
replacing the unexported start variants and the StartForTesting helper.
Go 1.23+ collects unreferenced timers, so explicit Stop calls are unnecessary.

@henrygd henrygd left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you!

@henrygd
henrygd merged commit 4aee166 into henrygd:main Oct 13, 2026
@user01010111
user01010111 deleted the contrib/agent-integration branch October 13, 2026 20:28
JuliusFreudenberger pushed a commit to JuliusFreudenberger/nix-config that referenced this pull request Oct 22, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [henrygd/beszel](https://github.com/henrygd/beszel) | patch | `0.21.0` → `0.21.1` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/12) for more information.

---

### Release Notes

<details>
<summary>henrygd/beszel (henrygd/beszel)</summary>

### [`v0.21.1`](https://github.com/henrygd/beszel/releases/tag/v0.21.1)

[Compare Source](henrygd/beszel@v0.21.0...v0.21.1)

#### What's Changed

For developers using the agent as a Go package, `Agent.Start` now requires a `context.Context`.

For authors of integrations, existing memory fields other than memory percentage are deprecated in favor of new fields which provide raw byte values. The deprecated fields are still populated, but will be removed from the API in a future version.

```go
type Stats struct {
  // Deprecated fields (populated on hubs <= 0.21.1; will be removed in a future version)
	Mem            float64     `json:"m" cbor:"2,keyasint"`  // Deprecated: GB, use MemBytes. Memory GB fields are kept for older hubs and integrations.
	MaxMem         float64     `json:"mm,omitzero" cbor:"-"` // Deprecated: GB, use MaxMemBytes.
	MemUsed        float64     `json:"mu" cbor:"3,keyasint"` // Deprecated: GB, use MemBytes.
	MemBuffCache   float64     `json:"mb" cbor:"5,keyasint"` // Deprecated: GB, use MemBytes.
	MemZfsArc      float64     `json:"mz,omitzero" cbor:"6,keyasint,omitempty"` // Deprecated: GB, use MemBytes.
	Swap           float64     `json:"s,omitzero" cbor:"7,keyasint,omitempty"`  // Deprecated: GB, use SwapBytes.
	SwapUsed       float64     `json:"su,omitzero" cbor:"8,keyasint,omitempty"` // Deprecated: GB, use SwapBytes.
  // New fields (populated on hub version 0.21.1+ for all agents)
	MemBytes       [4]uint64   `json:"mem,omitzero" cbor:"41,keyasint,omitzero"`  // [total, used, buff/cache, zfs arc] bytes
	MaxMemBytes    uint64      `json:"memm,omitzero" cbor:"-"`                    // max used memory bytes
	SwapBytes      [2]uint64   `json:"swap,omitzero" cbor:"42,keyasint,omitzero"` // [total, used] bytes
}
```

- Add TLS certificate expiry alert for network monitors ([#&#8203;2627](henrygd/beszel#2627))
- Add opt-in cgroup CPU and memory accounting ([#&#8203;2505](henrygd/beszel#2505))
- Add pagination with a shared rows-per-page setting to data tables ([#&#8203;2444](henrygd/beszel#2444))
- Add IRQ, SoftIRQ and Nice to the CPU usage breakdown ([#&#8203;2647](henrygd/beszel#2647))
- Add `OAUTH_DEFAULT_USER_ROLE` environment variable to set the role of new OAuth users ([#&#8203;2516](henrygd/beszel#2516))
- Add `HUB_HEADERS` environment variable to set custom WebSocket headers on the agent ([#&#8203;2585](henrygd/beszel#2585))
- Add option to ignore TLS errors for HTTPS monitors ([#&#8203;2500](henrygd/beszel#2500))
- Add zpool status messages to ZFS pool health ([#&#8203;2509](henrygd/beszel#2509))
- Add CPU socket count to the system page ([#&#8203;2646](henrygd/beszel#2646))
- Add `CONTAINER_NAME_LABEL` environment variable to name containers from a label ([#&#8203;2644](henrygd/beszel#2644))
- Add `env` and `envFrom` options to the Helm chart ([#&#8203;2626](henrygd/beszel#2626))
- Add Brazilian Portuguese (pt-BR) and Catalan translations ([#&#8203;2635](henrygd/beszel#2635))
- Add xbps support to package update checks ([#&#8203;2522](henrygd/beszel#2522))
- Change agent tokens to be masked until explicitly revealed ([#&#8203;2625](henrygd/beszel#2625))
- Change the user created from `USER_EMAIL` to be an admin ([#&#8203;2516](henrygd/beszel#2516))
- Fix users being able to reassign record ownership through updates ([#&#8203;2632](henrygd/beszel#2632))
- Fix dashboard universal tokens appearing in request URLs ([#&#8203;2630](henrygd/beszel#2630))
- Fix fan sensor reads blocking collection indefinitely ([#&#8203;2638](henrygd/beszel#2638), [#&#8203;2639](henrygd/beszel#2639))
- Fix HTTPS monitor certificates not being re-checked (now hourly) ([#&#8203;2673](henrygd/beszel#2673))
- Fix scheduled monitor probes running while the hub isn't requesting stats
- Fix sensor names being changed by exclude filters ([#&#8203;2645](henrygd/beszel#2645))
- Fix Libre Hardware Monitor helper stopping after sensor failures ([#&#8203;2624](henrygd/beszel#2624))
- Fix arm/v6 Docker images being built with the wrong GOARM setting ([#&#8203;2637](henrygd/beszel#2637))
- Fix numbers not using the app language for formatting ([#&#8203;2621](henrygd/beszel#2621))
- Fix systems table showing no loading spinner until systems are loaded
- Fix btrfs pool health when sysfs device info is unavailable ([#&#8203;2489](henrygd/beszel#2489))
- Fix ZFS pool capacity to use the root dataset ([#&#8203;2540](henrygd/beszel#2540))
- Fix package update checks under the systemd sandbox ([#&#8203;2538](henrygd/beszel#2538))
- Fix systemd service logs missing output from services running as a non-system user ([#&#8203;2553](henrygd/beszel#2553))
- Fix systemd monitoring starting when systemd is not available on D-Bus ([#&#8203;2573](henrygd/beszel#2573))
- Fix hub dropping slow agent connections between polls ([#&#8203;2435](henrygd/beszel#2435))
- Fix hub keeping connections open to unresponsive agents
- Fix agent reconnect and shutdown handling ([#&#8203;2464](henrygd/beszel#2464))
- Fix network counter underflow when interfaces are removed or containers restart ([#&#8203;2574](henrygd/beszel#2574))
- Fix host CPU usage after a counter rollback
- Fix larger stored stats records caused by zero-value fields
- Fix legacy hubs receiving a duplicate stats payload ([#&#8203;2529](henrygd/beszel#2529))
- Fix NVIDIA GPU power when power usage is unsupported by falling back to NVML power samples ([#&#8203;2550](henrygd/beszel#2550))
- Fix zero GPU package power being stored ([#&#8203;2551](henrygd/beszel#2551))
- Fix `intel_gpu_top` parsing when samples are missing commas ([#&#8203;2589](henrygd/beszel#2589))
- Fix NVMe unsafe shutdowns counter overflowing ([#&#8203;2583](henrygd/beszel#2583))
- Fix NVMe namespace fallbacks being lost on rescan ([#&#8203;2597](henrygd/beszel#2597))
- Fix handling of cached NVMe failures and empty SMART responses
- Fix zypper's apt-get wrapper being detected as apt ([#&#8203;2523](henrygd/beszel#2523))
- Fix updater stopping when the system record lookup fails ([#&#8203;2588](henrygd/beszel#2588))
- Fix systems table losing the update count when a host is down ([#&#8203;2559](henrygd/beszel#2559))
- Fix latency tolerance in 1m realtime charts ([#&#8203;2521](henrygd/beszel#2521))
- Fix charts hiding isolated points and spinning endlessly on empty values ([#&#8203;2514](henrygd/beszel#2514))
- Fix live metrics subscriptions not ending after leaving the 1m view ([#&#8203;2599](henrygd/beszel#2599))
- Fix sorting of monitor targets without a URL scheme and show HTTPS in the badge ([#&#8203;2501](henrygd/beszel#2501))
- Fix lazy loading of the systemd table ([#&#8203;2602](henrygd/beszel#2602))
- Fix system dialog layout shifting between tabs ([#&#8203;2571](henrygd/beszel#2571))
- Improve accessibility and fix login page translation ([#&#8203;2604](henrygd/beszel#2604))
- Update Go to 1.27.2 and Go dependencies
- Update npm packages with security alerts ([#&#8203;2575](henrygd/beszel#2575))

#### New Contributors

- [@&#8203;juliolins](https://github.com/juliolins) made their first contribution in [#&#8203;2525](henrygd/beszel#2525)
- [@&#8203;sgpublic](https://github.com/sgpublic) made their first contribution in [#&#8203;2505](henrygd/beszel#2505)
- [@&#8203;toomyem](https://github.com/toomyem) made their first contribution in [#&#8203;2522](henrygd/beszel#2522)
- [@&#8203;floatwoozy](https://github.com/floatwoozy) made their first contribution in [#&#8203;2576](henrygd/beszel#2576)
- [@&#8203;TheNetherWatcher](https://github.com/TheNetherWatcher) made their first contribution in [#&#8203;2583](henrygd/beszel#2583)
- [@&#8203;Mr-Sheep](https://github.com/Mr-Sheep) made their first contribution in [#&#8203;2585](henrygd/beszel#2585)
- [@&#8203;gadgilrajeev](https://github.com/gadgilrajeev) made their first contribution in [#&#8203;2551](henrygd/beszel#2551)
- [@&#8203;kenny-ish](https://github.com/kenny-ish) made their first contribution in [#&#8203;2540](henrygd/beszel#2540)
- [@&#8203;NielDB](https://github.com/NielDB) made their first contribution in [#&#8203;2626](henrygd/beszel#2626)
- [@&#8203;daniyyell-dev](https://github.com/daniyyell-dev) made their first contribution in [#&#8203;2625](henrygd/beszel#2625)
- [@&#8203;JimmyLiuJia](https://github.com/JimmyLiuJia) made their first contribution in [#&#8203;2624](henrygd/beszel#2624)
- [@&#8203;mikhailbogdan-droid](https://github.com/mikhailbogdan-droid) made their first contribution in [#&#8203;2627](henrygd/beszel#2627)
- [@&#8203;ErnestoMuniz](https://github.com/ErnestoMuniz) made their first contribution in [#&#8203;2644](henrygd/beszel#2644)
- [@&#8203;vincentfranstyo](https://github.com/vincentfranstyo) made their first contribution in [#&#8203;2646](henrygd/beszel#2646)
- [@&#8203;matheuseduardo](https://github.com/matheuseduardo) made their first contribution in [#&#8203;2635](henrygd/beszel#2635)

**Full Changelog**: <henrygd/beszel@v0.21.0...v0.21.1>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC43OS4yIiwidXBkYXRlZEluVmVyIjoiNDQuNzkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.jfreudenberger.de/JuliusFreudenberger/nix-config/pulls/72
ivanch added a commit to ivanch/haven that referenced this pull request Oct 25, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/henrygd/beszel/beszel](https://github.com/henrygd/beszel) | patch | `0.21.0` → `0.21.1` |

---

### Release Notes

<details>
<summary>henrygd/beszel (ghcr.io/henrygd/beszel/beszel)</summary>

### [`v0.21.1`](https://github.com/henrygd/beszel/releases/tag/v0.21.1)

[Compare Source](henrygd/beszel@v0.21.0...v0.21.1)

#### What's Changed

For developers using the agent as a Go package, `Agent.Start` now requires a `context.Context`.

For authors of integrations, existing memory fields other than memory percentage are deprecated in favor of new fields which provide raw byte values. The deprecated fields are still populated, but will be removed from the API in a future version.

```go
type Stats struct {
  // Deprecated fields (populated on hubs <= 0.21.1; will be removed in a future version)
	Mem            float64     `json:"m" cbor:"2,keyasint"`  // Deprecated: GB, use MemBytes. Memory GB fields are kept for older hubs and integrations.
	MaxMem         float64     `json:"mm,omitzero" cbor:"-"` // Deprecated: GB, use MaxMemBytes.
	MemUsed        float64     `json:"mu" cbor:"3,keyasint"` // Deprecated: GB, use MemBytes.
	MemBuffCache   float64     `json:"mb" cbor:"5,keyasint"` // Deprecated: GB, use MemBytes.
	MemZfsArc      float64     `json:"mz,omitzero" cbor:"6,keyasint,omitempty"` // Deprecated: GB, use MemBytes.
	Swap           float64     `json:"s,omitzero" cbor:"7,keyasint,omitempty"`  // Deprecated: GB, use SwapBytes.
	SwapUsed       float64     `json:"su,omitzero" cbor:"8,keyasint,omitempty"` // Deprecated: GB, use SwapBytes.
  // New fields (populated on hub version 0.21.1+ for all agents)
	MemBytes       [4]uint64   `json:"mem,omitzero" cbor:"41,keyasint,omitzero"`  // [total, used, buff/cache, zfs arc] bytes
	MaxMemBytes    uint64      `json:"memm,omitzero" cbor:"-"`                    // max used memory bytes
	SwapBytes      [2]uint64   `json:"swap,omitzero" cbor:"42,keyasint,omitzero"` // [total, used] bytes
}
```

- Add TLS certificate expiry alert for network monitors ([#&#8203;2627](henrygd/beszel#2627))
- Add opt-in cgroup CPU and memory accounting ([#&#8203;2505](henrygd/beszel#2505))
- Add pagination with a shared rows-per-page setting to data tables ([#&#8203;2444](henrygd/beszel#2444))
- Add IRQ, SoftIRQ and Nice to the CPU usage breakdown ([#&#8203;2647](henrygd/beszel#2647))
- Add `OAUTH_DEFAULT_USER_ROLE` environment variable to set the role of new OAuth users ([#&#8203;2516](henrygd/beszel#2516))
- Add `HUB_HEADERS` environment variable to set custom WebSocket headers on the agent ([#&#8203;2585](henrygd/beszel#2585))
- Add option to ignore TLS errors for HTTPS monitors ([#&#8203;2500](henrygd/beszel#2500))
- Add zpool status messages to ZFS pool health ([#&#8203;2509](henrygd/beszel#2509))
- Add CPU socket count to the system page ([#&#8203;2646](henrygd/beszel#2646))
- Add `CONTAINER_NAME_LABEL` environment variable to name containers from a label ([#&#8203;2644](henrygd/beszel#2644))
- Add `env` and `envFrom` options to the Helm chart ([#&#8203;2626](henrygd/beszel#2626))
- Add Brazilian Portuguese (pt-BR) and Catalan translations ([#&#8203;2635](henrygd/beszel#2635))
- Add xbps support to package update checks ([#&#8203;2522](henrygd/beszel#2522))
- Change agent tokens to be masked until explicitly revealed ([#&#8203;2625](henrygd/beszel#2625))
- Change the user created from `USER_EMAIL` to be an admin ([#&#8203;2516](henrygd/beszel#2516))
- Fix users being able to reassign record ownership through updates ([#&#8203;2632](henrygd/beszel#2632))
- Fix dashboard universal tokens appearing in request URLs ([#&#8203;2630](henrygd/beszel#2630))
- Fix fan sensor reads blocking collection indefinitely ([#&#8203;2638](henrygd/beszel#2638), [#&#8203;2639](henrygd/beszel#2639))
- Fix HTTPS monitor certificates not being re-checked (now hourly) ([#&#8203;2673](henrygd/beszel#2673))
- Fix scheduled monitor probes running while the hub isn't requesting stats
- Fix sensor names being changed by exclude filters ([#&#8203;2645](henrygd/beszel#2645))
- Fix Libre Hardware Monitor helper stopping after sensor failures ([#&#8203;2624](henrygd/beszel#2624))
- Fix arm/v6 Docker images being built with the wrong GOARM setting ([#&#8203;2637](henrygd/beszel#2637))
- Fix numbers not using the app language for formatting ([#&#8203;2621](henrygd/beszel#2621))
- Fix systems table showing no loading spinner until systems are loaded
- Fix btrfs pool health when sysfs device info is unavailable ([#&#8203;2489](henrygd/beszel#2489))
- Fix ZFS pool capacity to use the root dataset ([#&#8203;2540](henrygd/beszel#2540))
- Fix package update checks under the systemd sandbox ([#&#8203;2538](henrygd/beszel#2538))
- Fix systemd service logs missing output from services running as a non-system user ([#&#8203;2553](henrygd/beszel#2553))
- Fix systemd monitoring starting when systemd is not available on D-Bus ([#&#8203;2573](henrygd/beszel#2573))
- Fix hub dropping slow agent connections between polls ([#&#8203;2435](henrygd/beszel#2435))
- Fix hub keeping connections open to unresponsive agents
- Fix agent reconnect and shutdown handling ([#&#8203;2464](henrygd/beszel#2464))
- Fix network counter underflow when interfaces are removed or containers restart ([#&#8203;2574](henrygd/beszel#2574))
- Fix host CPU usage after a counter rollback
- Fix larger stored stats records caused by zero-value fields
- Fix legacy hubs receiving a duplicate stats payload ([#&#8203;2529](henrygd/beszel#2529))
- Fix NVIDIA GPU power when power usage is unsupported by falling back to NVML power samples ([#&#8203;2550](henrygd/beszel#2550))
- Fix zero GPU package power being stored ([#&#8203;2551](henrygd/beszel#2551))
- Fix `intel_gpu_top` parsing when samples are missing commas ([#&#8203;2589](henrygd/beszel#2589))
- Fix NVMe unsafe shutdowns counter overflowing ([#&#8203;2583](henrygd/beszel#2583))
- Fix NVMe namespace fallbacks being lost on rescan ([#&#8203;2597](henrygd/beszel#2597))
- Fix handling of cached NVMe failures and empty SMART responses
- Fix zypper's apt-get wrapper being detected as apt ([#&#8203;2523](henrygd/beszel#2523))
- Fix updater stopping when the system record lookup fails ([#&#8203;2588](henrygd/beszel#2588))
- Fix systems table losing the update count when a host is down ([#&#8203;2559](henrygd/beszel#2559))
- Fix latency tolerance in 1m realtime charts ([#&#8203;2521](henrygd/beszel#2521))
- Fix charts hiding isolated points and spinning endlessly on empty values ([#&#8203;2514](henrygd/beszel#2514))
- Fix live metrics subscriptions not ending after leaving the 1m view ([#&#8203;2599](henrygd/beszel#2599))
- Fix sorting of monitor targets without a URL scheme and show HTTPS in the badge ([#&#8203;2501](henrygd/beszel#2501))
- Fix lazy loading of the systemd table ([#&#8203;2602](henrygd/beszel#2602))
- Fix system dialog layout shifting between tabs ([#&#8203;2571](henrygd/beszel#2571))
- Improve accessibility and fix login page translation ([#&#8203;2604](henrygd/beszel#2604))
- Update Go to 1.27.2 and Go dependencies
- Update npm packages with security alerts ([#&#8203;2575](henrygd/beszel#2575))

#### New Contributors

- [@&#8203;juliolins](https://github.com/juliolins) made their first contribution in [#&#8203;2525](henrygd/beszel#2525)
- [@&#8203;sgpublic](https://github.com/sgpublic) made their first contribution in [#&#8203;2505](henrygd/beszel#2505)
- [@&#8203;toomyem](https://github.com/toomyem) made their first contribution in [#&#8203;2522](henrygd/beszel#2522)
- [@&#8203;floatwoozy](https://github.com/floatwoozy) made their first contribution in [#&#8203;2576](henrygd/beszel#2576)
- [@&#8203;TheNetherWatcher](https://github.com/TheNetherWatcher) made their first contribution in [#&#8203;2583](henrygd/beszel#2583)
- [@&#8203;Mr-Sheep](https://github.com/Mr-Sheep) made their first contribution in [#&#8203;2585](henrygd/beszel#2585)
- [@&#8203;gadgilrajeev](https://github.com/gadgilrajeev) made their first contribution in [#&#8203;2551](henrygd/beszel#2551)
- [@&#8203;kenny-ish](https://github.com/kenny-ish) made their first contribution in [#&#8203;2540](henrygd/beszel#2540)
- [@&#8203;NielDB](https://github.com/NielDB) made their first contribution in [#&#8203;2626](henrygd/beszel#2626)
- [@&#8203;daniyyell-dev](https://github.com/daniyyell-dev) made their first contribution in [#&#8203;2625](henrygd/beszel#2625)
- [@&#8203;JimmyLiuJia](https://github.com/JimmyLiuJia) made their first contribution in [#&#8203;2624](henrygd/beszel#2624)
- [@&#8203;mikhailbogdan-droid](https://github.com/mikhailbogdan-droid) made their first contribution in [#&#8203;2627](henrygd/beszel#2627)
- [@&#8203;ErnestoMuniz](https://github.com/ErnestoMuniz) made their first contribution in [#&#8203;2644](henrygd/beszel#2644)
- [@&#8203;vincentfranstyo](https://github.com/vincentfranstyo) made their first contribution in [#&#8203;2646](henrygd/beszel#2646)
- [@&#8203;matheuseduardo](https://github.com/matheuseduardo) made their first contribution in [#&#8203;2635](henrygd/beszel#2635)

**Full Changelog**: <henrygd/beszel@v0.21.0...v0.21.1>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Reviewed-on: https://git.ivanch.me/ivanch/haven/pulls/34
ivanch added a commit to ivanch/haven that referenced this pull request Oct 25, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [henrygd/beszel-agent](https://github.com/henrygd/beszel) | patch | `0.21.0` → `0.21.1` |

---

### Release Notes

<details>
<summary>henrygd/beszel (henrygd/beszel-agent)</summary>

### [`v0.21.1`](https://github.com/henrygd/beszel/releases/tag/v0.21.1)

[Compare Source](henrygd/beszel@v0.21.0...v0.21.1)

#### What's Changed

For developers using the agent as a Go package, `Agent.Start` now requires a `context.Context`.

For authors of integrations, existing memory fields other than memory percentage are deprecated in favor of new fields which provide raw byte values. The deprecated fields are still populated, but will be removed from the API in a future version.

```go
type Stats struct {
  // Deprecated fields (populated on hubs <= 0.21.1; will be removed in a future version)
	Mem            float64     `json:"m" cbor:"2,keyasint"`  // Deprecated: GB, use MemBytes. Memory GB fields are kept for older hubs and integrations.
	MaxMem         float64     `json:"mm,omitzero" cbor:"-"` // Deprecated: GB, use MaxMemBytes.
	MemUsed        float64     `json:"mu" cbor:"3,keyasint"` // Deprecated: GB, use MemBytes.
	MemBuffCache   float64     `json:"mb" cbor:"5,keyasint"` // Deprecated: GB, use MemBytes.
	MemZfsArc      float64     `json:"mz,omitzero" cbor:"6,keyasint,omitempty"` // Deprecated: GB, use MemBytes.
	Swap           float64     `json:"s,omitzero" cbor:"7,keyasint,omitempty"`  // Deprecated: GB, use SwapBytes.
	SwapUsed       float64     `json:"su,omitzero" cbor:"8,keyasint,omitempty"` // Deprecated: GB, use SwapBytes.
  // New fields (populated on hub version 0.21.1+ for all agents)
	MemBytes       [4]uint64   `json:"mem,omitzero" cbor:"41,keyasint,omitzero"`  // [total, used, buff/cache, zfs arc] bytes
	MaxMemBytes    uint64      `json:"memm,omitzero" cbor:"-"`                    // max used memory bytes
	SwapBytes      [2]uint64   `json:"swap,omitzero" cbor:"42,keyasint,omitzero"` // [total, used] bytes
}
```

- Add TLS certificate expiry alert for network monitors ([#&#8203;2627](henrygd/beszel#2627))
- Add opt-in cgroup CPU and memory accounting ([#&#8203;2505](henrygd/beszel#2505))
- Add pagination with a shared rows-per-page setting to data tables ([#&#8203;2444](henrygd/beszel#2444))
- Add IRQ, SoftIRQ and Nice to the CPU usage breakdown ([#&#8203;2647](henrygd/beszel#2647))
- Add `OAUTH_DEFAULT_USER_ROLE` environment variable to set the role of new OAuth users ([#&#8203;2516](henrygd/beszel#2516))
- Add `HUB_HEADERS` environment variable to set custom WebSocket headers on the agent ([#&#8203;2585](henrygd/beszel#2585))
- Add option to ignore TLS errors for HTTPS monitors ([#&#8203;2500](henrygd/beszel#2500))
- Add zpool status messages to ZFS pool health ([#&#8203;2509](henrygd/beszel#2509))
- Add CPU socket count to the system page ([#&#8203;2646](henrygd/beszel#2646))
- Add `CONTAINER_NAME_LABEL` environment variable to name containers from a label ([#&#8203;2644](henrygd/beszel#2644))
- Add `env` and `envFrom` options to the Helm chart ([#&#8203;2626](henrygd/beszel#2626))
- Add Brazilian Portuguese (pt-BR) and Catalan translations ([#&#8203;2635](henrygd/beszel#2635))
- Add xbps support to package update checks ([#&#8203;2522](henrygd/beszel#2522))
- Change agent tokens to be masked until explicitly revealed ([#&#8203;2625](henrygd/beszel#2625))
- Change the user created from `USER_EMAIL` to be an admin ([#&#8203;2516](henrygd/beszel#2516))
- Fix users being able to reassign record ownership through updates ([#&#8203;2632](henrygd/beszel#2632))
- Fix dashboard universal tokens appearing in request URLs ([#&#8203;2630](henrygd/beszel#2630))
- Fix fan sensor reads blocking collection indefinitely ([#&#8203;2638](henrygd/beszel#2638), [#&#8203;2639](henrygd/beszel#2639))
- Fix HTTPS monitor certificates not being re-checked (now hourly) ([#&#8203;2673](henrygd/beszel#2673))
- Fix scheduled monitor probes running while the hub isn't requesting stats
- Fix sensor names being changed by exclude filters ([#&#8203;2645](henrygd/beszel#2645))
- Fix Libre Hardware Monitor helper stopping after sensor failures ([#&#8203;2624](henrygd/beszel#2624))
- Fix arm/v6 Docker images being built with the wrong GOARM setting ([#&#8203;2637](henrygd/beszel#2637))
- Fix numbers not using the app language for formatting ([#&#8203;2621](henrygd/beszel#2621))
- Fix systems table showing no loading spinner until systems are loaded
- Fix btrfs pool health when sysfs device info is unavailable ([#&#8203;2489](henrygd/beszel#2489))
- Fix ZFS pool capacity to use the root dataset ([#&#8203;2540](henrygd/beszel#2540))
- Fix package update checks under the systemd sandbox ([#&#8203;2538](henrygd/beszel#2538))
- Fix systemd service logs missing output from services running as a non-system user ([#&#8203;2553](henrygd/beszel#2553))
- Fix systemd monitoring starting when systemd is not available on D-Bus ([#&#8203;2573](henrygd/beszel#2573))
- Fix hub dropping slow agent connections between polls ([#&#8203;2435](henrygd/beszel#2435))
- Fix hub keeping connections open to unresponsive agents
- Fix agent reconnect and shutdown handling ([#&#8203;2464](henrygd/beszel#2464))
- Fix network counter underflow when interfaces are removed or containers restart ([#&#8203;2574](henrygd/beszel#2574))
- Fix host CPU usage after a counter rollback
- Fix larger stored stats records caused by zero-value fields
- Fix legacy hubs receiving a duplicate stats payload ([#&#8203;2529](henrygd/beszel#2529))
- Fix NVIDIA GPU power when power usage is unsupported by falling back to NVML power samples ([#&#8203;2550](henrygd/beszel#2550))
- Fix zero GPU package power being stored ([#&#8203;2551](henrygd/beszel#2551))
- Fix `intel_gpu_top` parsing when samples are missing commas ([#&#8203;2589](henrygd/beszel#2589))
- Fix NVMe unsafe shutdowns counter overflowing ([#&#8203;2583](henrygd/beszel#2583))
- Fix NVMe namespace fallbacks being lost on rescan ([#&#8203;2597](henrygd/beszel#2597))
- Fix handling of cached NVMe failures and empty SMART responses
- Fix zypper's apt-get wrapper being detected as apt ([#&#8203;2523](henrygd/beszel#2523))
- Fix updater stopping when the system record lookup fails ([#&#8203;2588](henrygd/beszel#2588))
- Fix systems table losing the update count when a host is down ([#&#8203;2559](henrygd/beszel#2559))
- Fix latency tolerance in 1m realtime charts ([#&#8203;2521](henrygd/beszel#2521))
- Fix charts hiding isolated points and spinning endlessly on empty values ([#&#8203;2514](henrygd/beszel#2514))
- Fix live metrics subscriptions not ending after leaving the 1m view ([#&#8203;2599](henrygd/beszel#2599))
- Fix sorting of monitor targets without a URL scheme and show HTTPS in the badge ([#&#8203;2501](henrygd/beszel#2501))
- Fix lazy loading of the systemd table ([#&#8203;2602](henrygd/beszel#2602))
- Fix system dialog layout shifting between tabs ([#&#8203;2571](henrygd/beszel#2571))
- Improve accessibility and fix login page translation ([#&#8203;2604](henrygd/beszel#2604))
- Update Go to 1.27.2 and Go dependencies
- Update npm packages with security alerts ([#&#8203;2575](henrygd/beszel#2575))

#### New Contributors

- [@&#8203;juliolins](https://github.com/juliolins) made their first contribution in [#&#8203;2525](henrygd/beszel#2525)
- [@&#8203;sgpublic](https://github.com/sgpublic) made their first contribution in [#&#8203;2505](henrygd/beszel#2505)
- [@&#8203;toomyem](https://github.com/toomyem) made their first contribution in [#&#8203;2522](henrygd/beszel#2522)
- [@&#8203;floatwoozy](https://github.com/floatwoozy) made their first contribution in [#&#8203;2576](henrygd/beszel#2576)
- [@&#8203;TheNetherWatcher](https://github.com/TheNetherWatcher) made their first contribution in [#&#8203;2583](henrygd/beszel#2583)
- [@&#8203;Mr-Sheep](https://github.com/Mr-Sheep) made their first contribution in [#&#8203;2585](henrygd/beszel#2585)
- [@&#8203;gadgilrajeev](https://github.com/gadgilrajeev) made their first contribution in [#&#8203;2551](henrygd/beszel#2551)
- [@&#8203;kenny-ish](https://github.com/kenny-ish) made their first contribution in [#&#8203;2540](henrygd/beszel#2540)
- [@&#8203;NielDB](https://github.com/NielDB) made their first contribution in [#&#8203;2626](henrygd/beszel#2626)
- [@&#8203;daniyyell-dev](https://github.com/daniyyell-dev) made their first contribution in [#&#8203;2625](henrygd/beszel#2625)
- [@&#8203;JimmyLiuJia](https://github.com/JimmyLiuJia) made their first contribution in [#&#8203;2624](henrygd/beszel#2624)
- [@&#8203;mikhailbogdan-droid](https://github.com/mikhailbogdan-droid) made their first contribution in [#&#8203;2627](henrygd/beszel#2627)
- [@&#8203;ErnestoMuniz](https://github.com/ErnestoMuniz) made their first contribution in [#&#8203;2644](henrygd/beszel#2644)
- [@&#8203;vincentfranstyo](https://github.com/vincentfranstyo) made their first contribution in [#&#8203;2646](henrygd/beszel#2646)
- [@&#8203;matheuseduardo](https://github.com/matheuseduardo) made their first contribution in [#&#8203;2635](henrygd/beszel#2635)

**Full Changelog**: <henrygd/beszel@v0.21.0...v0.21.1>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Reviewed-on: https://git.ivanch.me/ivanch/haven/pulls/35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants