Closed Bug 2044490 Opened 3 months ago Closed 1 month ago

Set up WASM runtime host for built-in DLP engine module

Categories

(Enterprise Products :: Firefox, enhancement, P1)

enhancement

Tracking

(firefox154 fixed)

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: jmendez, Assigned: gstoll)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [size=3])

Attachments

(3 files, 1 obsolete file)

Set up a host to download the DLP WASM module, stand up its runtime, and hook up the exports/imports needed to communicate with it.

Summary: Set up WASM host for built-in DLP engine module → Set up WASM runtime host for built-in DLP engine module
Severity: -- → S1
Priority: -- → P1
Whiteboard: [size=3]

These will be used in the WasmModuleBackend.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED

Add nsIContentAnalysisRule, the representation of a single DLP rule
consumed by the (upcoming) in-process WebAssembly module, along with ParseDlpRules to parse the DLP rules JSON config into a list
of these rules.

The code to supply the JSON rules has not been written yet; presumably
this will come from a policy in the future or something like that.

Add ContentAnalysisWasmRunner, a JS service that reads an extension
with a WebAssembly DLP module, and compiles and runs it in a content
process (via the new ContentAnalysisWasm actor pair).

Add WasmModuleBackend, a ContentAnalysisBackend implementation that
serializes requests to the content_analysis SDK protobuf, and hands them
to the in-process WASM DLP module via nsIContentAnalysisWasmRunner.

Gated behind a pref that is off (and will eventually be set by policy)

Attachment #9606285 - Attachment description: Bug 2044490 part 2 - Add DLP rule model and JSON parser r=#dlp-reviewers!,jmendez! → Bug 2044490 part 1 - Add DLP rule model and JSON parser r=#dlp-reviewers!,jmendez!
Attachment #9606286 - Attachment description: Bug 2044490 part 3 - Add in-process WASM DLP runner service r=#dlp-reviewers!,jmendez! → Bug 2044490 part 2 - Add in-process WASM DLP runner service r=#dlp-reviewers!,jmendez!
Attachment #9606287 - Attachment description: Bug 2044490 part 4 - Wire the in-process WASM backend into content analysis r=#dlp-reviewers!,jmendez! → Bug 2044490 part 3 - Wire the in-process WASM backend into content analysis r=#dlp-reviewers!,jmendez!
Attachment #9606284 - Attachment is obsolete: true
Blocks: 2055609
Pushed by gstoll@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fa3b0a9ec3b5 https://hg.mozilla.org/integration/autoland/rev/0da020bb2c5c part 1 - Add DLP rule model and JSON parser r=jmendez,dlp-reviewers,handyman https://github.com/mozilla-firefox/firefox/commit/11d28d4b2464 https://hg.mozilla.org/integration/autoland/rev/c6e40a41bab9 part 2 - Add in-process WASM DLP runner service r=jmendez,dlp-reviewers,mkaply,handyman https://github.com/mozilla-firefox/firefox/commit/cae692fed281 https://hg.mozilla.org/integration/autoland/rev/0db9c35953f0 part 3 - Wire the in-process WASM backend into content analysis r=jmendez,dlp-reviewers,mkaply,handyman
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: