Add basic support of policy engine #257

Closed
opened 2023-11-01 13:14:35 +00:00 by alexvanin · 1 comment

In v0.29.0 S3 gateway should support FrostFS policies by using policy-engine component. In basic version, engine should read local cache of policies and control access to the S3 API operations. To do that, every request produces request context, which is used in the engine.

sequenceDiagram
    participant User
    participant Middleware
    participant Policy Engine
    participant Handler

    User ->> Middleware: Request
    Middleware ->> Middleware: Build request context
    Middleware ->> Policy Engine: Is Allowed
    alt 
    Policy Engine ->> Middleware: Yes
    Middleware ->> Handler: Request
    Handler ->> User: Response
    else 
    Policy Engine ->> Middleware: No
    Middleware ->> User: Not allowed response
    end
In v0.29.0 S3 gateway should support FrostFS policies by using [policy-engine](https://git.frostfs.info/TrueCloudLab/policy-engine) component. In basic version, engine should read local cache of policies and control access to the S3 API operations. To do that, every request produces request context, which is used in the engine. ```mermaid sequenceDiagram participant User participant Middleware participant Policy Engine participant Handler User ->> Middleware: Request Middleware ->> Middleware: Build request context Middleware ->> Policy Engine: Is Allowed alt Policy Engine ->> Middleware: Yes Middleware ->> Handler: Request Handler ->> User: Response else Policy Engine ->> Middleware: No Middleware ->> User: Not allowed response end ```
alexvanin added this to the v0.29.0 milestone 2023-11-01 13:14:35 +00:00
dkirillov was assigned by alexvanin 2023-11-01 13:14:35 +00:00
Collaborator

Probably this task is blocked by TrueCloudLab/policy-engine#7 and TrueCloudLab/policy-engine#8 because engine and request interfaces are changing

Probably this task is blocked by https://git.frostfs.info/TrueCloudLab/policy-engine/issues/7 and https://git.frostfs.info/TrueCloudLab/policy-engine/issues/8 because engine and request interfaces are changing
alexvanin referenced this issue from a commit 2023-12-06 14:56:30 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 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-s3-gw#257
There is no content yet.