fix(auth): enforce PAM account stack and default session cookie to Secure
build-and-release / release (push) Successful in 3m1s
build-and-release / release (push) Successful in 3m1s
This commit is contained in:
@@ -316,7 +316,10 @@ skipConfigPrompt:
|
||||
certLine = "# tls_cert: /var/lib/nadir/tls/cert.pem"
|
||||
keyLine = "# tls_key: /var/lib/nadir/tls/key.pem"
|
||||
} else if isTrustProxy {
|
||||
secureTLSVal = "false"
|
||||
// The proxy terminates TLS, so the browser<->proxy leg is still HTTPS -
|
||||
// the cookie stays Secure. Only the proxy<->nadir hop is plaintext, and
|
||||
// the browser never sees it.
|
||||
secureTLSVal = "true"
|
||||
trustProxyLine = "trust_proxy: true"
|
||||
certLine = "# tls_cert: /var/lib/nadir/tls/cert.pem"
|
||||
keyLine = "# tls_key: /var/lib/nadir/tls/key.pem"
|
||||
|
||||
Reference in New Issue
Block a user