Skip to content
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

oauth: ability to specify SameSite cookie attribute value #35455

Conversation

derekargueta
Copy link
Member

Commit Message: oauth: ability to specify SameSite cookie attribute value
Additional Description: The SameSite attribute has three different values to allow control over whether the cookies get shared same-site/cross-site. It's optional so there's also a Disabled option which excludes the SameSite attribute. This is the default setting so existing deployments are not modified in any way, but now operators can enable SameSite.
Risk Level: Low
Testing: unit
Docs Changes: proto is documented
Release Notes: changelog entry added

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #35455 was opened by derekargueta.

see: more, trace.

Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @abeyad
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #35455 was opened by derekargueta.

see: more, trace.

@@ -24,6 +24,19 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#extension: envoy.filters.http.oauth2]
//

message CookieSettings {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a comment for this message type would be helpful

@@ -24,6 +24,19 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// [#extension: envoy.filters.http.oauth2]
//

message CookieSettings {
enum SameSiteValues {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think SameSite would be better as a name.


// The value used for the SameSite cookie attribute. Defaults to DISABLED which does not add the
// SameSite attribute.
SameSiteValues same_site_attribute_value = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/same_site_attribute_value/same_site_attribute

@abeyad
Copy link
Contributor

abeyad commented Jul 29, 2024

/wait

Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Aug 28, 2024
Copy link

github-actions bot commented Sep 4, 2024

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot closed this Sep 4, 2024
@skiptomyliu
Copy link
Contributor

@derekargueta thanks for initiating this work -- are you still working on this? we have an interest to be able to set the cookie attribute.

@mchen391
Copy link

We are also looking forward to the fix here. Any plan to restart to effort?

@Yueren-Wang
Copy link
Contributor

We are also looking forward to the fix here. Any plan to restart to effort?

Hi @mchen391 Lyft will take this work and continue the testing. I will be working on this.

@ggreenway
Copy link
Contributor

@Yueren-Wang what's your expected timeline to work-on/fix this?

@Yueren-Wang
Copy link
Contributor

Yueren-Wang commented Nov 19, 2024

@Yueren-Wang what's your expected timeline to work-on/fix this?

I am a new contributor, So I am targeting to get this commit checked in and shipped by end of this year, taking into account that the holiday season may cause some delays.

@ggreenway
Copy link
Contributor

@Yueren-Wang any update or progress on this?

@skiptomyliu
Copy link
Contributor

@ggreenway #37952

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api stale stalebot believes this issue/PR has not been touched recently waiting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants