secrets

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AwsAccessKeyPattern = regexp.MustCompile("^AKIA[0-9A-Z]{16}$")
	AwsSecretKeyPattern = regexp.MustCompile("^[A-Za-z0-9/+=]{40}$")
	HashPattern         = regexp.MustCompile("^[0-9a-fA-F]{40}$")
)

Functions

This section is empty.

Types

type AwsSecretScanningResult

type AwsSecretScanningResult struct {
	AccessKey string
	SecretKey string
}

func FindAwsCredentialsInUnstructuredString

func FindAwsCredentialsInUnstructuredString(input string) *AwsSecretScanningResult

type SecretInfo

type SecretInfo struct {
	Namespace string
	Type      string
	Name      string
	Value     string
}

type SecretsDetector

type SecretsDetector struct {
	AwsClient *aws.Config
	K8sClient *kubernetes.Clientset
	Namespace string // empty for all namespaces
}

func (*SecretsDetector) FindSecrets

func (m *SecretsDetector) FindSecrets() ([]*SecretInfo, error)

Jump to

Keyboard shortcuts

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