mirror of
https://github.com/nspcc-dev/neofs-s3-gw.git
synced 2026-03-01 04:29:15 +00:00
Default bearer rules contain mutually opposite rules #387
Labels
No labels
I2
I2
I3
I4
S2
S3
S4
S4
U0
U1
U2
U2
U3
U4
U4
auth-mate
blocked
bug
config
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
question
security
test
tree-service
tree-service
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-s3-gw#387
Loading…
Add table
Add a link
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?
Originally created by @cthulhu-rider on GitHub (Sep 13, 2023).
Originally assigned to: @smallhive on GitHub.
according to Authmate docs, it generates following bearer access rules:
as we can see, first two rules are similar and have opposite actions. According to the NeoFS protocol, only the 1st record will be processed, and the 2nd will always be ignored (so it's redundant).
Code matches docs
nspcc-dev/neofs-s3-gw@49d12472ae/authmate/authmate.go (L315-L344)i propose to get rid of no-op record