networkpolicy

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBlockedHTTPHosts = []string{
	"metadata.google.internal",
	"metadata.goog",
	"metadata.azure.com",
	"169.254.169.254",
	"fd00:ec2::254",
	"kubernetes.default",
	"kubernetes.default.svc",
	"kubernetes.default.svc.cluster.local",
	"localhost",
	"127.0.0.1",
	"::1",
	"0.0.0.0",
	"::",
}
View Source
var DefaultBlockedPrivateIPRanges = []string{
	"0.0.0.0/8",
	"10.0.0.0/8",
	"172.16.0.0/12",
	"192.168.0.0/16",
	"127.0.0.0/8",
	"169.254.0.0/16",
	"::1/128",
	"fc00::/7",
	"fe80::/10",
}

Functions

This section is empty.

Types

type HTTPPolicy

type HTTPPolicy struct {
	AllowPrivateNetworkAccess bool
	BlockedHosts              []string
	PrivateIPRanges           []string
	BlockedHostsOverridden    bool
	PrivateIPRangesOverridden bool
}

func ResolveHTTPPolicy

func ResolveHTTPPolicy() (*HTTPPolicy, error)

func ResolveHTTPPolicyForSetting

func ResolveHTTPPolicyForSetting(allowPrivateNetworkAccess bool) *HTTPPolicy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL