From 79baf3b63799544c120ef3b63b2081b7ae193e3c Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Wed, 2 Sep 2020 13:53:44 +0300 Subject: [PATCH] [#61] acl: Add version field to eACL Table eACL Table is stored in SC storage, hence format version may be needed to correctly process it in future. Signed-off-by: Stanislav Bogatyrev --- acl/types.proto | 8 ++++++-- proto-docs/acl.md | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/acl/types.proto b/acl/types.proto index ae29abc..b9beb14 100644 --- a/acl/types.proto +++ b/acl/types.proto @@ -126,12 +126,16 @@ message EACLRecord { // EACLRecord carries the information about extended ACL rules. message EACLTable { + // eACL format version. + // Effectively the version of API library used to create eACL Table + neo.fs.v2.refs.Version version = 1; + // Carries identifier of the container that should use given // access control rules. - neo.fs.v2.refs.ContainerID container_id = 1 [json_name="ContainerID"]; + neo.fs.v2.refs.ContainerID container_id = 2 [json_name="ContainerID"]; // Records carries list of extended ACL rule records. - repeated EACLRecord records = 2 [json_name="Records"]; + repeated EACLRecord records = 3 [json_name="Records"]; } // BearerToken has information about request ACL rules with limited lifetime diff --git a/proto-docs/acl.md b/proto-docs/acl.md index f3f14c7..933ff16 100644 --- a/proto-docs/acl.md +++ b/proto-docs/acl.md @@ -114,6 +114,7 @@ EACLRecord carries the information about extended ACL rules. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | +| version | [neo.fs.v2.refs.Version](#neo.fs.v2.refs.Version) | | eACL format version. Effectively the version of API library used to create eACL Table | | container_id | [neo.fs.v2.refs.ContainerID](#neo.fs.v2.refs.ContainerID) | | Carries identifier of the container that should use given access control rules. | | records | [EACLRecord](#neo.fs.v2.acl.EACLRecord) | repeated | Records carries list of extended ACL rule records. |