[api][runtime][java][python] Require HTTPS and add digest pinning for URL skill sources #1005
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 413 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · 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.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1005"
general
weight: 0.35
weiqingy
Purpose of change
Closes #1003.
Remote skill archives are trusted instructions and code: their
SKILL.mdcontent is consumed by the agent, and bundled scripts can become executable through the built-in tools. Until now,Skills.fromUrl(...)/Skills.from_url(...)accepted plain HTTP and extracted whatever arrived, without verifying an operator-provided integrity expectation.This change makes URL skill sources secure by default and adds optional integrity verification across the Java, Python, and YAML surfaces.
allow_insecure_httpYAML option.url_sourceslist while preserving the existingurlsshorthand for unpinned HTTPS sources.Existing direct and same-protocol-redirecting HTTPS sources continue to download successfully. When a same-protocol redirect changes the effective URL, both runtimes now emit a warning with sensitive URL components removed. Existing plain HTTP sources must opt in explicitly.
Tests
./tools/ut.sh -j) passed under JDK 17 across all 32 reactor modules.git diff --checkpassed.API
Yes. The Java and Python skill factories reject plain HTTP by default and provide aligned methods for SHA-256 pinning and explicit HTTP opt-in:
fromUrlWithSha256,fromUrlUnsafe, andfromUrlUnsafeWithSha256.from_url_with_sha256,from_url_unsafe, andfrom_url_unsafe_with_sha256.YAML provides a structured
url_sourceslist whose entries accepturl, optionalsha256, and optionalallow_insecure_http. The existingurlslist remains available for ordinary HTTPS sources. Invalid URL and digest configuration is rejected during YAML loading, while runtime validation remains as defense in depth.Documentation
doc-neededdoc-not-neededdoc-includedWas this patch authored or co-authored using generative AI tooling?
Generated-by: OpenAI Codex (GPT-5)