Skip to content
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

structured config #3: support for proxy options #2630

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

tuunit
Copy link
Member

@tuunit tuunit commented May 4, 2024

Description

Adding support for proxy behaviour options:

	AllowQuerySemicolons  bool     `json:"allowQuerySemicolons,omitempty"`
	ForceHTTPS            bool     `json:"forceHttps,omitempty"`
	SkipAuthRegex         []string `json:"skipAuthRegex,omitempty"`
	SkipAuthRoutes        []string `json:"skipAuthRoutes,omitempty"`
	SkipAuthPreflight     bool     `json:"skipAuthPreflight,omitempty"`
	SSLInsecureSkipVerify bool     `json:"sslInsecureSkipVerify,omitempty"`
	TrustedIPs            []string `json:"trustedIPs,omitempty"`

	// authentication
	AuthenticatedEmailsFile string   `json:"authenticatedEmailsFile,omitempty"`
	EmailDomains            []string `json:"emailDomains,omitempty"`
	WhitelistDomains        []string `json:"whitelistDomains,omitempty"`
	HtpasswdFile            string   `json:"htpasswdFile,omitempty"`
	HtpasswdUserGroups      []string `json:"htpasswdUserGroups,omitempty"`
	SkipJwtBearerTokens     bool     `json:"skipJwtBearerTokens,omitempty"`
	ExtraJwtIssuers         []string `json:"extraJwtIssuers,omitempty"`

	// routing
	APIRoutes           []string `json:"apiRoutes,omitempty"`
	ReverseProxy        bool     `json:"reverseProxy,omitempty"`
	ProxyPrefix         string   `json:"proxyPrefix,omitempty"`
	RedirectURL         string   `json:"redirectUrl,omitempty"`
	RelativeRedirectURL bool     `json:"relativeRedirectUrl,omitempty"`
	RealClientIPHeader  string   `json:"realClientIPHeader,omitempty"`
	SkipProviderButton  bool     `json:"skipProviderButton,omitempty"`
	EncodeState         bool     `json:"encodeState,omitempty"`

	// Force oauth2-proxy error responses to be JSON
	ForceJSONErrors bool `json:"forceJsonErrors,omitempty"`

	// This is used for backwards compatibility
	LegacyPreferEmailToUser bool   `json:"legacyPreferEmailToUser,omitempty"`
	LegacySignatureKey      string `json:"legacySignatureKey,omitempty"`

How Has This Been Tested?

  1. Test cases have been extend / adapted.
  2. Starting the application with toml config file
  3. Using the conversion function from toml to yaml
  4. Starting the application with yaml config file

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.
  • I have written tests for my code changes.

@tuunit tuunit force-pushed the support-for-proxy-options branch from ad9c7b2 to 18c7210 Compare May 4, 2024 18:36
@tuunit tuunit changed the title Support for proxy options structured logging #3: support for proxy options May 4, 2024
@tuunit tuunit changed the title structured logging #3: support for proxy options structured config #3: support for proxy options May 4, 2024
@tuunit tuunit force-pushed the support-for-proxy-options branch 2 times, most recently from 3b2152d to 1b33cdf Compare May 10, 2024 06:43
@tuunit tuunit marked this pull request as ready for review May 10, 2024 07:34
@tuunit tuunit requested a review from a team as a code owner May 10, 2024 07:35
@tuunit tuunit force-pushed the support-for-proxy-options branch from 31c480d to 27fcf78 Compare May 12, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant