secret

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CosignSecretPrivateKey = "cosign.key"
	CosignSecretPassword   = "cosign.password"
	CosignSecretPublicKey  = "cosign.pub"

	CosignDockerMediaTypesAnnotation = "kpack.io/cosign.docker-media-types"
	CosignRepositoryAnnotation       = "kpack.io/cosign.repository"

	PKCS8SecretKey = "ssh-privatekey"

	SLSASecretAnnotation           = "kpack.io/slsa"
	SLSADockerMediaTypesAnnotation = "kpack.io/slsa.docker-media-types"
)
View Source
const (
	SSHAuthKnownHostsKey = "known_hosts"
)

Variables

This section is empty.

Functions

func FilterCosignSigningSecrets added in v0.13.0

func FilterCosignSigningSecrets(secrets []*corev1.Secret) []*corev1.Secret

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

func ReadBasicAuthSecret

func ReadBasicAuthSecret(secretVolume, secretName string) (BasicAuth, error)

type Fetcher

type Fetcher struct {
	Client k8sclient.Interface

	SystemNamespace          string
	SystemServiceAccountName string
}

func (*Fetcher) SecretsForServiceAccount

func (f *Fetcher) SecretsForServiceAccount(ctx context.Context, serviceAccount, namespace string) ([]*corev1.Secret, error)

func (*Fetcher) SecretsForSystemServiceAccount added in v0.13.0

func (f *Fetcher) SecretsForSystemServiceAccount(ctx context.Context) ([]*corev1.Secret, error)

type KeyType added in v0.13.0

type KeyType int
const (
	CosignKeyType KeyType = iota
	PKCS8KeyType
)

type SSH

type SSH struct {
	PrivateKey string
	KnownHosts string
}

func ReadSshSecret

func ReadSshSecret(secretVolume, secretName string) (SSH, error)

type SigningKey added in v0.13.0

type SigningKey struct {
	SecretName string
	Key        []byte
	Password   []byte
	Type       KeyType
}

func FilterAndExtractSLSASecrets added in v0.13.0

func FilterAndExtractSLSASecrets(secrets []*corev1.Secret) ([]SigningKey, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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