Page MenuHomePhabricator

[keyserver] Avoid trusting FIDs passed from client in updateRelationships
ClosedPublic

Authored by ashoat on Mon, Sep 23, 10:34 PM.
Tags
None
Referenced Files
F2838868: D13436.diff
Sun, Sep 29, 12:00 AM
Unknown Object (File)
Fri, Sep 27, 5:29 PM
Unknown Object (File)
Wed, Sep 25, 1:29 AM
Unknown Object (File)
Wed, Sep 25, 1:29 AM
Unknown Object (File)
Wed, Sep 25, 1:29 AM
Unknown Object (File)
Wed, Sep 25, 1:01 AM
Subscribers

Details

Summary

We first implemented this code in the Hackathon, and forgot to reconsider it later.

We should avoid trusting the user's claims about FIDs. Instead, we should query the identity service.

This diff avoids changing the API, but updates the implementation to ignore the FIDs passed by the client.

Depends on D13435

Test Plan

I haven't done this yet, but I need to confirm that the Farcaster mutual logic still works correctly

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Mon, Sep 23, 10:48 PM
Harbormaster failed remote builds in B31793: Diff 44459!
This revision is now accepted and ready to land.Tue, Sep 24, 10:58 AM