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
Click to show internal directories.
Click to hide internal directories.