ssrf

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ssrf provides SSRF-safe HTTP transport that blocks connections to private/reserved IP addresses. Used by OIDC and CIMD adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrivateIP

func IsPrivateIP(ip net.IP) bool

IsPrivateIP returns true if the given IP is in a private or reserved range.

func NewSafeTransport

func NewSafeTransport() *http.Transport

NewSafeTransport returns an http.Transport that blocks connections to private/reserved IP addresses. Used for outbound HTTP requests (OIDC discovery, CIMD fetch, etc.) to prevent SSRF attacks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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