oauth2-proxy/pkg/apis/options
Nick Meves abeb0236d8
Strip X-Forwarded auth headers from whitelisted paths (#624)
* Strip X-Forwarded auth headers from whitelisted paths

For any paths that match skip-auth-regex, strip normal
X-Forwarded headers that would be sent based on pass-user-headers
or pass-access-token settings. This prevents malicious injecting
of authentication headers through the skip-auth-regex paths in
cases where the regex might be misconfigured and too open.
Control this behavior with --skip-auth-strip-headers flag. This
flag is set to TRUE by default (this is secure by default, but
potentially breaks some legacy configurations).

Only x-Forwarded headers stripped, left the Authorization header
untouched.

* Strip authorization header if it would be set

* Improve TestStripAuthHeaders test table

* Improve --skip-auth-strip-headers flag documentation
2020-07-14 23:46:44 +01:00
..
cookie.go Rename CookieOptions to Cookie 2020-07-05 09:18:21 +01:00
load.go Return an error when unknown options are found in the config file 2020-04-29 20:00:16 +01:00
load_test.go Move FlagSet to Options package 2020-05-21 22:43:42 +01:00
logging.go Ensure exclude-logging-paths is consistent with other options 2020-05-31 14:09:28 +01:00
options.go Strip X-Forwarded auth headers from whitelisted paths (#624) 2020-07-14 23:46:44 +01:00
sessions.go Add option to remove tokens from cookie sessions (#673) 2020-07-14 23:02:10 +01:00
upstreams.go Add Upstreams options struct with validation 2020-07-05 10:21:05 +01:00