setup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 74 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeJWTAuthenticatorType = "KubeJWTAuthenticator"
)

Variables

This section is empty.

Functions

func New

func New(opts Options) (*setup, error)

func SetupLogging added in v1.1.0

func SetupLogging(levelStr string)

SetupLogging configures the global slog logger

Types

type KubeJWTAuthenticator added in v1.1.0

type KubeJWTAuthenticator struct {
	// contains filtered or unexported fields
}

KubeJWTAuthenticator authenticates K8s JWTs.

func NewKubeJWTAuthenticator added in v1.1.0

func NewKubeJWTAuthenticator(
	client kubernetes.Interface,
) *KubeJWTAuthenticator

NewKubeJWTAuthenticator creates a new kubeJWTAuthenticator.

func (*KubeJWTAuthenticator) Authenticate added in v1.1.0

func (a *KubeJWTAuthenticator) Authenticate(authRequest security.AuthContext) (*security.Caller, error)

Authenticate authenticates the call using the K8s JWT from the request's context

func (*KubeJWTAuthenticator) AuthenticatorType added in v1.1.0

func (a *KubeJWTAuthenticator) AuthenticatorType() string

type Options

type Options struct {
	APIClient                      apiclient.Client
	ExtraInformerCacheSyncHandlers []cache.InformerSynced
	GatewayControllerExtension     pluginsdk.GatewayControllerExtension

	ControllerName              string
	AgentgatewayClassName       string
	AdditionalGatewayClasses    map[string]*deployer.GatewayClassInfo
	ExtraAgwPlugins             func(ctx context.Context, agw *agwplugins.AgwCollections) []agwplugins.AgwPlugin
	HelmValuesGeneratorOverride func(inputs *deployer.Inputs) deployer.HelmValuesGenerator
	XDSListener                 net.Listener
	RestConfig                  *rest.Config
	CtrlMgrOptions              func(context.Context) *ctrl.Options
	ExtraManagerConfig          []func(mgr manager.Manager) error
	ExtraRunnables              []func(ctx context.Context, agw *agwplugins.AgwCollections, s *apisettings.Settings) (bool, manager.Runnable)
	KrtDebugger                 *krt.DebugHandler
	GlobalSettings              *apisettings.Settings
	LeaderElectionID            string
	ExtraStatusHandlers         map[schema.GroupVersionKind]syncer.ResourceStatusSyncer
	// CredentialResolverFactory builds the complete credential resolver chain.
	// If unset, the built-in Secret resolver is used.
	CredentialResolverFactory agwplugins.CredentialResolverFactory

	AgentGatewaySyncerOptions []syncer.AgentgatewaySyncerOption

	// PersistedJWKS overrides the default JWKS persistence layer.
	// When set, setup uses this instance instead of creating one with DefaultJwksStorePrefix.
	PersistedJWKS *jwks.PersistedEntries
}

type Server added in v1.1.0

type Server interface {
	Start(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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