secrets

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretBackendOutputMaxSize = 1024 * 1024

SecretBackendOutputMaxSize defines max size of the JSON output from a secrets reader backend

Functions

func Decrypt

func Decrypt(data []byte, origin string) ([]byte, error)

Decrypt encrypted secrets are not available on windows

func Init

func Init(command string, arguments []string, timeout int, maxSize int, groupExecPerm bool)

Init placeholder when compiled without the 'secrets' build tag

Types

type SecretInfo

type SecretInfo struct {
	ExecutablePath string
	Rights         string
	RightDetails   string
	UnixOwner      string
	UnixGroup      string
	SecretsHandles map[string][]string
}

SecretInfo export troubleshooting information about the decrypted secrets

func GetDebugInfo

func GetDebugInfo() (*SecretInfo, error)

GetDebugInfo exposes debug informations about secrets to be included in a flare

func (*SecretInfo) Print

func (si *SecretInfo) Print(w io.Writer)

Print output a SecretInfo to a io.Writer

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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