data_masks

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const RedactionString = "*REDACTED*"

Variables

This section is empty.

Functions

func ZeroAllPrimitivesInMethod

func ZeroAllPrimitivesInMethod(m *pb.Method)

Replaces all primitive values in the given method with zero values.

Types

type Redactor

type Redactor struct {
	SensitiveDataKeys          sets.Set[string]
	SensitiveDataValuePatterns []*regexp.Regexp
	// contains filtered or unexported fields
}

Replaces sensitive data with a redaction string.

func NewRedactor

func NewRedactor(
	serviceID akid.ServiceID,
	learnClient rest.LearnClient,
) (*Redactor, error)

Creates a redactor for the given service ID. Uses the given learn client to periodically update its dynamic configuration from the back end.

func (*Redactor) RedactSensitiveData

func (o *Redactor) RedactSensitiveData(m *pb.Method)

func (*Redactor) StopPeriodicUpdates

func (o *Redactor) StopPeriodicUpdates()

Jump to

Keyboard shortcuts

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