Account Delegation
What is account delegation
Account delegation provides access and/or control over your private encrypted data to another user. The intended purpose for this feature is to allow people you trust full access. In almost all cases we recommend using Shares and On-Shares to give access to other users as it gives much more granular control over the data shared to another user. An example where you might use a feature like this is where a user is helping a family member (be that a child or an elderly parent) who requires assistance.
Setting up delegation
Setting up the Scenario
First lets create two new users to set up a delegation between.
Next lets create an item in Riker's account so we can later test to make sure Homer has access to it.
Creating the Delegation Connection
Next lets get Riker to create a delegation connection invitation with the delegation role reader
. (delegation-role options are owner
, admin
, and reader
)
Homer can now accept that delegation connection invitation from Riker and the delegation connection will have been created.
Sharing the Key Encryption Key
While the connection has been created There are still a couple more steps to go before the delegation has been fully set up. These steps are for sharing Riker's Key Encryption Key (KEK) to Homer. First Riker must Encrypt his KEK with Homer's public key and send it.
Next Homer accepts Riker's KEK, decrypting it with his private key, then storing it for access later under his own KEK.
Reading User data as a delegate user
First Homer can pre-load Riker's KEK and Private DEK should for decrypting the data.
Next Homer can list out the Riker's items.
Then, taking note of the item id from the items:list command, finally Homer can view the item Riker created earlier.
Last updated