Page MenuHomePhabricator

[backup] Hotfix Blob service client auth
ClosedPublic

Authored by bartek on Jun 20 2024, 1:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 6:04 AM
Unknown Object (File)
Sun, Nov 24, 12:54 PM
Unknown Object (File)
Sat, Nov 16, 7:27 AM
Unknown Object (File)
Fri, Nov 8, 6:58 AM
Unknown Object (File)
Fri, Nov 8, 6:09 AM
Unknown Object (File)
Fri, Nov 8, 6:07 AM
Unknown Object (File)
Thu, Nov 7, 11:09 PM
Unknown Object (File)
Thu, Nov 7, 5:07 PM
Subscribers

Details

Summary

Noticed that Backup service had code respoinsible for extracting UserIdentity (auth metadata),
but it was never supplied to BlobServiceClient so Backup -> Blob service requests were unauthenticated.

This is not the nicest solution but it works. A proper solution will be introduced in the next diffs.

Test Plan

Backup service on staging

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 20 2024, 1:39 AM
bartek added inline comments.
services/backup/src/http/handlers/backup.rs
309–322 ↗(On Diff #41541)

This endpoint is unauthenticated so we need to get a service-to-service token.
This is not nice (very verbose) but I'll refactor it in the next diffs

This revision is now accepted and ready to land.Jun 20 2024, 3:37 AM
This revision was automatically updated to reflect the committed changes.