Repository navigation
Description
Friction
Part of the tracker #772 (decision 2: "popeye has one named profile with the network"). Since #2096, a review runs its tools in the network-less sandbox. Popeye is not a review tool: devops k8s audit calls run_popeye_scan(workdir=...), which makes PopeyeScanner() with no executor, so BaseSecurityScanner gives it a DirectToolExecutor. The global ScannerRegistry builds Popeye the same way. Popeye thus runs with the parent's environment and full network, not in the sandbox.
What should happen
Popeye runs in the sandbox with one named profile that opens only the network that Popeye needs (the Kubernetes API server of the current context) and binds the kubeconfig read-only. No other tool can select that profile.
Evidence
- The feat(review): a review runs its tools in the network-less sandbox by default #2096 delivery (2026-10-24):
commands/k8s/security_audit.pycallsrun_popeye_scan, andsecurity/popeye.pymakesPopeyeScanner()with no executor.
Acceptance criteria
-
devops k8s auditruns Popeye through the sandbox with the named network profile, and a test asserts the profile's bwrap arguments. - No other scanner can run with that profile, and a test fails if one does.
Source: #772
Proposed design
Problem statement
Popeye runs without sandboxing and full network access. It should run in a sandbox with limited network profile.
Acceptance criteria
- Criterion 1: devops k8s audit runs Popeye through the sandbox with the named network profile.
Verification: Run devops k8s audit and check that popeye executes in sandbox with correct bwrap arguments. - Criterion 2: No other scanner can run with that specific network profile.
Verification: Attempt to run another scanner with the popeye-specific profile and verify it fails or is blocked.
Key questions
- What is the current execution method of Popeye?: Popeye runs through a DirectToolExecutor because no executor is passed to PopeyeScanner. [sources: src/devops_cli/security/popeye.py]
- How does the global ScannerRegistry build Popeye?: The global ScannerRegistry builds Popeye with no executor, which defaults to DirectToolExecutor. [sources: src/devops_cli/security/popeye.py]
Open questions
- What network profile must be used for Popeye? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate addresses security by ensuring popeye runs in a sandboxed environment with limited network access.This change improves security by restricting popeye's network access to only what is necessary for Kubernetes API communication.Improving security for a tool that audits Kubernetes configurations provides high value to users.Implementing sandboxing with specific network profiles requires changes to the tool executor and sandbox configuration.Both items relate to sandboxing tools, but item 2096 describes general sandboxing for review tools while the candidate focuses on popeye's specific sandbox profile.feat(review): a review runs its tools in the network-less sandbox by …
dan-petty commentedon Oct 26, 2026
Refine cannot set this item to Ready at 48c78ca until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
docs(openspec): plan the kube-api network profile that runs Popeye in…
feat(security): only Popeye can select the kube-api network profile, …
feat(security): a kube-api run reaches the Kubernetes API server only…
feat(k8s): devops k8s audit runs Popeye in the sandbox with the kube-…
docs(security): describe the kube-api network profile and the network…
refactor(security): import contextlib one time in the tool executor
feat(security): devops k8s audit runs Popeye in the tool sandbox with…