Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDexConfigYAML ¶
func GenerateDexConfigYAML(settings *settings.ArgoCDSettings) ([]byte, error)
func NewDexHTTPReverseProxy ¶
func NewDexHTTPReverseProxy(serverAddr string) 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)
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