oidc

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// dex certificate
	DexCertCN         = "oidc-dex"
	DexCertSecretName = "oidc-dex-cert"
	// gangway certificate
	GangwayCertCN         = "oidc-gangway"
	GangwayCertSecretName = "oidc-gangway-cert"

	// oidc client secret
	ClientSecretName        = "oidc-client-secret"
	ClientSecretKey_Gangway = "gangway"

	// gangway session key
	GangwaySecretName        = "oidc-gangway-secret"
	GangwaySecret_SessionKey = "session-key"
)

Variables

This section is empty.

Functions

func CreateOrUpdateToSecret

func CreateOrUpdateToSecret(client clientset.Interface, secretName, key string, value []byte) error

CreateOrUpdateToSecret create/update key=value to secret

func CreateServerCert

func CreateServerCert(client clientset.Interface, pkiPath, certCN, controlPlaneHost, certSecretName string) error

CreateServerCert creates a server certificate with subject alternative name (SAN) issued by kubernetes CA cert/key pair

func IsSecretExist

func IsSecretExist(client clientset.Interface, secretName string) (bool, error)

IsSecretExist checks if the secret in namespace kube-system exist

func RandomGenerateWithLength

func RandomGenerateWithLength(len int) ([]byte, error)

RandomGenerateWithLength generates random byte slice with specified length

Types

This section is empty.

Jump to

Keyboard shortcuts

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