From 0c198429528cca251712ae38e0e4b87818a68c1e Mon Sep 17 00:00:00 2001 From: JEONG KITAE Date: Tue, 20 Oct 2026 10:01:04 +0900 Subject: [PATCH] chore(release): 0.7.0 Bumps every manifest, lockfile entry, and the Helm chart to 0.7.0, moves the unreleased changelog entries under 0.7.0, adds the 0.7.0 release notes, and points the READMEs, Kubernetes guide, and roadmap at v0.7.0. --- CHANGELOG.md | 2 + README.ko.md | 25 ++++---- README.md | 26 ++++----- RELEASE_NOTES.md | 61 ++++++++++++++++++++ common/package.json | 2 +- deploy/k8s/README.md | 4 +- docs/ROADMAP.md | 3 +- examples/react-integration/package-lock.json | 2 +- helm/openstreamgrid/Chart.yaml | 4 +- origin/package.json | 4 +- package-lock.json | 18 +++--- package.json | 2 +- peer/package.json | 4 +- sdk/package-lock.json | 6 +- sdk/package.json | 2 +- tracker/package.json | 4 +- 16 files changed, 116 insertions(+), 53 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d348196..f5819de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to OpenStreamGrid are documented in this file. ## [Unreleased] +## [0.7.0] - 2026-10-20 + ### Added - A Grafana panel for the tracker's event-loop delay (p50, p99, max), the diff --git a/README.ko.md b/README.ko.md index ff077d6..b736a2a 100644 --- a/README.ko.md +++ b/README.ko.md @@ -36,7 +36,7 @@ P2P 전송이 불가능하거나 재생 기한 안에 완료되지 않으면 즉 명령 하나로 Tracker, 테스트 Origin, 피어 2개를 실행할 수 있습니다. ```bash -git clone --branch v0.6.1 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git +git clone --branch v0.7.0 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git cd OpenStreamGrid docker compose up --build --detach docker compose ps @@ -56,11 +56,12 @@ Origin으로 폴백합니다. 종료할 때는 `docker compose down`을 실행 ## 릴리스 상태 현재 안정 릴리스는 -[OpenStreamGrid v0.6.1](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.6.1)입니다. -v0.6.0의 재현 가능한 QoE 벤치마크, 교체 가능한 스케줄링 정책, 재생 기한을 고려한 -P2P/Origin 헤지 위에 피어 참여와 WebSocket 업그레이드 보안 강화, Node 피어용 -WebSocket Origin 허용 목록 수정, Helm 이미지 태그 수정, 멀티 아키텍처 컨테이너 -이미지를 더한 패치 릴리스입니다. 검증된 Origin 폴백은 최종 안전 경계로 유지됩니다. 재현 가능한 배포에는 릴리스 태그를 사용하고, 업그레이드 +[OpenStreamGrid v0.7.0](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.7.0)입니다. +Tracker 시그널링이 시청자 수에 선형으로 확장되어 Tracker 하나가 한 방송의 피어 +4000개를 코어 절반 이하로 처리하고, LL-HLS 시청자가 파트로 조립한 세그먼트를 +공유하며, 기존 Origin용 사이드카 작성기와 Node 피어의 멀티 variant 플레이리스트 +지원, 악의적인 클라이언트에 대한 Tracker·피어 보안 강화, 운영자용 알림과 보안 +지표가 추가되었습니다. 검증된 Origin 폴백은 최종 안전 경계로 유지됩니다. 재현 가능한 배포에는 릴리스 태그를 사용하고, 업그레이드 전에는 [릴리스 노트](RELEASE_NOTES.md)를 확인하세요. 전체 변경 내역은 [변경 이력](CHANGELOG.md)에 정리되어 있습니다. @@ -68,9 +69,9 @@ WebSocket Origin 허용 목록 수정, Helm 이미지 태그 수정, 멀티 아 | 구성 요소 | 이미지 | | --- | --- | -| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.6.1` | -| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.6.1` | -| Node Peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.6.1` | +| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.7.0` | +| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.7.0` | +| Node Peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.7.0` | 이미지는 `linux/amd64`와 `linux/arm64`용으로 빌드되고 `vX.Y.Z`와 `X.Y.Z` 두 형식의 태그로 게시됩니다(v0.6.1부터; 이전 릴리스는 `linux/amd64`, `vX.Y.Z` 태그만 제공). @@ -266,9 +267,9 @@ Video.js 10.0.1을 재생합니다. ```bash # 소스에서 (먼저 npm run build) node origin/dist/sidecars.js /var/www/hls -# 또는 main이나 v0.6.1 이후 릴리스로 빌드한 Origin 이미지로(v0.6.1에는 작성기가 -# 없습니다). 이미지는 root가 아닌 사용자로 실행되므로 --user로 호스트 디렉터리에 -# 쓸 수 있게 하세요 +# 또는 v0.7.0 이상의 Origin 이미지로(이전 이미지에는 작성기가 없습니다). +# 이미지는 root가 아닌 사용자로 실행되므로 --user로 호스트 디렉터리에 쓸 수 있게 +# 하세요 docker run --rm --user "$(id -u):$(id -g)" -v /var/www/hls:/hls \ origin/dist/sidecars.js /hls ``` diff --git a/README.md b/README.md index 0787073..6dffc1b 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ With [Docker Compose v2](https://docs.docker.com/compose/) installed, start the tracker, test origin, and two peers with one command: ```bash -git clone --branch v0.6.1 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git +git clone --branch v0.7.0 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git cd OpenStreamGrid docker compose up --build --detach docker compose ps @@ -49,12 +49,13 @@ peer is unavailable or too slow. Stop the stack with `docker compose down`. ## Release Status -[OpenStreamGrid v0.6.1](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.6.1) -is the current stable release. It is a patch release on top of v0.6.0's -reproducible QoE benchmarks, pluggable scheduling policies, and deadline-aware -P2P/Origin hedging: it hardens peer joins and WebSocket upgrades, fixes the -WebSocket Origin allowlist for Node peers, corrects Helm image tags, and ships -multi-architecture container images. +[OpenStreamGrid v0.7.0](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.7.0) +is the current stable release. It makes tracker signaling scale linearly with +the audience (one tracker serves 4000 peers in a broadcast at under half a +core), lets LL-HLS viewers share segments they assemble from parts, adds a +sidecar writer for existing origins and multivariant playlists for Node peers, +hardens the tracker and peers against abusive clients, and adds alerts and +security metrics for operators. Use the release tag for reproducible deployments and review the [release notes](RELEASE_NOTES.md) before upgrading. See the [changelog](CHANGELOG.md) for the complete history. @@ -63,9 +64,9 @@ Tagged container images are published to GHCR for production deployment: | Component | Image | | --- | --- | -| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.6.1` | -| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.6.1` | -| Node peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.6.1` | +| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.7.0` | +| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.7.0` | +| Node peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.7.0` | Images are built for `linux/amd64` and `linux/arm64` and tagged both `vX.Y.Z` and `X.Y.Z` (from v0.6.1; earlier releases are `linux/amd64` with `vX.Y.Z` only). @@ -275,9 +276,8 @@ output directory: ```bash # From a checkout (npm run build first) node origin/dist/sidecars.js /var/www/hls -# Or from an origin image built from main or a release after v0.6.1 (v0.6.1 -# predates the writer); it runs as a non-root user, so let it write to the -# host directory with --user +# Or from an origin image v0.7.0 or later (earlier images predate the writer); +# it runs as a non-root user, so let it write to the host directory with --user docker run --rm --user "$(id -u):$(id -g)" -v /var/www/hls:/hls \ origin/dist/sidecars.js /hls ``` diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 05da9f2..f398bff 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,64 @@ +# OpenStreamGrid 0.7.0 Release Notes + +OpenStreamGrid 0.7.0 makes tracker signaling scale with the audience, brings +P2P offload to LL-HLS viewers and existing origins, and hardens the tracker +and peers against abusive clients. The full list is in the +[changelog](CHANGELOG.md#070---2026-10-20). + +## Highlights + +- **Signaling that scales linearly.** Clients negotiate `inventory_batch` and + `neighbor_view`: inventory updates are batched every 250 ms and each viewer + sees a bounded set of neighbors (`TRACKER_NEIGHBOR_VIEW_SIZE`, default 64). + One tracker serves 4000 peers in one broadcast at under half a core + ([Tracker capacity](docs/tracker-capacity.md)). +- **LL-HLS.** Partial segments load from the origin, and with + `assembleLowLatencySegments` viewers at the live edge join a segment's parts, + verify it, and share it ([ADR 0002](docs/adr/0002-llhls-part-sharing.md)). +- **Existing origins.** `origin/dist/sidecars.js` writes the SHA-256 sidecars + peers verify against for any packager's output. Node peers follow a + multivariant playlist to one rendition (`RENDITION`) and skip peers on other + renditions. +- **Players.** `hlsJsConfig()` supports players that create hls.js themselves, + such as Video.js 10. +- **Operations.** Metrics for signaling traffic, event-loop delay, and refused + requests; a Security row and event-loop panel in Grafana; an optional + `PrometheusRule`; `LOG_LEVEL`; and `--help` for the peer and sidecar CLIs. + +## Security + +- Peer addresses that are loopback, unspecified, or link-local are rejected, + including IPv4-mapped IPv6 literals, and Node peers refuse host names that + resolve to them. +- The tracker bounds what one peer can make it relay: peer IDs (128 + characters), addresses (2048), metadata (32 entries, 4096 characters), + inventories (2000 segments, 128 KiB of IDs), and reported segment IDs per + second across REST and WebSocket. +- Node peers drop HTTP uploads to clients that stop reading for 10 s. +- Tracker reconnects are jittered so an audience does not return in lockstep. + +## Upgrade notes + +- Joins with peer IDs over 128 characters or containing whitespace, addresses + over 2048 characters, or metadata beyond the new limits now get `400`. +- REST segment reports are limited to 512 IDs of up to 512 characters, and a + peer reporting more than 16 K ID characters per second gets `429` (REST) or + has its WebSocket closed with `1008`. +- SQLite writes from heartbeats and reports are committed once per event-loop + turn; a crash can lose that turn's writes. +- In the SDK package, `hls.js` is an optional peer dependency, and the type + declarations no longer import the unpublished `@openstreamgrid/common`. + +## Validation + +- `npm run build`, `npm run typecheck`, `npm run lint` +- `npm test` across all workspaces and the SDK +- Browser E2E for hls.js (MPEG-TS, fMP4, LL-HLS parts), Shaka, and Video.js 10 +- Docker multi-peer test, with one peer following the master playlist +- `helm lint` with the optional templates enabled + +--- + # OpenStreamGrid 0.6.1 Release Notes OpenStreamGrid 0.6.1 is a patch release for 0.6.0. It hardens tracker diff --git a/common/package.json b/common/package.json index 921b1dc..a319ab1 100644 --- a/common/package.json +++ b/common/package.json @@ -1,6 +1,6 @@ { "name": "@openstreamgrid/common", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "private": true, "type": "module", diff --git a/deploy/k8s/README.md b/deploy/k8s/README.md index 3c72766..eab798c 100644 --- a/deploy/k8s/README.md +++ b/deploy/k8s/README.md @@ -32,8 +32,8 @@ policies. Ingress and tracker autoscaling are disabled by default. The container images must be available to the cluster: -- `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.6.1` -- `ghcr.io/mytrashcan/openstreamgrid-origin:v0.6.1` +- `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.7.0` +- `ghcr.io/mytrashcan/openstreamgrid-origin:v0.7.0` The chart derives both image tags from its `appVersion` as `v`, matching the published release tags. Set `tracker.image.tag` or diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 1f48bb2..a4b74cd 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -17,7 +17,7 @@ The three implementation phases in the original plan are complete: - **Phase 3, hardening:** WebRTC DataChannel transport, SQLite store, load and capacity benchmarks, Helm chart, CI, and linting. -Since v0.6.1 (unreleased, see the changelog): +Released in v0.7.0 (see the changelog): - Tracker signaling scales linearly with the audience (`inventory_batch` and `neighbor_view`); one tracker serves 4000 peers in one broadcast at under @@ -38,7 +38,6 @@ Since v0.6.1 (unreleased, see the changelog): ## Next -- **Release 0.7.0** with the unreleased changes above. - **Publish the browser SDK to npm.** It is build- and publish-dry-run checked in CI but not yet on the registry. - **Refresh the performance baseline** (`scripts/benchmark.sh`) on a machine diff --git a/examples/react-integration/package-lock.json b/examples/react-integration/package-lock.json index 6fae6a0..efb1ec7 100644 --- a/examples/react-integration/package-lock.json +++ b/examples/react-integration/package-lock.json @@ -23,7 +23,7 @@ }, "../../sdk": { "name": "@openstreamgrid/sdk", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "devDependencies": { "@openstreamgrid/common": "file:../common", diff --git a/helm/openstreamgrid/Chart.yaml b/helm/openstreamgrid/Chart.yaml index 660ece8..ad99326 100644 --- a/helm/openstreamgrid/Chart.yaml +++ b/helm/openstreamgrid/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: openstreamgrid description: Hybrid P2P-CDN live streaming middleware type: application -version: 0.6.1 -appVersion: "0.6.1" +version: 0.7.0 +appVersion: "0.7.0" diff --git a/origin/package.json b/origin/package.json index f93f8c2..6faae08 100644 --- a/origin/package.json +++ b/origin/package.json @@ -1,6 +1,6 @@ { "name": "@openstreamgrid/origin", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "private": true, "type": "module", @@ -13,6 +13,6 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@openstreamgrid/common": "0.6.1" + "@openstreamgrid/common": "0.7.0" } } diff --git a/package-lock.json b/package-lock.json index 6455ae4..c4346c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openstreamgrid", - "version": "0.6.1", + "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openstreamgrid", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "workspaces": [ "common", @@ -28,7 +28,7 @@ }, "common": { "name": "@openstreamgrid/common", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT" }, "node_modules/@bcoe/v8-coverage": { @@ -2459,18 +2459,18 @@ }, "origin": { "name": "@openstreamgrid/origin", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "dependencies": { - "@openstreamgrid/common": "0.6.1" + "@openstreamgrid/common": "0.7.0" } }, "peer": { "name": "@openstreamgrid/peer", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "dependencies": { - "@openstreamgrid/common": "0.6.1", + "@openstreamgrid/common": "0.7.0", "@roamhq/wrtc": "^0.10.0", "ws": "^8.22.0" }, @@ -2483,10 +2483,10 @@ }, "tracker": { "name": "@openstreamgrid/tracker", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "dependencies": { - "@openstreamgrid/common": "0.6.1", + "@openstreamgrid/common": "0.7.0", "better-sqlite3": "^12.11.1", "ws": "^8.22.0" }, diff --git a/package.json b/package.json index 748e653..776ab8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openstreamgrid", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "private": true, "type": "module", diff --git a/peer/package.json b/peer/package.json index 1345e90..b2276ad 100644 --- a/peer/package.json +++ b/peer/package.json @@ -1,6 +1,6 @@ { "name": "@openstreamgrid/peer", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "private": true, "type": "module", @@ -16,7 +16,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@openstreamgrid/common": "0.6.1", + "@openstreamgrid/common": "0.7.0", "@roamhq/wrtc": "^0.10.0", "ws": "^8.22.0" }, diff --git a/sdk/package-lock.json b/sdk/package-lock.json index 39d62b7..dc46c98 100644 --- a/sdk/package-lock.json +++ b/sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@openstreamgrid/sdk", - "version": "0.6.1", + "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@openstreamgrid/sdk", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "devDependencies": { "@openstreamgrid/common": "file:../common", @@ -26,7 +26,7 @@ }, "../common": { "name": "@openstreamgrid/common", - "version": "0.6.1", + "version": "0.7.0", "dev": true, "license": "MIT" }, diff --git a/sdk/package.json b/sdk/package.json index e52d90f..71e0ace 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@openstreamgrid/sdk", - "version": "0.6.1", + "version": "0.7.0", "description": "OpenStreamGrid Browser SDK — hybrid P2P-CDN live streaming middleware for Hls.js", "repository": { "type": "git", diff --git a/tracker/package.json b/tracker/package.json index 971cd94..34ad3fe 100644 --- a/tracker/package.json +++ b/tracker/package.json @@ -1,6 +1,6 @@ { "name": "@openstreamgrid/tracker", - "version": "0.6.1", + "version": "0.7.0", "license": "MIT", "private": true, "type": "module", @@ -13,7 +13,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@openstreamgrid/common": "0.6.1", + "@openstreamgrid/common": "0.7.0", "better-sqlite3": "^12.11.1", "ws": "^8.22.0" },