redact

package
v3.63.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package redact provides functions for determining values to redact.

Index

Constants

View Source
const LengthMin = 6

LengthMin is the shortest string length that will be considered a potential secret by the environment redactor. e.g. if the redactor is configured to filter out environment variables matching *_TOKEN, and API_TOKEN is set to "none", this minimum length will prevent the word "none" from being redacted from useful log output.

Variables

This section is empty.

Functions

func Redact

func Redact([]byte) []byte

Redact ignores its input and returns "[REDACTED]".

func Values

func Values(logger shell.Logger, patterns []string, environment map[string]string) []string

Values returns the variable Values to be redacted, given a redaction config string and an environment map.

func Vars

func Vars(logger shell.Logger, patterns []string, environment map[string]string) map[string]string

Vars returns the variable names and values to be redacted, given a redaction config string and an environment map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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