Skip to content

Allow configuring headers to forward from the original request #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format code using 'go fmt'
  • Loading branch information
toanhminh0412 committed Jun 24, 2024
commit a76f1d111ad1d4f3ad5221a1178a97a51c7b248e
2 changes: 1 addition & 1 deletion internal/authorization/rbac/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
// This creates a higher guarantee that your informer’s store has a perfect picture of the resources it is watching.
// There are situations where events can be missed entirely and resyncing every so often solves this.
// Setting to 0 disables the resync and makes the informer subscribe to individual updates only.
defaultResyncDuration = time.Minute * 10
defaultResyncDuration = time.Minute * 10
)

// Logger is an interface for basic log output
Expand Down
2 changes: 1 addition & 1 deletion internal/configuration/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Config struct {
GroupClaimPrefix string `long:"group-claim-prefix" env:"GROUP_CLAIM_PREFIX" default:"oidc:" description:"prefix oidc group claims with this value"`
EncryptionKeyString string `long:"encryption-key" env:"ENCRYPTION_KEY" description:"Encryption key used to encrypt the cookie (required)" json:"-"`
GroupsAttributeName string `long:"groups-attribute-name" env:"GROUPS_ATTRIBUTE_NAME" default:"groups" description:"Map the correct attribute that contain the user groups"`
ForwardHeaders string `long:"forward-headers" env:"FORWARD_HEADERS" default:"" description:"Headers to forward to the upstream, separated by a comma. For example: X-CSRF-Token,X-Requested-With"`
ForwardHeaders string `long:"forward-headers" env:"FORWARD_HEADERS" default:"" description:"Headers to forward to the upstream, separated by a comma. For example: X-CSRF-Token,X-Requested-With"`

// RBAC
EnableRBAC bool `long:"enable-rbac" env:"ENABLE_RBAC" description:"Indicates that RBAC support should be enabled"`
Expand Down