Commit 7b4cdfd
Allow empty AllowedHosts in EgressPolicy for deny-all
Remove the validation that rejected an EgressPolicy with an empty
AllowedHosts slice. An empty list now means "deny all egress" — the
firewall default is set to Deny and no hosts are whitelisted, so no
outbound connections are permitted.
Fixes #54
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b6e791b commit 7b4cdfd
2 files changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 80 | | |
84 | 81 | | |
85 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
630 | 648 | | |
631 | 649 | | |
632 | 650 | | |
| |||
642 | 660 | | |
643 | 661 | | |
644 | 662 | | |
645 | | - | |
| 663 | + | |
646 | 664 | | |
647 | 665 | | |
648 | 666 | | |
| |||
651 | 669 | | |
652 | 670 | | |
653 | 671 | | |
| 672 | + | |
| 673 | + | |
654 | 674 | | |
655 | | - | |
| 675 | + | |
656 | 676 | | |
657 | 677 | | |
658 | 678 | | |
| |||
0 commit comments