proxy

package
v0.0.0-...-0ffb2bb Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const (
	UserHeaderClientIPKey = "Remote-Client-IP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CAFromFile

type CAFromFile struct {
	CAFile string
}

implement oidc.CAContentProvider to load the ca file from the options

func (CAFromFile) CurrentCABundleContent

func (caFromFile CAFromFile) CurrentCABundleContent() []byte

type ClusterManager

type ClusterManager interface {
	AddOrUpdateCluster(cluster *cluster.Cluster)
	GetCluster(name string) *cluster.Cluster
	GetAllClusters() []*cluster.Cluster
	RemoveCluster(name string)
}

ClusterManager interface for dependency injection

type Config

type Config struct {
	DisableImpersonation bool
	TokenReview          bool

	FlushInterval   time.Duration
	ExternalAddress string

	ExtraUserHeaders                map[string][]string
	ExtraUserHeadersClientIPEnabled bool
}

type Proxy

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

func New

func New(
	oidcOptions *options.OIDCAuthenticationOptions,
	auditOptions *options.AuditOptions,
	ssinfo *server.SecureServingInfo,
	config *Config,
	clusterManager ClusterManager) (*Proxy, error)

func (*Proxy) GetClusterName

func (p *Proxy) GetClusterName(path string) string

func (*Proxy) OIDCTokenAuthenticator

func (p *Proxy) OIDCTokenAuthenticator() authenticator.Token

Return the proxy OIDC token authenticator

func (*Proxy) Run

func (p *Proxy) Run(stopCh <-chan struct{}) (<-chan struct{}, <-chan struct{}, error)

func (*Proxy) RunPreShutdownHooks

func (p *Proxy) RunPreShutdownHooks() error

func (*Proxy) SetupClusterProxy

func (p *Proxy) SetupClusterProxy(cluster *cluster.Cluster) error

func (*Proxy) WithRBACHandler

func (p *Proxy) WithRBACHandler(handler http.Handler) http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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