fix: remove allowed_ips from host-side API server experiment - #42
Conversation
|
🤖 Review · |
PR Summary by QodoRemove allowed_ips templating from host-side API server experiment policies
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
4d0305a to
be685d6
Compare
|
🤖 Review · |
be685d6 to
96b729b
Compare
Code Review by Qodo
1.
|
|
🤖 Review · |
96b729b to
d6ec691
Compare
|
🤖 Finished Review · ❌ Failure · Started 3:37 PM UTC · Completed 3:41 PM UTC |
Review — approvePR: fix: remove allowed_ips from host-side API server experiment Re-review noteRe-reviewing at SummaryClean, well-scoped simplification of the host-side API server experiment (0010). Removes What I verified
Findings
VerdictThe change is safe. The prior review's finding has been addressed. Upstream justification is sound (OpenShell PR #1560, maintainer confirmation on #1633), validation evidence is documented, and the simplification reduces operational fragility by eliminating the platform-dependent HOST_IP resolution and sed templating. Approved. Previous runReview — approvePR: fix: remove allowed_ips from host-side API server experiment SummaryClean, well-scoped simplification of the host-side API server experiment (0010). The PR removes What I verified
Findings
VerdictThe change is safe. The upstream justification is sound (OpenShell PR #1560 confirmed by maintainer), validation evidence is documented, and the simplification reduces operational fragility by eliminating the most platform-dependent part of the setup (HOST_IP resolution and sed templating). Approved. |
Per NVIDIA/OpenShell#1560, allowed_ips is no longer required when endpoints are explicitly declared with host+port in the policy. Validated by creating a sandbox with the updated policy and curling both host servers (builder :9090, provisioner :9091) successfully. - Remove allowed_ips from full-access and restricted policies - Remove HOST_IP resolution and policy template rendering from run.sh - Point harness files to raw policy files instead of rendered ones - Add required role field to all harness files (new fullsend requirement) Refs: NVIDIA/OpenShell#1633 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Marta Anon <manon@redhat.com>
d6ec691 to
ac52e71
Compare
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 3:48 PM UTC · Completed 3:54 PM UTC |
|
🤖 Finished Retro · ✅ Success · Started 3:59 PM UTC · Completed 4:08 PM UTC |
|
PR #42 was a human-authored fix removing Proposals filed
|
Summary
allowed_ipsfrom bothfull-accessandrestrictedpolicies — per NVIDIA/OpenShell#1560,allowed_ipsis not required when endpoints are explicitly declared with host+portrun.sh(no longer needed)rolefield to all harness files (new fullsend requirement since PR Host-side API server experiment #28)Validation
Tested on OpenShell v0.0.83, rootless Podman + pasta, Fedora 44:
allowed_ips)curlfrom inside sandbox tohost.openshell.internal:9090/tools.json→ 200 OKcurlfrom inside sandbox tohost.openshell.internal:9091/tools.json→ 200 OKcurlto undeclared endpoint (example.com) → blockedRefs: NVIDIA/OpenShell#1633
🤖 Generated with Claude Code