Skip to content

Add OSS Scanner build image and threat model - #4995

Merged
erikhortsch merged 1 commit into
masterfrom
erik/oss-scanner
Oct 12, 2026
Merged

erikhortsch merged 1 commit into
masterfrom
erik/oss-scanner

Conversation

@erikhortsch

Copy link
Copy Markdown
Contributor

Adds .oss-scanner/Dockerfile and .oss-scanner/threat_model.md so livekit-server can be enrolled in Anthropic's OSS Scanner. The scanner builds the image online, then scans it with no network and emails findings to the security contact.

Keeping both files here means build or scope changes ship with the code instead of needing a PR to the scanner repo. The enrollment PR there (project.yaml) will follow once this merges, because the scanner reads these paths from master.

  • Dockerfile: a single-stage Go 1.26 image with the source, a module cache, and redis-server. It runs the test suite at build time. pkg/service runs with -docker=false because the scanner has no Docker daemon. The image's Go version has to stay at or above go.mod's.
  • threat_model.md: scope, trust boundaries, security properties, and severity tiers for the open-source server. Please review the severity tiers in particular: they decide how findings are rated.

Verification

  • Built the Dockerfile with podman against master @ 19fd88ec. All 33 test packages passed, including test/, pkg/rtc, pkg/sfu, and pkg/service.
  • Re-ran pkg/service, pkg/config, and pkg/agent/... in the built image with --network none. All passed.
  • tools/validate.py in the scanner repo passes with dockerfile: and threat_model: pointing here.
  • I haven't run the scanner's tools/check, which adds the scanner's layer and an x86 VM.

🤖 Generated with Claude Code

@erikhortsch
erikhortsch marked this pull request as ready for review October 12, 2026 16:26
@erikhortsch
erikhortsch requested a review from a team as a code owner October 12, 2026 16:26

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@erikhortsch
erikhortsch merged commit 1d976b8 into master Oct 12, 2026
6 of 7 checks passed
@erikhortsch
erikhortsch deleted the erik/oss-scanner branch October 12, 2026 21:33
eleboucher pushed a commit to eleboucher/homelab that referenced this pull request Oct 14, 2026
…9 ➔ v1.13.10) (#2338)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/livekit/livekit-server](https://github.com/livekit/livekit) | patch | `v1.13.9` → `v1.13.10` |

---

### Release Notes

<details>
<summary>livekit/livekit (docker.io/livekit/livekit-server)</summary>

### [`v1.13.10`](https://github.com/livekit/livekit/releases/tag/v1.13.10)

[Compare Source](livekit/livekit@v1.13.9...v1.13.10)

##### Changed

- sfu: forward the dependency descriptor for VP8 simulcast ([#&#8203;4987](livekit/livekit#4987))
- sfu: keep VP8 descriptor frame numbers across migration ([#&#8203;4989](livekit/livekit#4989))
- sfu: filter VP9 and AV1 simulcast temporal layers with the dependency descriptor ([#&#8203;4991](livekit/livekit#4991))
- sfu: filter VP8 temporal layers by frame when the dependency descriptor is sent ([#&#8203;4976](livekit/livekit#4976))
- sfu: switch VP8 temporal layers up with the dependency descriptor ([#&#8203;4974](livekit/livekit#4974))
- sfu: pad the slot of a filtered packet that follows a sequence number gap ([#&#8203;4983](livekit/livekit#4983))
- sfu: send padding in the slot of a dropped out-of-order packet ([#&#8203;4979](livekit/livekit#4979))
- sfu: parse VP8 and VP9 payload descriptors without an allocation ([#&#8203;4981](livekit/livekit#4981))
- DownTrack: arm key frame requester timer only while a layer lock is pending ([#&#8203;4980](livekit/livekit#4980))
- turn: refuse TCP relays and limit relays to this host to media ports ([#&#8203;4992](livekit/livekit#4992))
- agent endpoints: address an unnamed deployment as "\_" ([#&#8203;4997](livekit/livekit#4997))
- Add OSS Scanner build image and threat model ([#&#8203;4995](livekit/livekit#4995))
- Update golang Docker tag to v1.27.1 ([#&#8203;4985](livekit/livekit#4985))
- Update alpine Docker tag to v3.24.2 ([#&#8203;4984](livekit/livekit#4984))
- Update module github.com/maxbrunsfeld/counterfeiter/v6 to v6.13.0 ([#&#8203;4915](livekit/livekit#4915))

##### Fixed

- Send NACKs when processing RTX packets ([#&#8203;5000](livekit/livekit#5000))
- sfu: send padding-only packets with no payload ([#&#8203;4993](livekit/livekit#4993))
- rtc: release timed out pending tracks at the pending track limit ([#&#8203;4998](livekit/livekit#4998))
- Fix nil pointer dereference in IOInfoService.UpdateIngressState ([#&#8203;4806](livekit/livekit#4806))
- rtc: keep update cache eviction order when listing recent disconnects ([#&#8203;4975](livekit/livekit#4975))
- fix(cli): return non-zero exit status on command errors ([#&#8203;4888](livekit/livekit#4888))
- Disable AV1 for Firefox clients before 157 ([#&#8203;4962](livekit/livekit#4962))

</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNTEuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/2338
hbjydev pushed a commit to hbjydev/phoebe that referenced this pull request Oct 20, 2026
…v1.13.10) (#884)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/livekit/livekit-server](https://github.com/livekit/livekit) | patch | `v1.13.9` → `v1.13.10` |

---

### Release Notes

<details>
<summary>livekit/livekit (docker.io/livekit/livekit-server)</summary>

### [`v1.13.10`](https://github.com/livekit/livekit/releases/tag/v1.13.10)

[Compare Source](livekit/livekit@v1.13.9...v1.13.10)

##### Changed

- sfu: forward the dependency descriptor for VP8 simulcast ([#&#8203;4987](livekit/livekit#4987))
- sfu: keep VP8 descriptor frame numbers across migration ([#&#8203;4989](livekit/livekit#4989))
- sfu: filter VP9 and AV1 simulcast temporal layers with the dependency descriptor ([#&#8203;4991](livekit/livekit#4991))
- sfu: filter VP8 temporal layers by frame when the dependency descriptor is sent ([#&#8203;4976](livekit/livekit#4976))
- sfu: switch VP8 temporal layers up with the dependency descriptor ([#&#8203;4974](livekit/livekit#4974))
- sfu: pad the slot of a filtered packet that follows a sequence number gap ([#&#8203;4983](livekit/livekit#4983))
- sfu: send padding in the slot of a dropped out-of-order packet ([#&#8203;4979](livekit/livekit#4979))
- sfu: parse VP8 and VP9 payload descriptors without an allocation ([#&#8203;4981](livekit/livekit#4981))
- DownTrack: arm key frame requester timer only while a layer lock is pending ([#&#8203;4980](livekit/livekit#4980))
- turn: refuse TCP relays and limit relays to this host to media ports ([#&#8203;4992](livekit/livekit#4992))
- agent endpoints: address an unnamed deployment as "\_" ([#&#8203;4997](livekit/livekit#4997))
- Add OSS Scanner build image and threat model ([#&#8203;4995](livekit/livekit#4995))
- Update golang Docker tag to v1.27.1 ([#&#8203;4985](livekit/livekit#4985))
- Update alpine Docker tag to v3.24.2 ([#&#8203;4984](livekit/livekit#4984))
- Update module github.com/maxbrunsfeld/counterfeiter/v6 to v6.13.0 ([#&#8203;4915](livekit/livekit#4915))

##### Fixed

- Send NACKs when processing RTX packets ([#&#8203;5000](livekit/livekit#5000))
- sfu: send padding-only packets with no payload ([#&#8203;4993](livekit/livekit#4993))
- rtc: release timed out pending tracks at the pending track limit ([#&#8203;4998](livekit/livekit#4998))
- Fix nil pointer dereference in IOInfoService.UpdateIngressState ([#&#8203;4806](livekit/livekit#4806))
- rtc: keep update cache eviction order when listing recent disconnects ([#&#8203;4975](livekit/livekit#4975))
- fix(cli): return non-zero exit status on command errors ([#&#8203;4888](livekit/livekit#4888))
- Disable AV1 for Firefox clients before 157 ([#&#8203;4962](livekit/livekit#4962))

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/London)

- 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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjcuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2Ny41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.hayden.moe/hayden/phoebe/pulls/884
erikhortsch added a commit to livekit/rust-sdks that referenced this pull request Nov 3, 2026
Adds `.oss-scanner/Dockerfile` and `.oss-scanner/threat_model.md` so
this repo can be enrolled in [Anthropic's OSS
Scanner](https://github.com/anthropics/oss-scanner). Same layout as
livekit/livekit#4995. Enrollment is a separate PR to
`anthropics/oss-scanner` once these files are on `main`.

The threat model treats remote participants as untrusted and the server
as untrusted for E2EE content, puts the unsafe/C++ FFI crates
(`webrtc-sys`, `yuv-sys`, `soxr-sys`) first, treats the host app on the
other side of `livekit-ffi` as trusted, and leaves libwebrtc internals
out of scope unless LiveKit's patches or usage cause the bug.

Build notes:
- The scanner clones without submodules, so the image runs `git
submodule update --init --recursive` (libyuv, protocol).
- libwebrtc is the prebuilt release asset `webrtc-sys-build` would
download (tag read from its source), unpacked outside `target/` and
pointed to by `LK_CUSTOM_WEBRTC`.
- clang 21 comes from `.github/scripts/install-clang.sh`; the unused
parts of the LLVM release (flang, mlir, lldb, static archives) are
deleted in the same layer, taking it from ~11 GB to ~1.4 GB.
- Examples, `tools/bindgens`, the Node bindings, `livekit-wakeword` and
`livekit-capture` aren't built.

## Verification
- `docker build` of this Dockerfile (arm64, podman): builds; the
baseline `cargo test` over the 21 listed packages plus `livekit-ffi
--features core-modules` passes (0 failures).
- With `--network none --cpus 2 --memory 8g`, the threat model's test
commands run offline without recompiling.
- `tools/check` from `anthropics/oss-scanner` clones and builds this
branch through the compile step, but my local 59 GB podman VM ran out of
disk committing the test-binary layer. The scanner's build VM has 120
GB; not verified there.
- The scanner runs x86-64; the libwebrtc and LLVM downloads are selected
per arch and both x64 and arm64 assets exist.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants