From 96ddb868bcb95c53c5b1e71b24800aaa5f177e87 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 6 Aug 2020 12:28:13 +0300 Subject: [PATCH] [#31] service: Change BearerTokenMsg.Info.ACLRules field type It was originally planned to transport extended ACL table in binary form. However, from time on, it was decided to abandon this approach in favor of the declared message structure (acl.EACLTable). In this regard, this commit changes the type and name of the binary BearerTokenMsg.Info.ACLRules field to EACLTable. Signed-off-by: Leonard Lyubich --- proto-docs/service.md | 2 +- service/verify.proto | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/proto-docs/service.md b/proto-docs/service.md index fc0eb48..2307191 100644 --- a/proto-docs/service.md +++ b/proto-docs/service.md @@ -94,7 +94,7 @@ BearerTokenMsg carries information about request ACL rules with limited lifetime | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| ACLRules | [bytes](#bytes) | | ACLRules carries a binary representation of the table of extended ACL rules | +| EACLTable | [acl.EACLTable](#acl.EACLTable) | | EACLTable carries table of extended ACL rules. | | OwnerID | [refs.OwnerID](#refs.OwnerID) | | OwnerID carries identifier of the token owner. | | ValidUntil | [uint64](#uint64) | | ValidUntil carries a last epoch of token lifetime | diff --git a/service/verify.proto b/service/verify.proto index 76fd15e..46a8fac 100644 --- a/service/verify.proto +++ b/service/verify.proto @@ -5,6 +5,7 @@ package service; option go_package = "github.com/nspcc-dev/neofs-api-go/service"; option csharp_namespace = "NeoFS.API.Service"; +import "acl/types.proto"; import "refs/types.proto"; // RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request. @@ -89,8 +90,8 @@ message TokenLifetime { // BearerTokenMsg carries information about request ACL rules with limited lifetime message BearerTokenMsg { message Info { - // ACLRules carries a binary representation of the table of extended ACL rules - bytes ACLRules = 1; + // EACLTable carries table of extended ACL rules. + acl.EACLTable EACLTable = 1; // OwnerID carries identifier of the token owner. refs.OwnerID OwnerID = 2;