Attributes
- Companion
- trait
- Source
- UrlPolicy.scala
- Graph
-
- Supertypes
- Self type
-
UrlPolicy.type
Members list
Type members
Classlikes
The built-in policy.
The built-in policy.
Value parameters
- allowPrivateNetworks
-
whether a host may resolve to a loopback, private or other non-public address. The cloud metadata endpoint (
169.254.169.254,fd00:ec2::254,metadata.google.internal,metadata.internal, and169.254.169.254inside a NAT64, IPv4-mapped or 6to4 IPv6 address) stays refused either way. - allowedHosts
-
when non-empty, only these hosts and their subdomains may be fetched (case-insensitive)
- allowedSchemes
-
the URL schemes that may be fetched; the loaders speak only
httpandhttps - blockedHosts
-
hosts that, with their subdomains, are refused in addition to the defaults
- resolver
-
how a host name is resolved:
InetAddress.getAllByNameby default
Attributes
- Companion
- object
- Source
- UrlPolicy.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait UrlPolicyclass Objecttrait Matchableclass AnyShow all
Value members
Concrete fields
Today's SSRF check (NetworkSecurity.validateUrl): http and https, public addresses only, localhost and the cloud metadata host names refused.
Today's SSRF check (NetworkSecurity.validateUrl): http and https, public addresses only, localhost and the cloud metadata host names refused.
Attributes
- Source
- UrlPolicy.scala
Resolves host with InetAddress.getAllByName, which cannot be interrupted (see NetworkSecurity).
Resolves host with InetAddress.getAllByName, which cannot be interrupted (see NetworkSecurity).
Attributes
- Source
- UrlPolicy.scala
