docs(security): strengthen network guidance

This commit is contained in:
fraujulian committed 2026-09-24 22:03:28 +02:00
1 parent 0041fbe777
commit 6a513de496
1 file changed
+5 -2
+5 -2
View File
@@ -2,5 +2,8 @@
* Use HTTPS and never disable certificate or TLS validation. * Use HTTPS and never disable certificate or TLS validation.
* Restrict inbound and outbound access to required ports, interfaces, hosts, and protocols. * Restrict inbound and outbound access to required ports, interfaces, hosts, and protocols.
* Treat user-controlled URLs as dangerous: allowlist schemes and hosts, block localhost, metadata, and internal ranges, and revalidate redirects. * Treat user-controlled URLs as dangerous. Allowlist schemes and destinations, reject loopback, link-local, private, and cloud metadata ranges unless explicitly needed, and validate the resolved destination.
* Set timeouts, response-size limits, bounded retries, and cancellation for remote operations. * Revalidate every redirect and DNS resolution to prevent redirects, rebinding, or mixed-address answers from bypassing destination restrictions. Disable automatic redirects when they cannot be safely checked.
* Set connection and overall timeouts, response-size limits, bounded concurrency, bounded retries, and cancellation for remote operations.
* Avoid forwarding ambient credentials, cookies, or authorization headers to a new host or redirect target.
* Use controlled egress where possible and avoid exposing internal error details or response bodies from remote services.