Documentation
¶
Overview ¶
Package urlvalidate provides SSRF-prevention checks shared across packages that accept operator-supplied URLs (webhook endpoints, audit export sinks, identity provider verification callbacks, etc.).
The rules are intentionally conservative:
- Only http and https schemes are allowed.
- Link-local addresses (IPv4 169.254.0.0/16, IPv6 fe80::/10) are blocked because they include cloud metadata services and host-local adjacencies.
- A small allowlist of cloud metadata hostnames is blocked outright. DNS is case-insensitive, so the comparison lowercases the hostname before matching — "Metadata.Google.Internal" must not bypass the blocklist.
Placing this in a neutral package lets both pkg/daemon and pkg/registry (which cannot import pkg/daemon) share exactly one implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.