urlsanitizer

package
v2.3.0-dev Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package urlsanitizer provides utilities for sanitizing URLs and DSNs by removing sensitive information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeURL

func SanitizeURL(rawURL string) string

SanitizeURL removes user credentials from URLs for safe logging. It uses Go's built-in url.Redacted() when possible, which preserves usernames but redacts passwords. If the URL can't be parsed but appears to contain credentials, it's fully redacted for security.

Types

This section is empty.

Jump to

Keyboard shortcuts

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