Properly instantiate APE request in the object service #844

Closed
opened 2023-12-06 08:39:48 +00:00 by aarifullin · 2 comments
Collaborator

The current implementation of Request interface omits many details like extracting properties from v2.RequestInfo (it uses empty-string stubs for properties)

It is required to extract values and set properties that are mentioned in native schema

The [current implementation](https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/pkg/services/object/acl/ape_request.go) of [Request](https://git.frostfs.info/TrueCloudLab/policy-engine/src/branch/master/pkg/resource/resource.go) interface omits many details like extracting properties from `v2.RequestInfo` (it uses empty-string stubs for properties) It is required to extract values and set properties that are mentioned in [native schema](https://git.frostfs.info/TrueCloudLab/policy-engine/src/branch/master/schema/native/consts.go#L30)

It's also required that request contains object attributes (at least FilePath) to be able to deny access by object name (for example).

It's also required that request contains object attributes (at least `FilePath`) to be able to deny access by object name ([for example](https://git.frostfs.info/dkirillov/frostfs-node/commit/4628c9ba8edbc42820795ecc613e6ffedef97c00)).
fyrchik added this to the v0.38.0 milestone 2023-12-11 10:05:16 +00:00

Let's not forget restrictions for container service operations. There are use-cases to set quota limit of maximum number of user containers.

Let's not forget restrictions for container service operations. There are use-cases to set quota limit of maximum number of user containers.
aarifullin self-assigned this 2023-12-18 09:53:34 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#844
There is no content yet.