frostfs-node/pkg/services/object/acl
Alex Vanin e252f93dbf [#350] object/acl: Make best effort to classify request
Classifier looks at list of inner ring nodes and container
nodes from current and previous epoch to classify request.
Sometimes these checks might return error.

Consider there is a request from unknown key and container's
placement policy valid for current epoch and invalid for past
epoch. Classifier tries to find if key belongs to container
node from current epoch -- it is not. Then it tries to find if
key belongs to container node from past epoch and it throws
error, because placement policy is invalid for past epoch.

This is a legit case and classifier should ignore such errors
to provide best effort in matching. The only error classifier
should return is an error when request does not contain
public key to classify it.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-01-27 20:18:33 +03:00
..
eacl [#285] object/eacl: Validate X-headers from the requests, not the responses 2020-12-29 12:22:05 +03:00
acl.go [#302] Fix golint else/return linter errors 2021-01-12 18:47:02 +03:00
basic_helper.go [#271] acl: Add permission to get objects for inner ring 2020-12-25 16:49:27 +03:00
basic_helper_test.go [#32] Add tests for basic ACL helper 2020-10-02 11:25:36 +03:00
classifier.go [#350] object/acl: Make best effort to classify request 2021-01-27 20:18:33 +03:00
opts.go [#233] services/object: Implement new Get algorithm 2020-12-11 17:19:37 +03:00