Skip to content

refactor: simplify cap printing, isolation veto, gitignore CLAUDE.md#2

Merged
KrakoX merged 3 commits intomainfrom
refactor/simplify-cap-printing-and-isolation-veto
Mar 20, 2026
Merged

refactor: simplify cap printing, isolation veto, gitignore CLAUDE.md#2
KrakoX merged 3 commits intomainfrom
refactor/simplify-cap-printing-and-isolation-veto

Conversation

@KrakoX
Copy link
Copy Markdown
Owner

@KrakoX KrakoX commented Mar 20, 2026

Summary

  • Simplify printCapabilities: replace 3-pass flag-setting + duplicate print loops with a single pre-collect pass into severe/notable slices
  • Remove dead code: HasDangerousCapability method and TestHasDangerousCapability were unreferenced after the two-tier capability rewrite
  • Fix namespace isolation label: --network=host and --pid=host now correctly show MODERATE instead of STRONG — sharing host Net or PID namespace is vetoed regardless of other namespace counts
  • Gitignore CLAUDE.md: keep Claude context local, out of the repository

KrakoX added 3 commits March 20, 2026 11:04
Replace 3-pass flag-setting + duplicate print loop with a single pre-collect
pass into severe/notable slices. Remove HasDangerousCapability method and its
test — both became dead code after the two-tier rewrite.
Sharing the host network or PID namespace has documented host-escape
consequences (lateral movement, ptrace injection) regardless of other
namespace counts. Previously both --network=host and the default container
landed at STRONG; now high-risk shared namespaces veto STRONG.
@KrakoX KrakoX merged commit 7826b1c into main Mar 20, 2026
3 checks passed
@KrakoX KrakoX deleted the refactor/simplify-cap-printing-and-isolation-veto branch March 20, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant