Compare commits

..

No commits in common. "master" and "v17.0.0" have entirely different histories.

8 changed files with 12 additions and 55 deletions

View File

@ -1,32 +1,3 @@
- commits:
- subject: Fix search for app leftover locks
hash: d475b1d8301c83b932ce272d3496bf4aac0ef1ad
body: |
The leftover locks search was creating an array rather than an object
keyed by the appId. This could affect the lock cleanup and make leftover
locks from one app affect the install of the app in local mode.
footer:
Change-type: patch
change-type: patch
author: Felipe Lalanne
nested: []
version: 17.0.2
title: ""
date: 2025-04-02T20:16:09.754Z
- commits:
- subject: Clarify firewall docs on behavior with host network containers
hash: caed4dcca0043f848f6dd5a3d1a2f82a2466e8d6
body: ""
footer:
Change-type: patch
change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
signed-off-by: Christina Ying Wang <christina@balena.io>
author: Christina Ying Wang
nested: []
version: 17.0.1
title: ""
date: 2025-03-25T20:41:20.141Z
- commits:
- subject: Add Docker network label if custom ipam config
hash: b596c77ce2d229e79082cbb1f0022f93806f09ae

View File

@ -4,16 +4,6 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
# v17.0.2
## (2025-04-02)
* Fix search for app leftover locks [Felipe Lalanne]
# v17.0.1
## (2025-03-25)
* Clarify firewall docs on behavior with host network containers [Christina Ying Wang]
# v17.0.0
## (2025-03-24)

View File

@ -1 +1 @@
17.0.2
17.0.0

View File

@ -2,6 +2,6 @@ name: balena-supervisor
description: 'Balena Supervisor: balena''s agent on devices.'
joinable: false
type: sw.application
version: 17.0.2
version: 17.0.0
provides:
- slug: sw.compose.long-volume-syntax

View File

@ -8,10 +8,10 @@ To switch between firewall modes, the `HOST_FIREWALL_MODE` (with `BALENA_` or le
> [!NOTE] Configuration variables defined in the dashboard will not apply to devices in local mode.
| Mode | Description |
| ---- | ----------- |
| on | Only traffic for core services provided by balena are allowed. Any other ports, including those used by containers with host networking, are blocked unless explicitly configured. |
| off | All network traffic is allowed. |
| Mode | Description |
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| on | Only traffic for core services provided by balena and containers on the host network are allowed. |
| off | All network traffic is allowed. |
| auto | If there _are_ host network services, behaves as if `FIREWALL_MODE` = `on`. If there _aren't_ host network services, behaves as if `FIREWALL_MODE` = `off`. |
## Issues

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "balena-supervisor",
"version": "17.0.2",
"version": "17.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "balena-supervisor",
"version": "17.0.2",
"version": "17.0.0",
"license": "Apache-2.0",
"dependencies": {
"@balena/systemd": "^0.5.0",

View File

@ -1,7 +1,7 @@
{
"name": "balena-supervisor",
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
"version": "17.0.2",
"version": "17.0.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
@ -137,6 +137,6 @@
"yargs": "^17.7.2"
},
"versionist": {
"publishedAt": "2025-04-02T20:16:10.284Z"
"publishedAt": "2025-03-24T22:18:09.279Z"
}
}

View File

@ -187,12 +187,8 @@ export async function inferNextSteps(
const currentAppIds = Object.keys(currentApps).map((i) => parseInt(i, 10));
const targetAppIds = Object.keys(targetApps).map((i) => parseInt(i, 10));
const withLeftoverLocks = Object.fromEntries(
await Promise.all(
currentAppIds.map(
async (id) => [id, await hasLeftoverLocks(id)] as [number, boolean],
),
),
const withLeftoverLocks = await Promise.all(
currentAppIds.map((id) => hasLeftoverLocks(id)),
);
const bootTime = getBootTime();