proxy

package
v0.0.0-...-283a394 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 27 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 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(restConfig *rest.Config,
	oidcOptions *options.OIDCAuthenticationOptions,
	auditOptions *options.AuditOptions,
	tokenReviewer *tokenreview.TokenReview,
	subjectAccessReviewer *subjectaccessreview.SubjectAccessReview,
	ssinfo *server.SecureServingInfo,
	config *Config) (*Proxy, error)

func (*Proxy) OIDCTokenAuthenticator

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

Return the proxy OIDC token authenticator

func (*Proxy) RoundTrip

func (p *Proxy) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip is called last and is used to manipulate the forwarded request using context.

func (*Proxy) Run

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

func (*Proxy) RunPreShutdownHooks

func (p *Proxy) RunPreShutdownHooks() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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