secrets

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package secrets keeps the values a scenario read as secrets (FR-CLI-17) out of everything VegaLoad writes or prints. A value is registered once, when the run starts. Output that could carry text a script produced (a check name, a console line, an error message, an audit record) goes through Redact first.

Redact replaces every occurrence of a registered value with a marker. It cannot find a secret the script has changed, for example one it has base64-encoded or split in two. It is a safety net for the common mistake of printing or logging a value, not a guarantee against a script that tries to hide one.

Index

Constants

View Source
const Marker = "[redacted]"

Marker replaces a secret in redacted text.

Variables

This section is empty.

Functions

func Redact

func Redact(s string) string

Redact returns s with every registered secret replaced by Marker.

func Register

func Register(v string)

Register adds v to the secrets Redact removes. An empty value is ignored, since it would match everywhere.

func Reset

func Reset()

Reset forgets every registered secret. It is for tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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