1package webhook23import (4 "github.com/charmbracelet/soft-serve/pkg/ssrf"5)67// Error aliases for backward compatibility.8var (9 ErrInvalidScheme = ssrf.ErrInvalidScheme10 ErrPrivateIP = ssrf.ErrPrivateIP11 ErrInvalidURL = ssrf.ErrInvalidURL12)1314// ValidateWebhookURL validates that a webhook URL is safe to use.15func ValidateWebhookURL(rawURL string) error {16 return ssrf.ValidateURL(rawURL) //nolint:wrapcheck17}1819// ValidateIPBeforeDial validates an IP address before establishing a connection.20var ValidateIPBeforeDial = ssrf.ValidateIPBeforeDial