From d5cb2f4d54c9a77378af91f17eca8928e983ba8c Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Mon, 20 Jul 2026 16:42:12 +0300 Subject: [PATCH] acl: add comment field to EACL records Closes #400. Signed-off-by: Andrey Butusov --- acl/types.proto | 4 ++++ proto-docs/acl.md | 1 + 2 files changed, 5 insertions(+) diff --git a/acl/types.proto b/acl/types.proto index e96981f..5de85a3 100644 --- a/acl/types.proto +++ b/acl/types.proto @@ -182,6 +182,10 @@ message EACLRecord { } // List of target subjects to apply ACL rule to repeated Target targets = 4 [json_name = "targets"]; + + // Optional auxiliary data associated with the rule. The comment does not + // affect permission evaluation and must be valid UTF-8 without zero bytes. + string comment = 5 [json_name = "comment"]; } // Extended ACL rules table. A list of ACL rules defined additionally to Basic diff --git a/proto-docs/acl.md b/proto-docs/acl.md index ebcbab0..4d07323 100644 --- a/proto-docs/acl.md +++ b/proto-docs/acl.md @@ -89,6 +89,7 @@ Describes a single eACL rule. | action | [Action](#neo.fs.v2.acl.Action) | | Rule execution result. Either allows or denies access if filters match. | | filters | [EACLRecord.Filter](#neo.fs.v2.acl.EACLRecord.Filter) | repeated | List of filters to match and see if rule is applicable | | targets | [EACLRecord.Target](#neo.fs.v2.acl.EACLRecord.Target) | repeated | List of target subjects to apply ACL rule to | +| comment | [string](#string) | | Optional auxiliary data associated with the rule. The comment does not affect permission evaluation and must be valid UTF-8 without zero bytes. |