Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NODE_ENV=development

# EdgeOps Console static embed (npm run build:console → dev/console/build)
EDGEOPS_CONSOLE_PATH=dev/console/build # must be absolute path
EDGEOPS_CONSOLE_VERSION=v1.1.2
EDGEOPS_CONSOLE_VERSION=v1.1.3
# EDGEOPS_CONSOLE_REPO=https://github.com/Datasance/edgeops-console
# EDGEOPS_CONSOLE_FLAVOR=datasance

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/set-build-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
shell: bash
run: |
VERSION="${{ env.EDGEOPS_CONSOLE_VERSION }}"
if [ -z "$VERSION" ]; then VERSION="1.1.2"; fi
if [ -z "$VERSION" ]; then VERSION="1.1.3"; fi
echo "EDGEOPS_CONSOLE_VERSION=$VERSION" >> "${GITHUB_ENV}"

REPO="${{ env.EDGEOPS_CONSOLE_REPO }}"
Expand Down
5 changes: 0 additions & 5 deletions .nsprc
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
{
"1240912": {
"active": true,
"expiry": "2027-01-12",
"notes": "GHSA-86w9-cpqp-85rv / CVE-2026-85393. node-forge <=1.4.0 has no patched release. Controller generates and signs certs and parses PEM fields; it does not verify untrusted PKCS#1 signatures with node-forge."
}
}
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## [v3.9.4]

### Added

- **Microservice `imagePullStatus`** — `failed` when the desired image is not on the device. The agent omits the key otherwise, including a healthy run and a pull still in progress. GET microservice `status` always includes the field and returns `""` when there is no outstanding pull failure. Observed `status` stays `RUNNING` or `QUEUED`. `errorMessage` keeps the pull text until the pull succeeds. `lastError` is unchanged and can remain after success.
- **`MicroserviceStatuses.image_pull_status`** on the 3.9.4 baseline and on the 3.9.4 upgrade (sqlite, mysql, postgres).

### Fixed

- **Fog node logs** — a log session is allowed while `daemonStatus` is `RUNNING` or `WARNING`. `WARNING` means the agent is still reporting and the platform has an issue. Other daemon statuses still fail with `Fog is not running`.

### Changed

