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

Explore cookie partitioning #15

Closed
krgovind opened this issue Aug 27, 2020 · 3 comments
Closed

Explore cookie partitioning #15

krgovind opened this issue Aug 27, 2020 · 3 comments

Comments

@krgovind
Copy link

krgovind commented Aug 27, 2020

EDIT: We published an explainer expanding on this idea: https://github.com/DCtheTall/CHIPS/


During the CG meeting today, the topic of partitioning cookies came up.

@annevk mentioned that Firefox is currently experimenting with this. Also see his previous comment.

@johnwilander previously wrote that Safari attempted this change and rolled it back due to a couple of concerns that are broadly relevant:

  • Developer confusion
  • Multiple sets of cookies increases memory footprint

Both of these issues might be alleviated by using an opt-in model for partitioned cookies.

One potential solution is to have the developer specify a cookie attribute PerPartition (name needs bikeshedding), that is parsed in embedded/third-party contexts:

Set-Cookie: SID=31d4d96e407aad42; Secure; HttpOnly; PerPartition

The browser then stores that cookie in a partition keyed on (top-level-site, embedded-site)

Subsequently, when the browser makes a request to the embedee, it includes a cookie header with only the opted-in cookies and a header to indicate the top-level site:

Cookie: SID=31d4d96e407aad42
Sec-TopLevelSite: https://toplevel.site

Note: The question of whether it is acceptable to expose the first-party to a partitioned third-party is being explored in #14

@johnwilander
Copy link

Interesting conversation on this topic happening here: privacycg/storage-access#75

@johannhof
Copy link
Member

@annevk did this get resolved with #30? (describing cookies)

@annevk
Copy link
Collaborator

annevk commented May 18, 2022

Yeah, I think the two meetings and the various proposals in this space kinda settled this really high-level question.

@annevk annevk closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants