-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
developmentStandard developmentStandard developmentepicBig issue with multiple subissuesBig issue with multiple subissuesr&d:polykey:core activity 1Secret Vault Sharing and Secret History ManagementSecret Vault Sharing and Secret History Management
Description
Specification
The commands Vault share vault unshare and vault permissions needs to act as porcelan commands while using GRPC methods as the plumbing. The Bin command themselves are largely unchanged. To this end we need to create GRPC methods called;
vaultsPermissionGet.ts
vaultsPermissionSet.ts
vaultsPermissionUnset.ts
Set and unset will take a permissions message that provides (NodeId, VaultIdOrName, VaultActions[]). Get will use the same message as a stream but it will be unnecessary to provide the VaultId in that case.
The Permission type needs to be updated to work with the ID changes.
type Permission = {
gestalt: GestaltActions;
vaults: Record<VaultIdString, VaultActions>;
};Additional context
Relevant threads from vaultsrefactoring:
- "Vault Sharing Notes": https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/205#note_706100635
- ACL prototype for permission setting from me: https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/205#note_708465644
- discussion of prototype from me, and how it can be integrated into
shareVault: https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/205#note_708467722 - latest TODO thread: https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/205#note_708655162
Tasks
- change Permission vaults recvord to use
VaultIdStringas key. - Replace grpc methods
commandShareandcommandUnsharewith plumbing methodscommandPermissionSet,commandPermissionUnsetandcommandPermissionGet. - tests
-
vaultsPermissionsSettest in client/service. -
vaultsPermissionsUnsettest in client/service. -
vaultsPermissionsGettest in client/service.
-
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentepicBig issue with multiple subissuesBig issue with multiple subissuesr&d:polykey:core activity 1Secret Vault Sharing and Secret History ManagementSecret Vault Sharing and Secret History Management