Allow APE rule with ResourceCondition is not found during requests #1249
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1249
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behavior
Object get passes the rule
Current Behavior
Steps to Reproduce (for bugs)
Context
This was found during eACL to APE transition for autotests
Regression
Yes* (formally)
Briefly, the object (4) is stored with the attributes
'key_one=check_value,x_key=xvalue,check_key=check_value,key=4'
although cannot be loaded withget
(5).The reason why
NoRuleFound
is returned: set WithoutHeaderRequest flag in Get.So, we can't fill ape-request with the attributes here - it just skips this step.
@dstepanov-yadro, as far as I remember, you had introduced the flag to avoid double-checks within APE middleware. What do you think - could we use
WithoutHeaderRequest
flag only for specific cases?Of course, this will lead to some overhead.
Alternatively: for requests where headers are not requested, ignore NoRuleFound for verification before the request done, but take it into account in the verification after the request done and object is ready.