[#283] Support group conditions #283

Merged
alexvanin merged 1 commit from dkirillov/frostfs-s3-gw:feature/support_check_request_by_user_group into master 2024-09-04 19:51:13 +00:00
Member
blocked by https://git.frostfs.info/TrueCloudLab/policy-engine/pulls/38
dkirillov self-assigned this 2023-12-20 11:43:51 +00:00
dkirillov changed title from WIP: [#XX] Test group to WIP: [#283] Test group 2023-12-20 11:43:56 +00:00
dkirillov force-pushed feature/support_check_request_by_user_group from e8317bc431 to 3031e0bb5c 2023-12-20 12:07:59 +00:00 Compare
dkirillov force-pushed feature/support_check_request_by_user_group from 3031e0bb5c to 10c0de85a9 2023-12-20 13:50:19 +00:00 Compare
dkirillov force-pushed feature/support_check_request_by_user_group from 10c0de85a9 to 7db745a106 2023-12-21 11:22:05 +00:00 Compare
dkirillov changed title from WIP: [#283] Test group to [#283] Test group 2023-12-21 11:27:09 +00:00
dkirillov requested review from storage-services-committers 2023-12-21 11:27:14 +00:00
dkirillov requested review from storage-services-developers 2023-12-21 11:27:15 +00:00
alexvanin approved these changes 2023-12-21 13:06:42 +00:00
@ -640,2 +640,3 @@
enabled: false
contract: frostfsid.frostfs
validation:
enabled: false
Owner

@ironbee FYI: we've changed default here, so by default validation is going to be disabled, so you don't have to change config for local deployment.

@ironbee FYI: we've changed default here, so by default validation is going to be disabled, so you don't have to change config for local deployment.
@ -186,3 +186,3 @@
func (s *Server) GetPolicy(_ context.Context, req *control.GetPolicyRequest) (*control.GetPolicyResponse, error) {
s.log.Info(logs.ControlAPIGetPolicy, zap.String("namespace", req.GetBody().GetNamespace()),
zap.String("chainId", req.GetBody().GetChainID()), zap.String("key", hex.EncodeToString(req.Signature.Key)))
zap.String("chainId", string(req.GetBody().GetChainID())), zap.String("key", hex.EncodeToString(req.Signature.Key)))
Owner

zap sanitizes strings and I wonder how it may print chainId with binary data.

`zap` sanitizes strings and I wonder how it may print `chainId` with binary data.
Author
Member
2023-12-21T16:18:48.595+0300    info    server/server.go:187    get policy request      {"service": "control API", "namespace": "", "chainId": "s3:��H���\u001ai�ч��h\u0010O���$\t�k�F!�s��N�&'��", "key": "0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf"}
2023-12-21T16:18:48.595+0300    info    server/server.go:187    get policy request      {"service": "control API", "namespace": "", "chainId": "s3:\u0002\u0000\u0000\u0000\u0000\u0000\u0000\u0000\t�k�F!�s��N�&'��", "key": "0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf"}

``` 2023-12-21T16:18:48.595+0300 info server/server.go:187 get policy request {"service": "control API", "namespace": "", "chainId": "s3:��H���\u001ai�ч��h\u0010O���$\t�k�F!�s��N�&'��", "key": "0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf"} 2023-12-21T16:18:48.595+0300 info server/server.go:187 get policy request {"service": "control API", "namespace": "", "chainId": "s3:\u0002\u0000\u0000\u0000\u0000\u0000\u0000\u0000\t�k�F!�s��N�&'��", "key": "0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf"} ```
Author
Member

Probably we should drop at all logging this id, or log it as hex.

Probably we should drop at all logging this id, or log it as hex.
mbiryukova approved these changes 2023-12-21 15:07:23 +00:00
dkirillov force-pushed feature/support_check_request_by_user_group from 7db745a106 to 6509639540 2023-12-21 15:07:35 +00:00 Compare
dkirillov changed title from [#283] Test group to [#283] Support group conditions 2023-12-22 06:15:37 +00:00
alexvanin approved these changes 2023-12-22 10:27:02 +00:00
alexvanin merged commit 6509639540 into master 2023-12-22 10:27:07 +00:00
alexvanin deleted branch feature/support_check_request_by_user_group 2023-12-22 10:27:07 +00:00
alexvanin added this to the v0.29.0 milestone 2024-05-27 09:57:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
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-s3-gw#283
No description provided.