Documentation ¶
Index ¶
- func DexServerAddressWithProtocol(orig string, tlsConfig *DexTLSConfig) string
- func GenerateDexConfigYAML(argocdSettings *settings.ArgoCDSettings, disableTls bool) ([]byte, error)
- func NewDexHTTPReverseProxy(serverAddr string, baseHRef string, tlsConfig *DexTLSConfig) func(writer http.ResponseWriter, request *http.Request)
- func TLSConfig(tlsConfig *DexTLSConfig) *tls.Config
- type DexRewriteURLRoundTripper
- type DexTLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DexServerAddressWithProtocol ¶ added in v2.5.0
func DexServerAddressWithProtocol(orig string, tlsConfig *DexTLSConfig) string
func GenerateDexConfigYAML ¶
func GenerateDexConfigYAML(argocdSettings *settings.ArgoCDSettings, 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 Argo CD API server wants to proxy requests at /api/dex, then the dex config yaml issuer URL should also be /api/dex (e.g. issuer: https://argocd.example.com/api/dex)
func TLSConfig ¶ added in v2.5.0
func TLSConfig(tlsConfig *DexTLSConfig) *tls.Config
Types ¶
type DexRewriteURLRoundTripper ¶
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 Argo CD through its externally facing load balancer, which is not always permitted in firewalled/air-gapped networks.
func NewDexRewriteURLRoundTripper ¶
func NewDexRewriteURLRoundTripper(dexServerAddr string, t http.RoundTripper) DexRewriteURLRoundTripper
NewDexRewriteURLRoundTripper creates a new DexRewriteURLRoundTripper