Skip to content

Complete shareVault/unshareVault implementation #259

@joshuakarp

Description

@joshuakarp

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:

Tasks

  • change Permission vaults recvord to use VaultIdString as key.
  • Replace grpc methods commandShare and commandUnshare with plumbing methods commandPermissionSet, commandPermissionUnset and commandPermissionGet.
  • tests
    • vaultsPermissionsSet test in client/service.
    • vaultsPermissionsUnset test in client/service.
    • vaultsPermissionsGet test in client/service.

Metadata

Metadata

Assignees

Labels

developmentStandard developmentepicBig issue with multiple subissuesr&d:polykey:core activity 1Secret Vault Sharing and Secret History Management

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions