Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockedCIDRs ¶
func BlockedCIDRs() []string
func LoopbackAllowCIDRs ¶ added in v0.5.0
func LoopbackAllowCIDRs() []string
LoopbackAllowCIDRs is the loopback-only subset of the allow presets (P1-3, orkome pack rollout): 127.0.0.0/8 + ::1, deliberately WITHOUT the rest of RFC1918 or link-local — the shape local integration tests against a loopback pack/dev server want. NewGuard(LoopbackAllowCIDRs()) keeps every other private range blocked. Production allowlists should enumerate the exact destinations they need, not widen further.
func PrivateAllowCIDRs ¶
func PrivateAllowCIDRs() []string
Types ¶
type Guard ¶
type Guard struct {
// contains filtered or unexported fields
}
func DefaultGuard ¶
func DefaultGuard() *Guard
Click to show internal directories.
Click to hide internal directories.