docker: SGLang v0.5.23 secure-r2 image #510
All Vouch review confidence checks passed
Residual risk 0.39 = Change Risk (0.52) × (1 − Review Confidence (0.25)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 33% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #510"
general
weight: 0.35
chatgpt-codex-connector[bot]
Supersedes #481 for this dir. Adds
docker/sglang-v0.5.23-secure-r2and its publish workflow: stocklmsysorg/sglangv0.5.23 by digest, with exact-rid aborts, credential and request-content log redaction, request validation, a token-id range check, and the sglang-diffusion media URL and request-field policy. One build dir, no compose file changes. Nothing is pinned to this image yet; a later PR adds the digest, itsimages.allowrow and its docs/verifying.md rows.Engine variables and flags this image reads
Every one is read inside the image. None is set by any compose file in this PR.
| variable or flag | default | at the default |
|---|---|---|
|
SGLANG_ALLOW_LOCAL_MEDIA_PATHS| unset | changes behaviour:file://URLs and server paths in image, audio and video inputs get a 400; sglang-diffusion loaders read only files the server saved itself ||
SGLANG_TRUST_CALLER_MM_HASHES| unset | moved default: the server computes the multimodal cache identity; callermm_hashesand thehash/pad_valueof preprocessed items are ignored ||
SGLANG_DIFFUSION_ALLOW_PRIVATE_MEDIA_URLS| unset | changes behaviour: sglang-diffusion fetches client media URLs only from public addresses, without reading proxy settings ||
SGLANG_DIFFUSION_ALLOW_REQUEST_DEBUG_FIELDS| unset | changes behaviour: 400 onperf_dump_path,profile,profile_all_stages,upscaling_model_pathandframe_interpolation_model_pathin diffusion requests ||
--audio-transcription-max-file-size-mb(new server flag) |25| changes behaviour: 413 on larger/v1/audio/transcriptionsuploads;0turns the cap off |SGLANG_MAX_BATCH_REQS_PER_HTTP_REQalready exists in stock v0.5.23; patch 05 also uses it as the upper bound ofnon/generate. Patches 05-07, 10-12 and 17 return a 400 for request values stock v0.5.23 accepts; the README lists them. No new sink, endpoint, port or mount. No secret-suffixed variable is introduced.Review items
1. Runner: the publish job runs on the standard
ubuntu-24.04runner, the label the workflows on main use, solintpasses without a config change. It removes preinstalled toolchains the job never uses and fails early unless 100 GB is free (the base image is about 16 GB compressed and 57 GB unpacked), then releases the build storage before the scan pulls the published digest.2. One build dir per PR: this PR carries only
sglang-v0.5.23-secure-r2.sglang-v0.5.23-glm53-r2follows in its own PR on top of this one.3. Names describe behaviour: patches
02-credential-redaction,03-request-content-log-redaction,04-log-redaction-more-sites,09-media-local-paths-opt-in,11-expert-distribution-needs-recorder,12-send-weights-group-validation,15-diffusion-media-public-urls-only; teststest_credential_redaction.py,test_request_content_log_redaction.py,test_request_validation.py,test_diffusion_media_and_request_fields.py; the labels are onenearai.sglang.patch_serieslabel plusnearai.python.packagesandnearai.os.linux_libc_dev, which the workflow checks.SHA256SUMS,SERIES, the labels and the workflow's Dockerfile andSHA256SUMSpins are regenerated in the same commit as the files they cover.4. Public text: README, Dockerfile comments, the comments and docstrings the patches add, the tests, the workflow, the commit messages and this body state what the image does. Where a patch carries upstream pull-request code (05-08, 10-12, 14), the comment and docstring lines it adds are reworded the same way; the code is upstream's.
5. Build-dir contract: no parser directive, final
FROMequalsPROVENANCEbase_image,PROVENANCEhas exactly the six keys,README.mdis neither copied nor listed inSHA256SUMS, patches are numbered 01..17 without gaps,RUNfetches nothing unpinned (pip--require-hashes, aptname=version).6. Secret scanner: the dummy API key in
tests/test_credential_redaction.pyis a low-entropy value the scanner does not flag, soci/config/gitleaks.tomlis unchanged.Carried-over patches
Patches 01-04 have the same code as the patches
05-rid-abort-exact-match,14-admin-auth-redaction,15-customer-data-log-redactionand26-log-format-followupof the deleteddocker/sglang-glm53-v0523dir, read at its last commit before deletion. 02 is byte-identical; 01, 03 and 04 differ only in comment and docstring lines. Patches 05-16 have the same code as patches 05-16 of this dir at #481's head (48310b8); all of them except 07 differ in comment and docstring lines, and 15 also skips one upstream unit-test case (an https source intest_prefer_remote_source_still_avoids_disk_io) instead of removing it from the parametrize list. 17 is new. Checked by applying both series to a clean 297e54fd checkout: the Python ASTs of every changed file match once docstrings are dropped, apart from that test skip.Gates
No gate file changes.
ci/data/images.allow: one row for the upstream baselmsysorg/sglang@sha256:f832b5c3…(- - -). No waiver, noexpected.jsonchange.Evidence
<details><summary>verification</summary>
</details>
🤖 Generated with Claude Code