Skip to content

Conversation

f0ssel
Copy link
Collaborator

@f0ssel f0ssel commented Sep 9, 2025

Summary

  • Rename package netjail to network
  • Remove deny rules, support only --allow flag
  • Add CI for Linux and macOS testing

Changes

  • Package rename: Updated imports, variables, and directory structure
  • Rules simplification: Removed deny functionality, default deny when no allow rules match
  • CI: GitHub Actions workflow testing platform-specific network isolation code

🤖 Generated with Claude Code

f0ssel and others added 3 commits September 9, 2025 13:26
- Rename Go package from netjail → boundary → cell → network
- Update all import paths and variable references accordingly
- Rename directory structure: netjail/ → network/
- Update configuration strings and namespace prefixes

Simplify rules system to support only --allow flag:
- Remove deny-related code and logic from rules engine
- Remove newRule() function, keep only newAllowRule()
- Simplify Rule struct by removing Action field
- Update RuleEngine.Evaluate() to only process allow rules
- Default to deny when no allow rules match
- Comprehensive test updates for allow-only functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Run tests on ubuntu-latest and macos-latest
- Test platform-specific network isolation code
- Use Go 1.25 with race detection enabled
- Cache Go modules for faster builds
- Trigger on all pushes and pull requests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@f0ssel f0ssel changed the title Rename package to network and simplify rules to allow-only Rename netjail to network, simplify rules to allow-only Sep 9, 2025
@f0ssel
Copy link
Collaborator Author

f0ssel commented Sep 9, 2025

Still some styling I'm not a fan of but will continue to groom

@f0ssel f0ssel merged commit 84939d4 into main Sep 9, 2025
4 checks passed
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.

2 participants