- Embedded **EdgeOps Console** default **v1.1.1 → v1.1.2**
- Dockerfile runtime base image digest pin refreshed for **`ubi9/nodejs-24-minimal`**.
- **`node-forge` ^1.4.0 → ^1.4.2** — address CVE-2026-85393 (GHSA-86w9-cpqp-85rv, PKCS#1 v1.5 signature verification) and the PEM and ASN.1 denial-of-service fixes in 1.4.1. Certificate generation and PEM parsing are unchanged.
- **`qs` 6.16.0 → 6.16.1**, including the `qs` override — address GHSA-6pq8-jhm2-2vcw (`stringify` with `arrayFormat: 'comma'` throws on a non-callable `toString`).
- **Audit exception removed** — `.nsprc` no longer ignores advisory **1240912**. `node-forge` 1.4.2 patches CVE-2026-85393.

## [v3.9.3]

Microservice `supplementalGroups` for Edgelet v1.1.3. A non-root process can join extra host group IDs, such as the group that owns a device node, without running privileged.
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# ioFog overrides: EDGEOPS_CONSOLE_REPO=https://github.com/eclipse-iofog/edgeops-console
# EDGEOPS_CONSOLE_FLAVOR=iofog
# node:24-bookworm — pin manifest list digest for reproducible multi-arch builds
FROM node:24-bookworm@sha256:6449e19d8184d84062525b6a7524def03146c2cb04a7f08b076680d0e8e4240a AS console-builder
FROM node:24-bookworm@sha256:d862bb5d082c5ae0210ac07e8c0344cb8cf7bef6d78e9b8c50c179da923108ea AS console-builder

ARG EDGEOPS_CONSOLE_REPO=https://github.com/Datasance/edgeops-console
ARG EDGEOPS_CONSOLE_VERSION=v1.1.2
ARG EDGEOPS_CONSOLE_VERSION=v1.1.3
ARG EDGEOPS_CONSOLE_FLAVOR=datasance

RUN apt-get update \
Expand All @@ -28,7 +28,7 @@ RUN test -f build/index.html \
&& cp -a build /tmp/console/build


FROM node:24-bookworm@sha256:6449e19d8184d84062525b6a7524def03146c2cb04a7f08b076680d0e8e4240a AS builder
FROM node:24-bookworm@sha256:d862bb5d082c5ae0210ac07e8c0344cb8cf7bef6d78e9b8c50c179da923108ea AS builder

ARG PKG_VERSION

Expand All @@ -48,9 +48,9 @@ RUN npm pack


# ubi9/nodejs-24-minimal:latest — pin manifest list digest for reproducible multi-arch builds
FROM registry.access.redhat.com/ubi9/nodejs-24-minimal@sha256:ab6fb9bb47eb008f85da7a26321ded691324b6469f54d6b3ac263dfbd0bddd97
FROM registry.access.redhat.com/ubi9/nodejs-24-minimal@sha256:18afd48c9af3c1f3df52cf72d1d0ea5bd3f07c50e4731ffd56b5b46bf4bb6639

ARG EDGEOPS_CONSOLE_VERSION=v1.1.2
ARG EDGEOPS_CONSOLE_VERSION=v1.1.3
ARG IMAGE_REGISTRY
ARG OCI_SOURCE_REPO
ARG CONTROLLER_DISTRIBUTION=iofog
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Local Docker build — mirrors CI/release build-args (see .github/actions/set-build-env).
# Override any variable: make build FLAVOR=iofog EDGEOPS_CONSOLE_VERSION=v1.1.2
# Override any variable: make build FLAVOR=iofog EDGEOPS_CONSOLE_VERSION=v1.1.3

FLAVOR ?= datasance
IMAGE_NAME ?= controller
Expand All @@ -25,7 +25,7 @@ else
$(error FLAVOR must be "datasance" or "iofog", got "$(FLAVOR)")
endif

EDGEOPS_CONSOLE_VERSION ?= v1.1.2
EDGEOPS_CONSOLE_VERSION ?= v1.1.3

IMAGE_REF = $(IMAGE_REGISTRY)/$(IMAGE_NAME):$(DOCKER_TAG)

Expand Down
22 changes: 19 additions & 3 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi : "3.0.0"
info:
version: 3.9.0
version: 3.9.4
title: Cloud Native Controller for Edge Native Workloads
paths:
/live:
Expand Down Expand Up @@ -3044,7 +3044,9 @@ paths:
tags:
- WebSocketSessions
summary: User fog (node) log streaming WebSocket
description: Node-level logs; **RBAC** `systemLogs`. Max **5** concurrent sessions per fog.
description: |
Node-level logs; **RBAC** `systemLogs`. Max **5** concurrent sessions per fog.
Allowed while the fog `daemonStatus` is `RUNNING` or `WARNING`.
operationId: userFogLogsWebSocket
parameters:
- in: path
Expand Down Expand Up @@ -9938,7 +9940,8 @@ components:
type: string
description: >-
JSON array of per-microservice observed status objects. Items may
include additive lastError, lastErrorAt, and restartCount. Unknown
include additive lastError, lastErrorAt, restartCount, and
imagePullStatus (`failed` only; omit otherwise). Unknown
keys must not fail this PUT.
repositoryCount:
type: number
Expand Down Expand Up @@ -10799,6 +10802,19 @@ components:
workload is failing, restarting, or has been RUNNING for less
than 30 seconds after a crash. After 30 seconds of continuous
RUNNING the agent sends an empty string so this field clears.
A failed image pull is an exception: this text stays, including
while status is RUNNING, until the pull succeeds.
imagePullStatus:
type: string
description: >-
Current image pull. `failed` when the desired image is not on
the device. Empty string when there is no outstanding pull
failure. The agent omits the key in that case; this GET always
returns the field. Observed status stays RUNNING when a previous
container is still up, or QUEUED when nothing has started.
lastError can still hold the pull text after success; use this
field for the current pull. A status post that omits the key
keeps a stored `failed` while errorMessage is still set.
lastError:
type: string
description: >-
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "controller",
"version": "3.9.3",
"version": "3.9.4",
"description": "A cloud-native operations controller for managing edge computing workloads, edgelet nodes, and deployments across Eclipse IoFog and Datasance PoT.",
"main": "./src/main.js",
"author": "Eclipse ioFog Project",
Expand Down Expand Up @@ -118,15 +118,15 @@
"@nats-io/transport-node": "^3.4.0",
"nconf": "0.12.1",
"node-fetch-npm": "^2.0.4",
"node-forge": "^1.4.0",
"node-forge": "^1.4.2",
"oidc-provider": "^9.11.3",
"openid-client": "^6.8.4",
"otplib": "^13.4.1",
"pg": "8.12.0",
"pino": "9.13.1",
"pino-std-serializers": "7.0.0",
"portscanner": "2.2.0",
"qs": "6.16.0",
"qs": "6.16.1",
"rhea": "^3.0.4",
"sequelize": "6.37.8",
"sqlite3": "^6.0.1",
Expand Down Expand Up @@ -178,7 +178,7 @@
"express": {
"proxy-addr": "2.0.8"
},
"qs": "6.16.0"
"qs": "6.16.1"

}
}
2 changes: 1 addition & 1 deletion scripts/build-console-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const CONSOLE_DIR = path.join(DEV_DIR, 'console')
const BUILD_OUT = path.join(CONSOLE_DIR, 'build')

const REPO = process.env.EDGEOPS_CONSOLE_REPO || 'https://github.com/Datasance/edgeops-console'
const VERSION = process.env.EDGEOPS_CONSOLE_VERSION || 'v1.1.2'
const VERSION = process.env.EDGEOPS_CONSOLE_VERSION || 'v1.1.3'
const FLAVOR = process.env.EDGEOPS_CONSOLE_FLAVOR || 'datasance'

function normalizeTag (version) {
Expand Down
14 changes: 8 additions & 6 deletions src/data/migrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,33 @@

## Fresh install (empty database)

New installations apply **baseline 3.9.3** schema and seed files only. The runner in
New installations apply **baseline 3.9.4** schema and seed files only. The runner in
`src/data/providers/database-provider.js` uses this path when `schema_version` is unset
and `untilVersion` is not provided. `schema_version` and `seeder_version` are then recorded
as `3.9.3`. Baseline files do not create hardware-inventory tables, architecture HAL/BLE
as `3.9.4`. Baseline files do not create hardware-inventory tables, architecture HAL/BLE
foreign keys, or HAL/RESTBlue catalog rows.

| Version | Migration | Seeder |
|---------|-----------|--------|
| 3.9.3 (fresh) | `db_migration_*_baseline_v3.9.3.sql` | `db_seeder_*_baseline_v3.9.3.sql` |
| 3.9.4 (fresh) | `db_migration_*_baseline_v3.9.4.sql` | `db_seeder_*_baseline_v3.9.4.sql` |

## Upgrade from 3.8.0

Existing 3.8.0 databases apply **incremental** 3.9.0 migrate-then-seed, then **3.9.3**.
Do **not** edit `db_*_v3.8.0.sql` or `db_*_v3.9.0.sql` files. The incremental 3.9.0
Existing 3.8.0 databases apply **incremental** 3.9.0 migrate-then-seed, then **3.9.3**, then **3.9.4**.
Do **not** edit `db_*_v3.8.0.sql`, `db_*_v3.9.0.sql`, or `db_*_v3.9.3.sql` files. The incremental 3.9.0
migration drops architecture HAL/BLE foreign keys before deleting HAL/RESTBlue catalog rows.
The 3.9.3 step adds nullable `supplemental_groups` on `Microservices` only.
The 3.9.4 step adds `image_pull_status` on `MicroserviceStatuses`.

`untilVersion: '3.8.0'` still builds a 3.8 fixture via the incremental chain (used by tests).
Never apply baseline 3.9.3 and the 3.8 chain on the same database.
Never apply baseline 3.9.4 and the 3.8 chain on the same database.

| Version | Migration | Seeder |
|---------|-----------|--------|
| 3.8.0 | `db_migration_*_v3.8.0.sql` | `db_seeder_*_v3.8.0.sql` |
| 3.9.0 (upgrade) | `db_migration_*_v3.9.0.sql` | `db_seeder_*_v3.9.0.sql` |
| 3.9.3 (upgrade) | `db_migration_*_v3.9.3.sql` | `db_seeder_*_v3.9.3.sql` |
| 3.9.4 (upgrade) | `db_migration_*_v3.9.4.sql` | `db_seeder_*_v3.9.4.sql` |

Greenfield only vs pre-3.8: wipe the data directory or database before upgrading from pre-3.8 builds.
There is no v3.7→v3.8 incremental migrator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ CREATE TABLE IF NOT EXISTS MicroserviceStatuses (
last_error TEXT,
last_error_at BIGINT DEFAULT 0,
restart_count INT DEFAULT 0,
image_pull_status TEXT DEFAULT '',
FOREIGN KEY (microservice_uuid) REFERENCES Microservices (uuid) ON DELETE CASCADE
);

Expand Down
1 change: 1 addition & 0 deletions src/data/migrations/mysql/db_migration_mysql_v3.9.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE MicroserviceStatuses ADD COLUMN image_pull_status TEXT DEFAULT '';
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ CREATE TABLE IF NOT EXISTS "MicroserviceStatuses" (
last_error TEXT DEFAULT '',
last_error_at BIGINT DEFAULT 0,
restart_count INTEGER DEFAULT 0,
image_pull_status TEXT DEFAULT '',
FOREIGN KEY (microservice_uuid) REFERENCES "Microservices" (uuid) ON DELETE CASCADE
);

Expand Down
1 change: 1 addition & 0 deletions src/data/migrations/postgres/db_migration_pg_v3.9.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "MicroserviceStatuses" ADD COLUMN image_pull_status TEXT DEFAULT '';
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ CREATE TABLE IF NOT EXISTS MicroserviceStatuses (
last_error TEXT DEFAULT '',
last_error_at BIGINT DEFAULT 0,
restart_count INTEGER DEFAULT 0,
image_pull_status TEXT DEFAULT '',
FOREIGN KEY (microservice_uuid) REFERENCES Microservices (uuid) ON DELETE CASCADE
);

Expand Down
1 change: 1 addition & 0 deletions src/data/migrations/sqlite/db_migration_sqlite_v3.9.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE MicroserviceStatuses ADD COLUMN image_pull_status TEXT DEFAULT '';
5 changes: 5 additions & 0 deletions src/data/models/microservicestatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ module.exports = (sequelize, DataTypes) => {
defaultValue: 0,
field: 'restart_count'
},
imagePullStatus: {
type: DataTypes.TEXT,
defaultValue: '',
field: 'image_pull_status'
},
ipAddress: {
type: DataTypes.TEXT,
defaultValue: '',
Expand Down
16 changes: 8 additions & 8 deletions src/data/providers/database-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function sqliteClose (db) {
})
}

