feat: Shell sandbox with flanksource/sandbox-runtime#1782
Conversation
BenchstatBase: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds optional sandboxed command execution: the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Exec.Run
participant Resolver as createCommandFromScript
participant Sandbox as Sandbox Runtime
participant OS as OS (exec.Command)
Caller->>Resolver: call createCommandFromScript(ctx, script, envs, setup, runID, sb)
alt sb != nil (sandbox provided)
Resolver->>Sandbox: sb.Command(ctx, resolved, args...)
Sandbox-->>Resolver: sandboxed Cmd
Resolver->>Resolver: apply envs to Cmd
Resolver-->>Caller: return sandboxed Cmd
else sb == nil (no sandbox)
Resolver->>OS: exec.CommandContext(ctx, resolved, args...)
OS-->>Resolver: os Cmd
Resolver->>Resolver: apply envs to Cmd
Resolver-->>Caller: return os Cmd
end
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
a30930a to
30fbeab
Compare
30fbeab to
663b9a6
Compare
663b9a6 to
0aad002
Compare
Uses flanksource/sandbox-runtime to restrict network and filesystem access when running playbook exec actions. Depends on flanksource/duty#1782.
Uses flanksource/sandbox-runtime to restrict network and filesystem access when running playbook exec actions. Depends on flanksource/duty#1782.
Uses flanksource/sandbox-runtime to restrict network and filesystem access when running playbook exec actions. Depends on flanksource/duty#1782.
Uses flanksource/sandbox-runtime to restrict network and filesystem access when running playbook exec actions. Depends on flanksource/duty#1782.
Uses flanksource/sandbox-runtime to restrict network and filesystem access when running playbook exec actions. Depends on flanksource/duty#1782.
Summary by CodeRabbit
New Features
Chores