Closed Bug 1914331 Opened 2 months ago Closed 1 month ago

Enable using DAP with OHTTP

Categories

(Toolkit :: Telemetry, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: simonf, Assigned: simonf)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 8 obsolete files)

No description provided.
Assignee: nobody → sfriedberger
Status: NEW → ASSIGNED
Attachment #9420304 - Attachment is obsolete: true
Depends on: 1915503
See Also: → 1859520
Attachment #9420548 - Attachment description: Bug 1914331: OHTTP for PPA/DAP r=tcampbell → WIP: Bug 1914331: OHTTP for PPA/DAP

To prepare for more configuration options, use an option object parameter for
additional optional parameters.

Depends on: 1915668
Attachment #9421435 - Attachment description: WIP: Bug 1914331 - Use an option bag for sendDAPMeasurement → Bug 1914331 - Use an option bag for sendDAPMeasurement r?dmueller
Attachment #9421436 - Attachment description: WIP: Bug 1914331 - In DAPTelemetrySender separate key fetch from report generation → Bug 1914331 - In DAPTelemetrySender separate key fetch from report generation r?dmueller

Later patches will transmit DAP reports which are binary data so this adds
support for ArrayBuffer to the ohttpRequest code. Also support the 'PUT' method.

In some cases (such as DAP-over-OHTTP) it may be preferable to ship the HPKE
rather than trying to fetch it over the network for better privacy.

Attachment #9421436 - Attachment description: Bug 1914331 - In DAPTelemetrySender separate key fetch from report generation r?dmueller → Bug 1914331 - Separate key fetch from report generation in DAPTelemetrySender r?dmueller

Add support for DAPTelemetrySender to submit reports over OHTTP. When this mode
is used, the caller is responsible for provisioning the DAP keys in a privacy
conscious way.

Attachment #9420548 - Attachment description: WIP: Bug 1914331: OHTTP for PPA/DAP → Bug 1914331 - Use DAP-over-OHTTP for PrivateAttributionService r?dmueller

This uses a mock OHTTP server to check flow of reports.

Local testing works successfully from PrivateAttribtionService.sendDapReport -> OHTTP[Fastly;Mozilla;prod] -> DAP[Divviup;prod] -> DAP[Mozilla;stage] -> janus-cli::collector.

  • Update the DAPTelemetrySender to provision DAP HPKE keys from prefs and allow
    Nimbus to update them if a key-rotation is needed. This removes fetching of
    such keys from the '/hpke_config' endpoints. The DAP preferences are also
    renamed slightly for consistency.
  • The DAPTelemetrySender can optionally take an OHTTP configuration which can be
    used to upload reports.
  • The PrivateAttributionService component now requires OHTTP for DAP uploads and
    uses the servers that the Shopping component configures.
  • Add support to ObliviousHTTP.sys.mjs to allow uploading from ArrayBuffers and
    also to support the PUT verb.
  • The DAPTelemetrySender interface is updated to pass extra options in an
    options bag parameter.
Attachment #9421732 - Attachment is obsolete: true
Attachment #9420548 - Attachment is obsolete: true
Attachment #9421435 - Attachment is obsolete: true
Attachment #9421731 - Attachment is obsolete: true
Attachment #9421436 - Attachment is obsolete: true
Attachment #9421729 - Attachment is obsolete: true
Attachment #9421730 - Attachment is obsolete: true
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb9ce57dfc32 Support PPA-over-DAP-over-OHTTP r=Gijs,dmueller

Backed out for causing xpcshell failures in test_fetchImage.js

Flags: needinfo?(sfriedberger)
Flags: needinfo?(tcampbell)

My fix for a review nit was incorrect. No major problems.

Flags: needinfo?(tcampbell)
Flags: needinfo?(sfriedberger)
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f5dbb861c3ad Support PPA-over-DAP-over-OHTTP r=Gijs,dmueller
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch

:simonf is this something you want to include in the 131 release notes? (Nomination Process)

Flags: needinfo?(sfriedberger)

:diannaS No, this is an internal change.

Flags: needinfo?(sfriedberger)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: