Closed Bug 2003214 Opened 9 months ago Closed 8 months ago

Phase 2 POC - Part 2: Implement Security Logger

Categories

(Core :: Machine Learning: General, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: rconcepcion, Assigned: rconcepcion)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

Attachments

(1 file)

NOTES

Acceptance Criteria

  • All policy decisions logged to NDJSON file with correct schema, including hashed sensitive data
  • Log file created at <profile>/aiwindow/security/audit.log
  • Size-based log rotation works correctly (10 MB limit, single .old backup)
  • Logger respects browser.aiwindow.security.logging.enabled pref
  • Logging is non-blocking

Implements NDJSON-based security audit logging for policy decisions with:

  • Hash.sys.mjs: SHA-256 hashing for privacy-preserving logs
  • SecurityLogger.sys.mjs: File logging with size-based rotation (10 MB)
  • Pref-gated via browser.aiwindow.security.logging.enabled
  • Sensitive fields (URLs, args) hashed before writing to disk
  • All policy decisions logged (allow, deny, kill switch, no policies)
Attachment #9530201 - Attachment description: Bug 2003214 - Add security audit logger to AI Window security layer. r?tarek,#ai-ondevice-reviewers → Bug 2003214 - Add security audit logger to AI Window security layer r?tarek,#ai-ondevice-reviewers
Pushed by rconcepcion@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a8d061235f78 https://hg.mozilla.org/integration/autoland/rev/dcae6c3a140b Add security audit logger to AI Window security layer r=ai-ondevice-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
QA Whiteboard: [qa-triage-done-c149/b148]
Blocks: 2012110
Blocks: 2013552
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: