secret

package
v0.0.0-...-995dfc6 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenXClientIDKey      = "TOKEN_X_CLIENT_ID"
	TokenXIssuerKey        = "TOKEN_X_ISSUER"
	TokenXJwksURIKey       = "TOKEN_X_JWKS_URI"
	TokenXPrivateJWKKey    = "TOKEN_X_PRIVATE_JWK"
	TokenXTokenEndpointKey = "TOKEN_X_TOKEN_ENDPOINT"
	TokenXWellKnownURLKey  = "TOKEN_X_WELL_KNOWN_URL"

	TokenXSecretLabelKey  = "type"
	TokenXSecretLabelType = "jwker.nais.io"

	StakaterReloaderAnnotationKey = "reloader.stakater.com/match"
)

Variables

View Source
var ErrNotFound = fmt.Errorf("not found")

Functions

func CreateSecretSpec

func CreateSecretSpec(secretName string, data Data) (*corev1.Secret, error)

func ExtractCurrentJWK

func ExtractCurrentJWK(secretName string, secrets kubernetes.SecretLists) (jose.JSONWebKey, error)

func ExtractJWK

func ExtractJWK(sec corev1.Secret) (jose.JSONWebKey, error)

func ExtractPreviousInUseJWKSet

func ExtractPreviousInUseJWKSet(secrets kubernetes.SecretLists) (jose.JSONWebKeySet, error)

func Labels

func Labels(appName string) map[string]string

Types

type Data

type Data struct {
	ClientID   tokendings.ClientID
	Jwk        jose.JSONWebKey
	Tokendings tokendings.Instance
}

Jump to

Keyboard shortcuts

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