Documentation ¶
Overview ¶
Package reproxy contains a handler for re-proxying traffic through the http controlplane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
The Handler looks for an X-Pomerium-Reproxy-Policy header and if found re-proxies the request upstream to the destination.
This is used to forward requests to Kubernetes with headers split to multiple values instead of coalesced via a comma. (https://github.com/kubernetes/kubernetes/issues/94683) If the upstream issue is fixed we will remove this.
func (*Handler) GetPolicyIDFromHeaders ¶
GetPolicyIDFromHeaders gets a policy id from http headers. If no policy id is found or the HMAC isn't valid, false will be returned.
func (*Handler) GetPolicyIDHeaders ¶
GetPolicyIDHeaders returns http headers for the given policy id.
func (*Handler) Middleware ¶
Middleware returns an HTTP middleware for handling reproxying.