fix(network): restore SDK gvproxy integration tests#874
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR updates secret-substitution integration tests to use ChangesNetwork secret trust path
Networked VM seccomp gate
Sequence Diagram(s)sequenceDiagram
participant resolveUpstreamTLS
participant loadUpstreamRootCAs
participant "x509.SystemCertPool" as x509SystemCertPool
resolveUpstreamTLS->>loadUpstreamRootCAs: request cached RootCAs
loadUpstreamRootCAs->>x509SystemCertPool: load system cert pool once
x509SystemCertPool-->>loadUpstreamRootCAs: cert pool or error
loadUpstreamRootCAs-->>resolveUpstreamTLS: return RootCAs and error
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
d48d4b6 to
09dbea7
Compare
09dbea7 to
b632cd7
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/shim/src/main.rs (1)
156-175: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUpdate the stale seccomp comment to match this gate.
Line 151 still says the TSYNC filter covers gvproxy, but this branch now skips the filter whenever gvproxy is created in-process. Please update that nearby comment so it does not contradict the warning path.
Suggested wording
- // Apply VMM seccomp filter with TSYNC (covers all threads including gvproxy) + // Apply the VMM seccomp filter only when gvproxy is not running in-process.As per coding guidelines, “Update nearby comments when behavior changes.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/shim/src/main.rs` around lines 156 - 175, The nearby seccomp comment is stale and contradicts the current gating in main, where the TSYNC filter is skipped when network_config is present and gvproxy runs in-process. Update that comment to describe the actual behavior of the jailer_enabled/seccomp_enabled branch in src/shim/src/main.rs, keeping it consistent with the warning path and the apply_vmm_filter logic.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/boxlite/src/jailer/mod.rs`:
- Around line 292-299: Update the empty-box test to match the new implicit CA
grants returned by build_path_access(); test_build_path_access_empty_box_dir()
should no longer assert that paths is empty, and instead verify that any
returned entries are only existing system_ca_paths() marked read-only. If these
CA grants are meant to be conditional, adjust the logic in build_path_access()
or the test setup so the behavior is gated consistently.
---
Nitpick comments:
In `@src/shim/src/main.rs`:
- Around line 156-175: The nearby seccomp comment is stale and contradicts the
current gating in main, where the TSYNC filter is skipped when network_config is
present and gvproxy runs in-process. Update that comment to describe the actual
behavior of the jailer_enabled/seccomp_enabled branch in src/shim/src/main.rs,
keeping it consistent with the warning path and the apply_vmm_filter logic.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 1dcc4b9d-1b02-4359-9de1-99d2ba32af4f
📒 Files selected for processing (5)
sdks/node/tests/network-secrets.integration.test.tssdks/python/tests/test_secret_substitution.pysrc/boxlite/src/jailer/mod.rssrc/deps/libgvproxy-sys/gvproxy-bridge/mitm.gosrc/shim/src/main.rs
Fix SDK network/secrets integration failures by avoiding the current VMM seccomp/gvproxy conflict and making MITM TLS validation work inside the jail.
Test plan:
Summary by CodeRabbit