From d5c9dd3c839b46050519f7efdcc3447906c42f5e Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Mon, 11 Dec 2023 16:55:12 +0300 Subject: [PATCH] [#852] ape: Use first match for eACL->APE converter Signed-off-by: Dmitrii Stepanov --- go.mod | 2 +- go.sum | Bin 45864 -> 45864 bytes internal/ape/converter.go | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 43ff1648a..3e79f7ff7 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( git.frostfs.info/TrueCloudLab/frostfs-observability v0.0.0-20231101111734-b3ad3335ff65 git.frostfs.info/TrueCloudLab/frostfs-sdk-go v0.0.0-20231122162120-56debcfa569e git.frostfs.info/TrueCloudLab/hrw v1.2.1 - git.frostfs.info/TrueCloudLab/policy-engine v0.0.0-20231205092054-2d4a9fc6dcb3 + git.frostfs.info/TrueCloudLab/policy-engine v0.0.0-20231211080303-8c673ee4f4af git.frostfs.info/TrueCloudLab/tzhash v1.8.0 github.com/cheggaaa/pb v1.0.29 github.com/chzyer/readline v1.5.1 diff --git a/go.sum b/go.sum index bede02d05464809cb87a332aedb12bdd3b16af5d..15ae22422585062b9c83d02a3b832152a1cfb18f 100644 GIT binary patch delta 169 zcmZ4SjA_L)rVSx%E{28%76!%!#<~{CX6DAJsU~SAiD?QMhE{>W>8V-C+3wC6MMagS z<%wQ}X+~xFCB^=c243dDX&DwJ0fqU+21U*hjuQhFCR?&edt)_AKRsVBH$MerWTuyI zgjr#>Wum8tXQ^>`Sa6C-L8+Umvq!OCwrQ$=rna_kqL){iUs8lG(8$ep?5|b>001sF Ag8%>k delta 169 zcmZ4SjA_L)rVSx%E(WFsmPQ7qCb~u`CW)45$!00ZNyZ8phE^#i$<8I|W@YJth6aX# zd6|}Og^`Kw0ol31UIB(td9IZnk-nbVUWp-|`4a;bCR?&edt)_AKRsVBH$MerWNLPi zOQvUKa7tuGR;Fo@lb>UDMWk<4iCegDM5VK3poLFZm07xbm`kYv(8$ep?5|b>0J2y% Ak^lez diff --git a/internal/ape/converter.go b/internal/ape/converter.go index dec6f80d8..f629e262d 100644 --- a/internal/ape/converter.go +++ b/internal/ape/converter.go @@ -33,7 +33,9 @@ func ConvertEACLToAPE(eaclTable *eacl.Table) (*apechain.Chain, error) { if eaclTable == nil { return nil, nil } - res := &apechain.Chain{} + res := &apechain.Chain{ + MatchType: apechain.MatchTypeFirstMatch, + } resource := getResource(eaclTable)