Complex object cannot be put when it should pass APE rule. #1300
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1300
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
Successfull object put
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
check_key=check_value
. It should pass the rule, sincecheck_value
is equals the rule (which is StringNotEquals).IMPORTANT NOTE:
Same issue may happen if we do
ResourceCondition "check_key"=""
(i.e. we want to deny objects with empty attribute) and put complex object with this attribute not empty.Context
Migration of ACL => APE autotests
Regression
No(?)
This can be checked with
frostfs-dev-env
but the object must be hugeIf you try to upload
random_payload.bin
byobject put
, then you'll encounter the error. This happens because the compex object parts are sent without attributes butworks out although attribute doesn't come (
"" != "check_value" == true
). So, this probably requires a change withinpolicy-engine
that should read value by presented key.The problem that @abereziny is struggling can be temporarily solved by this
TBH, I am barely able to recall the full context of the discussion. Looking at this comment I got an idea that this point actually exists in fact but it's irrelevant to the issue.
I tried to reproduce the issue on the latest commit and got no errors
This was reproduced neither.
@abereziny, Can you recheck on your own, please?