hooks

package
v1.77.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 41 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const IDTokenTTLValueKey = "userAuthn:idTokenTTL"

IDTokenTTLValueKey is where the hook stores the idTokenTTL of the user-authn ModuleConfig ("" when unset) for the userAuthnIDTokenTTLBelow release requirement.

Variables

This section is empty.

Functions

func SafeDNS1123Name added in v1.73.0

func SafeDNS1123Name(fullOriginalName string) (string, bool, string)

SafeDNS1123Name normalizes and truncates name to DNS-1123 and length <=63. If truncation happens, "-<hash5>" is appended, where hash5 is first 5 hex of sha256(original).

Types

type Credentials

type Credentials struct {
	CookieSecret string `json:"cookieSecret"`
	AppDexSecret string `json:"appDexSecret"`
}

type DexAuthenticator

type DexAuthenticator struct {
	ID          string                 `json:"uuid"`
	EncodedName string                 `json:"encodedName"`
	Name        string                 `json:"name"`
	Namespace   string                 `json:"namespace"`
	Spec        map[string]interface{} `json:"spec"`

	AllowAccessToKubernetes bool        `json:"allowAccessToKubernetes"`
	Credentials             Credentials `json:"credentials"`

	// AllowAccessToKubernetesAnnotation carries the raw annotation value from the filter,
	// which has no logger, to the hook body, which does. It is nil when the annotation is
	// absent, and json:"-" keeps it out of the internal values the templates read.
	AllowAccessToKubernetesAnnotation *string `json:"-"`
}

type DexAuthenticatorSecret

type DexAuthenticatorSecret struct {
	ID          string      `json:"uuid"`
	Name        string      `json:"name"`
	Namespace   string      `json:"namespace"`
	Credentials Credentials `json:"credentials"`
}

type DexCA

type DexCA struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
}

type DexClient

type DexClient struct {
	ID        string `json:"id"`
	EncodedID string `json:"encodedID"`

	Name      string                 `json:"name"`
	Namespace string                 `json:"namespace"`
	Spec      map[string]interface{} `json:"spec"`

	Secret string `json:"clientSecret"`

	// LegacyID and LegacyEncodedID is formatted with a colons delimiter which is impossible to use as a
	//   basic auth credentials part
	LegacyID        string `json:"legacyID"`
	LegacyEncodedID string `json:"legacyEncodedID"`

	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`

	AllowAccessToKubernetes bool `json:"allowAccessToKubernetes"`

	// AllowAccessToKubernetesAnnotation carries the raw annotation value from the filter,
	// which has no logger, to the hook body, which does. It is nil when the annotation is
	// absent, and json:"-" keeps it out of the internal values the templates read.
	AllowAccessToKubernetesAnnotation *string `json:"-"`
}

type DexClientSecret

type DexClientSecret struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Secret    []byte `json:"spec"`
}

type DexProvider

type DexProvider map[string]interface{}

type KubernetesSecret

type KubernetesSecret []byte

type KubernetesServicePort

type KubernetesServicePort intstr.IntOrString

type PublishAPICert

type PublishAPICert struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
}

type PublishAPIConfig added in v1.77.0

type PublishAPIConfig struct {
	Name                        string `json:"name"`
	AddKubeconfigGeneratorEntry []byte `json:"addKubeconfigGeneratorEntry"`
	WhitelistSourceRanges       []byte `json:"whitelistSourceRanges"`
	HTTPSMode                   []byte `json:"httpsMode"`
	IngressClass                []byte `json:"ingressClass"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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