Closed Bug 1763073 Opened 2 years ago Closed 2 years ago

Telemetry for SameSite cookies with non-samesite redirect chain

Categories

(Core :: Networking: Cookies, task, P2)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox-esr102 102+ fixed
firefox102 + fixed
firefox103 --- fixed

People

(Reporter: tschuster, Assigned: tschuster)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files, 1 obsolete file)

We already correctly consider the redirect chain for SameSite cookies when determining if a cookie is same-site foreign: https://searchfox.org/mozilla-central/rev/fbb1e8462ad82b0e76b5c13dd0d6280cfb69e68d/netwerk/cookie/CookieCommons.cpp#588
Chrome however doesn't do this yet. Thus if we ship Firefox with this restriction in place we might run into numerous web compatibility issues. Chrome's platform stats shows that roughly 1% of page loads use SameSite cookies with a bad redirect chain. The purposes of this bug is to add similar telemetry to Firefox.

Assignee: nobody → tschuster
Depends on: 1763367
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]
Attachment #9271060 - Attachment description: WIP: Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects → Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r?freddyb

Thanks to everyone who helped me complete this form.

Attachment #9276667 - Flags: data-review?(chutten)
Attachment #9276667 - Flags: data-review?(chutten)
Attachment #9276667 - Attachment is obsolete: true

Thanks again for everyone who helped. Re-submitted this because copy-pasting from Google Docs caused issues. We have some open question about the categorization.

Attachment #9276669 - Flags: data-review?(chutten)

Comment on attachment 9276669 [details]
Request for data collection review form

DATA COLLECTION REVIEW RESPONSE:

Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes.

Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

If the request is for permanent data collection, is there someone who will monitor the data over time?

No. This collection will expire in Firefox 106.

Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 3, Stored Content and Communications.

Is the data collection request for default-on or default-off?

Default on for all channels.

Does the instrumentation include the addition of any new identifiers?

No.

Is the data collection covered by the existing Firefox privacy notice?

Almost certainly yes. To Legal to confirm.

Does the data collection use a third-party collection tool?

No.


Result: datareview-, pending Legal review for default-on Cat3 data collection.

(( The next step is that Legal will review this data collection to see if it's aligned with the Privacy Notice and enumerate the product risk and kick off any necessary conversations. For this case I expect this to be resolved quickly without any of that and with just a note here on the bug (given the narrow scope of the Cat3 part of the collection). When that happens, I'll come back 'round and flip this over to datareview+))

Flags: needinfo?(mfeldman)
Attachment #9276669 - Flags: data-review?(chutten) → data-review-

Tom or Chris: can we briefly meet so I can better understand the issue?

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:tschuster, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(tschuster)
Flags: needinfo?(dveditz)

This will land when the data-review is given.

Flags: needinfo?(tschuster)
Flags: needinfo?(dveditz)

After meeting the team and assessing the data collected, we're good to move forward. No issue or concern from the Privacy/Legal side.

Flags: needinfo?(mfeldman)

Comment on attachment 9276669 [details]
Request for data collection review form

Flipping to data-review+ on Legal review. Good to go!

Attachment #9276669 - Flags: data-review- → data-review+
Pushed by tschuster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2d02cef08622
Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r=freddyb,dveditz
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Blocks: 1774857

Comment on attachment 9271060 [details]
Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r?freddyb

Beta/Release Uplift Approval Request

  • User impact if declined: We need this telemetry to get the required information for landing samesite=lax by default, which we had to delay shipping multiple times.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Medium
  • Why is the change risky/not risky? (and alternatives if risky): This patch "only" adds console logging and telemetry and shouldn't change any normal behavior.
  • String changes made/needed: New string added
  • Is Android affected?: Yes
Attachment #9271060 - Flags: approval-mozilla-beta?

Comment on attachment 9271060 [details]
Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r?freddyb

We are out of the beta cycle and releng is currently merging mozilla-beta to mozilla-release before we build our RC. Morphing this into a release build uplift request.

Attachment #9271060 - Flags: approval-mozilla-beta? → approval-mozilla-release?

Flod, this uplift request adds a string, are we OK uplifting this late l10n change?

Flags: needinfo?(francesco.lodolo)

Tom, you indicated that the risk is medium, what kind of regression could it cause?

Have you verified that the added telemetry works as expected on Nightly?

Thanks

Flags: needinfo?(tschuster)

I can also provide a patch without the string changes and logging, we care more about the telemetry.

Tom, you indicated that the risk is medium, what kind of regression could it cause?

I don't have any specific risk in mind, but the patch isn't exactly trivial. I don't expect any real issues after 5 days of Nightly.

Have you verified that the added telemetry works as expected on Nightly?

Yes it's working and already accessible on telemetry.mozilla.org.

Flags: needinfo?(tschuster)

(In reply to Pascal Chevrel:pascalc from comment #14)

Flod, this uplift request adds a string, are we OK uplifting this late l10n change?

I'd really prefer not to have an extra string added this late in the schedule.

Flags: needinfo?(francesco.lodolo)

Let's target a dot release for this uplift, the risk/benefit ratio does not seem favorable to include it directly in our release build.

Comment on attachment 9271060 [details]
Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r?freddyb

After talking with dveditz, he thinks the patch is low risk and there is a strong need for their team to have telemetry on release as soon as possible, approved for RC on 102 and 102esr

Attachment #9271060 - Flags: approval-mozilla-release?
Attachment #9271060 - Flags: approval-mozilla-release+
Attachment #9271060 - Flags: approval-mozilla-esr102+

Looks like this didn't get uplifted to ESR102 in time for the 102.0esr RC build. Seems like something we can land for the 102.1esr release next cycle, however.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: