package urlutil

import "github.com/moby/buildkit/util/urlutil"

Index

Functions

func RedactCredentials

func RedactCredentials(s string) string

RedactCredentials takes a URL and redacts username and password from it. e.g. "https://user:password@host.tld/path.git" will be changed to "https://xxxxx:xxxxx@host.tld/path.git".

Source Files

redact.go

Version
v0.21.1 (latest)
Published
Apr 29, 2025
Platform
js/wasm
Imports
1 packages
Last checked
10 minutes ago

Tools for package owners.