Anonymous PutObject
request doesn't work #311
Labels
No labels
P0
P1
P2
P3
good first issue
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#311
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?
We cannot
PutObject
using anonymous request even when bucket ispublic-read-write
. Other operations works fine though.Expected Behavior
PutObject
(with--no-sign-request
) is successful when bucket ispublic-read-write
Current Behavior
We get
InternalError
.In logs:
Note:
NUUb82KR2JrVByHs2YSKgtK29gKnF5q6Vt
is address of gate, and this value is used as owner of new object.NbZwUUnt82vJWAcxddMqMbhYvJzGyvy2gE
is randomly generated (once on startup) key for anonymous requests.Possible Solution
Drop
else
branch here.Probably we should do the same for other methods. It must be fair enough because when request is authenticated it must have bearer token, otherwise we always should use gate key to do frostfs requests
Steps to Reproduce (for bugs)
aws s3api --endpoint http://localhost:8084 create-bucket --bucket test public-read-write
aws s3api --endpoint http://localhost:8084 put-object --bucket test --key tmp --no-sign-request
Regression
Probably yes.
Your Environment
cc34f659d1