OAuth2: Add samesite attribute support for all OAuth2 supported cookie types (#37952)
Commit Message: OAuth2: Add samesite attribute support for all OAuth2 supported cookie types Additional Description: The SameSite attribute offers three values to control whether cookies are shared within the same site or across different sites. It's an optional setting, with a "Disabled" option that omits the SameSite attribute altogether. By default, this setting is disabled to ensure no changes are made to existing deployments, but operators now have the option to enable SameSite. The six cookies supporting SameSite attribute are: bearer_token_cookie hmac_cookie expires_cookie id_token_cookie refresh_token_cookie nonce_cookie The samesite attribute value allowed are: Strict Lax None Disabled (Default, if no value is set in config) The operator can also optionally do not specify any SameSite attributes for cookie. This will result DISABLED value to be set for all cookie's SameSite attribute value. in this case no same site attribute will be returned by filter. The operator can also choose different same site attribute to be configured by different cookies. This means the SameSite attributes for different cookies listed above can be different. Also the operator can optionally specify SameSite attribute for some cookie but miss it for others. it is not mandatory to specify SameSite explicitly for all cookies Risk Level: Medium Testing: unit Docs Changes: proto is documented Release Notes: changelog entry added --------- Signed-off-by: Yueren Wang <yuerenwang@lyft.com> Signed-off-by: Yueren Wang <yuerenwang@tm4wwrxcwd.tailbaa43.ts.net> Co-authored-by: Yueren Wang <yuerenwang@tm4wwrxcwd.tailbaa43.ts.net> Mirrored from https://github.com/envoyproxy/envoy @ d76115f5eaaa1ee4756d2542762049e1ad1a149emain
parent
57d08f25ef
commit
d173530940
1 changed files with 39 additions and 1 deletions
Loading…
Reference in new issue