Page MenuHomePhabricator

[services] Backup - Fix requests in proto file
ClosedPublic

Authored by karol on Mar 29 2022, 4:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 4:28 PM
Unknown Object (File)
Wed, Nov 27, 8:50 AM
Unknown Object (File)
Wed, Nov 27, 7:39 AM
Unknown Object (File)
Wed, Nov 27, 5:42 AM
Unknown Object (File)
Tue, Nov 5, 6:05 PM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM

Details

Summary

Depends on D3529

We need a user id in every request in the backup service, how else will we know where the request comes from?

Previously the user id was deeper in the authentication types but they were removed and we missed that we removed the user id as well.

Test Plan
cd services
yarn run-backup-service

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added a reviewer: ashoat.

Adding @ashoat to verify that this is what we need from security point of view

Makes sense to me

native/cpp/CommonCpp/grpc/protos/backup.proto
48 ↗(On Diff #10763)

Don't we also need to specify the backupID here? I know we say it is part of auth, but I think it is an essential part of the request here, just like userID

This revision is now accepted and ready to land.Mar 31 2022, 8:38 PM
native/cpp/CommonCpp/grpc/protos/backup.proto
48 ↗(On Diff #10763)

We agreed that for now, we handle only assigning to the last backup, so it's going to automatically pick the latest one. Once we do the feature allowing users to choose older backups, backupID will be needed here.

ashoat requested changes to this revision.Apr 1 2022, 12:16 PM
ashoat added inline comments.
native/cpp/CommonCpp/grpc/protos/backup.proto
48 ↗(On Diff #10763)

That's not my memory. I don't think we agreed on that. I think we explicitly agreed that we should always specify the backupID in SendLog. I don't have time to dig up the comments about this but I'm pretty sure about it

This revision now requires changes to proceed.Apr 1 2022, 12:16 PM
native/cpp/CommonCpp/grpc/protos/backup.proto
48 ↗(On Diff #10763)

Yes, maybe you're right. Ok, let's go for the backupID here too.

This revision is now accepted and ready to land.Apr 5 2022, 1:11 AM