Skip to content

acl: add comment field to EACL records#401

Merged
cthulhu-rider merged 1 commit into
masterfrom
eacl-comment-field
Jul 21, 2026
Merged

acl: add comment field to EACL records#401
cthulhu-rider merged 1 commit into
masterfrom
eacl-comment-field

Conversation

@End-rey

@End-rey End-rey commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Closes #400.

Comment thread acl/types.proto Outdated
@End-rey
End-rey force-pushed the eacl-comment-field branch from cbf6fdb to d5cb2f4 Compare July 21, 2026 08:37
Closes #400.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Comment thread acl/types.proto
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd also limit its len. Start with a conservative value like 1KiB

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's somewhat more complicated, related to limits for targets and keys. Looks like we don't have any in API now. At the same time we have a hard overall limit for EACL (#398).

@cthulhu-rider
cthulhu-rider merged commit 7e61273 into master Jul 21, 2026
3 checks passed
@cthulhu-rider
cthulhu-rider deleted the eacl-comment-field branch July 21, 2026 11:32
End-rey added a commit to nspcc-dev/neofs-sdk-go that referenced this pull request Jul 21, 2026
Add accessors for EACL record comments and preserve them during copying and
protobuf serialization.

Refs nspcc-dev/neofs-api#401.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
roman-khimov added a commit to nspcc-dev/neofs-sdk-go that referenced this pull request Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EACL comment field

3 participants