dex

package
v1.8.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DexServerAddressWithProtocol added in v1.8.8

func DexServerAddressWithProtocol(orig string, tlsConfig *DexTLSConfig) string

func GenerateDexConfigYAML

func GenerateDexConfigYAML(cdSettings *settings.Settings, disableTLS bool) ([]byte, error)

func NewDexHTTPReverseProxy

func NewDexHTTPReverseProxy(serverAddr string, baseHRef string, tlsConfig *DexTLSConfig) func(writer http.ResponseWriter, request *http.Request)

NewDexHTTPReverseProxy returns a reverse proxy to the Dex server. Dex is assumed to be configured with the external issuer URL muxed to the same path configured in server.go. In other words, if Hanzo CD API server wants to proxy requests at /v1/dex, then the dex config yaml issuer URL should also be /v1/dex (e.g. issuer: https://cd.example.com/v1/dex)

func TLSConfig added in v1.8.8

func TLSConfig(tlsConfig *DexTLSConfig) *tls.Config

Types

type DexRewriteURLRoundTripper added in v0.12.0

type DexRewriteURLRoundTripper struct {
	DexURL *url.URL
	T      http.RoundTripper
}

DexRewriteURLRoundTripper is an HTTP RoundTripper to rewrite HTTP requests to the specified dex server address. This is used when reverse proxying Dex to avoid the API server from unnecessarily communicating to Hanzo CD through its externally facing load balancer, which is not always permitted in firewalled/air-gapped networks.

func NewDexRewriteURLRoundTripper added in v0.12.0

func NewDexRewriteURLRoundTripper(dexServerAddr string, t http.RoundTripper) DexRewriteURLRoundTripper

NewDexRewriteURLRoundTripper creates a new DexRewriteURLRoundTripper

func (DexRewriteURLRoundTripper) RoundTrip added in v0.12.0

type DexTLSConfig added in v1.8.8

type DexTLSConfig struct {
	DisableTLS       bool
	StrictValidation bool
	RootCAs          *x509.CertPool
	Certificate      []byte
}

Jump to

Keyboard shortcuts

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