const SCHEMA_VERSIONS = ['3.8.0', '3.9.0', '3.9.3']
const BASELINE_VERSION = '3.9.3'
const SCHEMA_VERSIONS = ['3.8.0', '3.9.0', '3.9.3', '3.9.4']
const BASELINE_VERSION = '3.9.4'

function compareVersions (left, right) {
const leftParts = String(left || '0').split('.').map((part) => parseInt(part, 10) || 0)
Expand Down Expand Up @@ -85,18 +85,18 @@ function seederSqlPath (provider, version) {

function baselineMigrationSqlPath (provider) {
const relative = {
sqlite: 'sqlite/db_migration_sqlite_baseline_v3.9.3.sql',
mysql: 'mysql/db_migration_mysql_baseline_v3.9.3.sql',
postgres: 'postgres/db_migration_pg_baseline_v3.9.3.sql'
sqlite: 'sqlite/db_migration_sqlite_baseline_v3.9.4.sql',
mysql: 'mysql/db_migration_mysql_baseline_v3.9.4.sql',
postgres: 'postgres/db_migration_pg_baseline_v3.9.4.sql'
}[provider]
return path.resolve(__dirname, '../migrations', relative)
}

function baselineSeederSqlPath (provider) {
const relative = {
sqlite: 'sqlite/db_seeder_sqlite_baseline_v3.9.3.sql',
mysql: 'mysql/db_seeder_mysql_baseline_v3.9.3.sql',
postgres: 'postgres/db_seeder_pg_baseline_v3.9.3.sql'
sqlite: 'sqlite/db_seeder_sqlite_baseline_v3.9.4.sql',
mysql: 'mysql/db_seeder_mysql_baseline_v3.9.4.sql',
postgres: 'postgres/db_seeder_pg_baseline_v3.9.4.sql'
}[provider]
return path.resolve(__dirname, '../seeders', relative)
}
Expand Down
1 change: 1 addition & 0 deletions src/data/seeders/mysql/db_seeder_mysql_v3.9.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT 1;
1 change: 1 addition & 0 deletions src/data/seeders/postgres/db_seeder_pg_v3.9.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT 1;
1 change: 1 addition & 0 deletions src/data/seeders/sqlite/db_seeder_sqlite_v3.9.4.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT 1;
Loading