Page MenuHomePhabricator

[native] Send CSAT when fetching blob service media
ClosedPublic

Authored by bartek on Mon, Jun 17, 3:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 28, 10:05 AM
Unknown Object (File)
Tue, Jun 25, 3:21 PM
Unknown Object (File)
Tue, Jun 25, 12:39 AM
Unknown Object (File)
Sun, Jun 23, 7:30 PM
Unknown Object (File)
Sun, Jun 23, 3:08 PM
Unknown Object (File)
Sun, Jun 23, 1:00 PM
Unknown Object (File)
Fri, Jun 21, 10:24 AM
Unknown Object (File)
Tue, Jun 18, 1:19 PM
Subscribers

Details

Summary

fetchAndDecryptMedia performs a Blob Service request but doesn't send Authorization header
unless authMetadata is provided.
Updated the callsite to provide it when usingCommServicesAccessToken = true

Test Plan

Tested locally with CSAT verification enabled for services.
Blob-hosted encrypted media are downloaded and rendered correctly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
kamil added inline comments.
native/media/encryption-utils.js
421 ↗(On Diff #41377)

I think with authMetadata calling fetchAndDecryptMedia will fail anyway - shouldn't we let this error throw here?

This revision is now accepted and ready to land.Tue, Jun 18, 1:30 AM
native/media/encryption-utils.js
421 ↗(On Diff #41377)

Yeah, that's true. For now, I decided to go with a more graceful way though. Anyway, we're going to handle this differently, as a part of ENG-6664