mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
config: add PassIdentityHeaders option (#903)
Currently, user's identity headers are always inserted to downstream request. For privacy reason, it would be better to not insert these headers by default, and let user chose whether to include these headers per=policy basis. Fixes #702
This commit is contained in:
parent
4a3fb5d44b
commit
8d0deb0732
9 changed files with 115 additions and 14 deletions
|
@ -66,3 +66,8 @@ var HeadersXForwarded = []string{
|
|||
HeaderRealIP,
|
||||
HeaderSentFrom,
|
||||
}
|
||||
|
||||
// PomeriumJWTHeaderName returns the header name set by pomerium for given JWT claim field.
|
||||
func PomeriumJWTHeaderName(claim string) string {
|
||||
return "x-pomerium-claim-" + claim
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue