proxy: remove impersonate headers for kubernetes (#1394)

* proxy: remove impersonate headers for kubernetes

* master on frontend/statik
This commit is contained in:
Caleb Doxsey 2020-09-09 15:24:39 -06:00 committed by GitHub
parent 05d9fbb4b3
commit a19e45334b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 69 additions and 9 deletions

View file

@ -13,8 +13,9 @@ import (
//go:generate go fmt ./luascripts/statik.go
var luascripts struct {
ExtAuthzSetCookie string
CleanUpstream string
ExtAuthzSetCookie string
CleanUpstream string
RemoveImpersonateHeaders string
}
func init() {
@ -24,8 +25,9 @@ func init() {
}
fileToField := map[string]*string{
"/clean-upstream.lua": &luascripts.CleanUpstream,
"/ext-authz-set-cookie.lua": &luascripts.ExtAuthzSetCookie,
"/clean-upstream.lua": &luascripts.CleanUpstream,
"/ext-authz-set-cookie.lua": &luascripts.ExtAuthzSetCookie,
"/remove-impersonate-headers.lua": &luascripts.RemoveImpersonateHeaders,
}
err = fs.Walk(hfs, "/", func(p string, fi os.FileInfo, err error) error {