mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 16:37:24 +02:00
core/config: remove cookie secure option (#4907)
This commit is contained in:
parent
d5b4910951
commit
f684910ab3
9 changed files with 431 additions and 452 deletions
|
@ -63,7 +63,6 @@ func Test_Validate(t *testing.T) {
|
|||
badSignoutRedirectURL.SignOutRedirectURLString = "--"
|
||||
badCookieSettings := testOptions()
|
||||
badCookieSettings.CookieSameSite = "none"
|
||||
badCookieSettings.CookieSecure = false
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
@ -78,7 +77,6 @@ func Test_Validate(t *testing.T) {
|
|||
{"invalid databroker storage type", invalidStorageType, true},
|
||||
{"missing databroker storage dsn", missingStorageDSN, true},
|
||||
{"invalid signout redirect url", badSignoutRedirectURL, true},
|
||||
{"CookieSameSite none with CookieSecure fale", badCookieSettings, true},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
@ -404,7 +402,6 @@ func TestOptionsFromViper(t *testing.T) {
|
|||
&Options{
|
||||
Policies: []Policy{{From: "https://from.example", To: mustParseWeightedURLs(t, "https://to.example")}},
|
||||
CookieName: "_pomerium",
|
||||
CookieSecure: true,
|
||||
InsecureServer: true,
|
||||
CookieHTTPOnly: true,
|
||||
AuthenticateCallbackPath: "/oauth2/callback",
|
||||
|
@ -421,7 +418,6 @@ func TestOptionsFromViper(t *testing.T) {
|
|||
Policies: []Policy{{From: "https://from.example", To: mustParseWeightedURLs(t, "https://to.example")}},
|
||||
CookieName: "_pomerium",
|
||||
AuthenticateCallbackPath: "/oauth2/callback",
|
||||
CookieSecure: true,
|
||||
CookieHTTPOnly: true,
|
||||
InsecureServer: true,
|
||||
SetResponseHeaders: map[string]string{"disable": "true"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue