Closed Bug 1888019 Opened 1 year ago Closed 1 year ago

Use a different client ID, scope and keys for Sync in Thunderbird

Categories

(Firefox :: Firefox Accounts, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

To avoid accidentally or maliciously accessing Firefox Sync data from Thunderbird, we're going to use a different client ID and scope. I think it should be sufficient to choose which ones to use based on AppConstants.MOZ_APP_NAME. (Seems too easy?)

This depends on the OAuth flow being ready to use.

The scopes will need to be created on the FxA servers, I'm testing using the changes here https://github.com/mozilla/fxa/compare/main...darktrojan:fxa:thunderbird-scopes.

These preferences need a default value or otherwise the tests I'm trying to enable use a different default value and fail.

Target Milestone: --- → 127 Branch
Keywords: leave-open
Attachment #9393408 - Attachment description: WIP: Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird → Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/a2d3e88c2ecf
Add preferences needed to enable FxA tests. r=mkmelin

Noting here that Thunderbird ideally uses a different client id for each application/service. e.g. there should be a different client ID for each of these:

  • Thunderbird website
  • Thunderbird on Windows
  • Thunderbird on MacOS
  • Thunderbird on Linux
  • Thunderbird for iOS
  • Thunderbird for Android
    etc.

Hopefully this is already how these are being used. :)

Attachment #9393408 - Attachment description: Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq → WIP: Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq
  • Thunderbird website

I'm not sure that our website is using FxA for anything. The add-ons site does, and I assume that has a client ID of its own. It's really not my department.

  • Thunderbird on Windows
  • Thunderbird on MacOS
  • Thunderbird on Linux

Thunderbird on desktop will have a single ID across the platforms, just like Firefox does.

  • Thunderbird for iOS
  • Thunderbird for Android

These will get IDs of their own when they get that far.

What do I have to do to get this client ID and scope onto the staging server? File a bug? Where?

(Related: I created https://github.com/mozilla/fxa/pull/16706 to add them to the dev config so that I'm not the only one who can test/develop against the server locally.)

Will, can you help with Geoff's question above?

Flags: needinfo?(wclouser)

What do I have to do to get this client ID and scope onto the staging server? File a bug? Where?

File an issue in the SVCSE project in jira

Flags: needinfo?(wclouser)

Sorry, I don't have access to your Jira. Is there another way?

It's not my process. I'll needinfo Tom.

Flags: needinfo?(thealy)

Tom, ping?

Hi Geoff. I'll ping my team about it and let you know. As an fyi for the future: I mention in my bugzilla profile but I do not actively monitor Bugzilla so if you need my attention on something, hitting me up in slack is the fastest way.

Flags: needinfo?(thealy)

I've created a jira ticket in my teams queue to be prioritized. We will try to get it completed within a week or two given our current workload.

Attachment #9393408 - Attachment description: WIP: Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq → Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq
Keywords: leave-open
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/integration/autoland/rev/1a2ecf71fee5 Use a different client ID, scope and keys for Sync in Thunderbird. r=teshaq,sync-reviewers

I forgot to update this test, so it'll fail on comm-central.

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/integration/autoland/rev/029bfd81274d follow-up - Update the Thunderbird client ID in a test. r=markh

Comment on attachment 9393408 [details]
Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq

Beta/Release Uplift Approval Request

  • User impact if declined: This doesn't change anything for Firefox, but we want to be able to use it in Thunderbird ESR 128 once the server-side changes are ready.
  • 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: Low
  • Why is the change risky/not risky? (and alternatives if risky): Almost all of this code (OAuth flow for Mozilla Accounts) is preffed off.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9393408 - Flags: approval-mozilla-beta?

Comment on attachment 9408340 [details]
Bug 1888019 follow-up - Update the Thunderbird client ID in a test. r=markh

Beta/Release Uplift Approval Request

  • User impact if declined: This is fix for a test. The client ID of Thunderbird was changed (in the other patch) before landing and I forgot to update the corresponding test.
  • 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: Low
  • Why is the change risky/not risky? (and alternatives if risky):
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9408340 - Flags: approval-mozilla-beta?

Comment on attachment 9393408 [details]
Bug 1888019 - Use a different client ID, scope and keys for Sync in Thunderbird. r=markh,teshaq

Approved for 128.0b7.

Attachment #9393408 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9408340 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: