build: run backend/keycloak/powersync as non-root; update quinn-proto - #1197
Draft
ital0 wants to merge 2 commits into
Draft
build: run backend/keycloak/powersync as non-root; update quinn-proto#1197ital0 wants to merge 2 commits into
ital0 wants to merge 2 commits into
Conversation
Address GHSA-4w2j-m93h-cj5j, a remote memory exhaustion issue caused by unbounded out-of-order stream reassembly.
Semgrep Security ScanNo security issues found. |
PR Metrics
Updated Wed, 05 Aug 2026 20:48:47 GMT · run #2607 |
|
Preview environment deployed 🚀
Stack: Auto-destroys on PR close/merge. Login via the bundled Keycloak realm — |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes code-scanning alerts #10, #12, #13, #14 (
dockerfile.security.missing-user*) and Dependabot alert #34 (GHSA-4w2j-m93h-cj5j, high).Non-root containers
USER bunbefore the entrypoint. This is the only image that actually ran as root; theoven/bunbase ships abunuser (uid 1000), the app only reads root-owned world-readable files, and port 8000 needs no privileges. Verified: image builds andidinside reportsuid=1000(bun).USER 1000(Keycloak) andUSER 901(PowerSync), so these containers were never root; Semgrep just can't see inheritedUSERdirectives. ExplicitUSERlines (with comments) make that visible to scanners and readers. Verified via image config inspection.quinn-proto 0.11.14 → 0.11.15
Patch-level
cargo update -p quinn-protoinsrc-taurifixing GHSA-4w2j-m93h-cj5j (remote memory exhaustion via unbounded out-of-order stream reassembly; transitive dep viareqwest → quinn). Lockfile diff touches only thequinn-protoentry.