-
-
Notifications
You must be signed in to change notification settings - Fork 670
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
fix: Fix the auth proxy trust by ensuring the proxy is in the trust #499
base: master
Are you sure you want to change the base?
Changes from 5 commits
ae60dee
2bff727
6a19dad
db50d6c
df7ac96
1188aa7
d8d2470
66038c2
3f3104e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import { ServerOptions } from 'https'; | ||
|
||
type LoginMethod = 'password' | 'header' | 'openid'; | ||
|
||
export interface Config { | ||
mode: 'test' | 'development'; | ||
loginMethod: 'password' | 'header' | 'openid'; | ||
loginMethod: LoginMethod; | ||
allowedLoginMethods: LoginMethod[]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have |
||
trustedProxies: string[]; | ||
trustedAuthProxies?: string[]; | ||
dataDir: string; | ||
projectRoot: string; | ||
port: number; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
category: Bugfix | ||
authors: [twk3] | ||
--- | ||
|
||
Fix the auth proxy trust by ensuring the proxy is in the trust |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a security improvement.
getLoginMethod
prefers whatever's in the clientSide request. This allows us to reject that if the server admin has decided they don't want header auth enabled.