OAuth2: Add samesite attribute support for all OAuth2 supported cookie types#37952
Conversation
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
|
CC @envoyproxy/coverage-shephards: FYI only for changes made to |
|
/assign @mattklein123 |
|
/retest |
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
|
/retest |
mattklein123
left a comment
There was a problem hiding this comment.
LGTM at a high level modulo outstanding comments.
/wait
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
b00cb60 to
6e5ef61
Compare
|
/ptal @abeyad re-approve required, thx! |
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
|
/retest |
|
/ptal @mattklein123 |
abeyad
left a comment
There was a problem hiding this comment.
/lgtm api
you will also need @mattklein123 approval for the entirety of the PR
Signed-off-by: Yueren Wang <yuerenwang@lyft.com>
|
Sorry needs main merge, thanks. /wait |
Signed-off-by: Yueren Wang <yuerenwang@tm4wwrxcwd.tailbaa43.ts.net>
just merged main. all CI passed |
Signed-off-by: Yueren Wang <yuerenwang@tm4wwrxcwd.tailbaa43.ts.net>
|
/ptal @mattklein123 Hi matt, friendly ping again. really wanted to get this merged in to unblock ourselves. |
|
/retest |
…e types (envoyproxy#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>
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