changlin.shi
0c3009911e
optimize readability
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
5d582ab848
set bucket ownership if not empty
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
c2c4158238
create bucket with ownership
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
89942cf015
fix nil pointer when no identity config init
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
f1d6302400
acl for complete multipart uplod
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
d1b1f5e790
fix http code for dir
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
381b496132
acl for Initializing multipart upload
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
chrislu
70a4c98b00
refactor filer_pb.Entry and filer.Entry to use GetChunks()
for later locking on reading chunks
2 years ago
LHHDZ
39f0246deb
fix 'NoSuchUpload' when upload part ( #3968 )
2 years ago
changlin.shi
4364f4dfe3
don't set acp when ownership is BucketOwnerEnfored
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
famosss
df0662038c
feat:add a uuid after uploadid ( #3963 )
2 years ago
pavelzhurov
abe4a61659
Bug fix: empty key in DeleteMultipleObjects request caused bucket delete ( #3939 )
2 years ago
chrislu
8b9957d461
add back "/" prefix if it is missing in object
fix https://github.com/seaweedfs/seaweedfs/issues/3737
2 years ago
chrislu
ea2637734a
refactor filer proto chunk variable from mtime to modified_ts_ns
2 years ago
changlin.shi
ebe1e39e7d
fix parent path
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
900feb62b6
fix parent path
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
famosss
34132b2c9f
fix: isTruncated returns problematic ( #3907 )
2 years ago
famosss
874fd197b5
feat: simplify a bit ( #3905 )
2 years ago
famosss
25e012d30b
fix: set user metadata key to lowercase ( #3894 )
* fix: set user metadata key to lowercase
* feat: simplify a bit
2 years ago
Guo Lei
97edb40275
Fix errinfo ( #3893 )
* types packages is imported more than onece
* Fix error response when format of --expires is wrong.
It MUST be in RFC 1123 date format.
2 years ago
changlin.shi
1f2883f771
merge
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
LHHDZ
a5b867af69
don't skip empty value at `AssembleEntryWithAcp` ( #3855 )
* add acl helper functionalities
Signed-off-by: changlin.shi <changlin.shi@ly.com>
* add tests
Signed-off-by: changlin.shi <changlin.shi@ly.com>
* remove 0 when create map
Signed-off-by: changlin.shi <changlin.shi@ly.com>
* delete when empty at `AssembleEntryWithAcp`
`PutBucketAcl/PutObjectAcl` allow request with empty grants, `AssembleEntryWithAcp` shouldn't skip empty value
Signed-off-by: changlin.shi <changlin.shi@ly.com>
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
b8f7e75c3d
delete when empty at `AssembleEntryWithAcp`
`PutBucketAcl/PutObjectAcl` allow request with empty grants, `AssembleEntryWithAcp` shouldn't skip empty value
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
2227888acc
validate grants when setting ownership to `OwnershipBucketOwnerEnforced`
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
e576e4cee8
enable anonymous access when bucket acl is enabled
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
4b36721323
implement `GetObjectAclHandler`
2 years ago
changlin.shi
f79a3a73ee
add acl support for `PutObjectAcl`
2 years ago
changlin.shi
af093721a2
add acl support for `PutObject` and `PutObjectPart`
2 years ago
changlin.shi
e76f66a0d0
add acl validation for s3 bucket read api
2 years ago
changlin.shi
558ba1094a
implement `PutBucketAclHandler`
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
bbecba266d
extract and save acl when create bucket
2 years ago
changlin.shi
daf5b4d59b
add acl validation for s3 GetObjectHandler
2 years ago
LHHDZ
bf5e45b66a
add acl helper functionalities ( #3831 )
2 years ago
changlin.shi
f1c05eb2fb
remove 0 when create map
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
293113d1b8
add tests
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
changlin.shi
b52ee30fdd
add acl helper functionalities
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
LHHDZ
d21e2f523d
split `ExtAcpKey` to `ExtAmzOwnerKey` and `ExtAmzAclKey` to avoid unn… ( #3824 )
split `ExtAcpKey` to `ExtAmzOwnerKey` and `ExtAmzAclKey` to avoid unnecessary `json.Unmarshal()` call
Signed-off-by: changlin.shi <changlin.shi@ly.com>
Signed-off-by: changlin.shi <changlin.shi@ly.com>
2 years ago
LHHDZ
3550692afc
change s3_account.go package to avoid cycle dependency ( #3813 )
2 years ago
Konstantin Lebedev
ec46a34f33
avoid increasing the coordinates of metric labels ( #3785 )
2 years ago
LHHDZ
e9584d9661
add ownership rest apis ( #3765 )
2 years ago
LHHDZ
3de1e19780
s3: sync bucket info from filer ( #3759 )
2 years ago
LHHDZ
aacdcc4cad
s3: add account ( #3753 )
associate `Account` and `Identity` by accountId
2 years ago
chrislu
31922b2bf2
s3 to watch specific directories
2 years ago
Ryan Russell
6f7ef8711a
docs(s3api): readability improvements ( #3696 )
Signed-off-by: Ryan Russell <git@ryanrussell.org>
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2 years ago
Ryan Russell
ad3a3c8782
refactor(s3api_object_handlers): `deleteMultipleObjectsLimmit` -> `de… ( #3695 )
refactor(s3api_object_handlers): `deleteMultipleObjectsLimmit` -> `deleteMultipleObjectsLimit`
Signed-off-by: Ryan Russell <git@ryanrussell.org>
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2 years ago
ImFantuan
b64411bda8
fix 0 size ( #3683 )
2 years ago
famosss
bb880d6253
IsTruncated returned by the ListMultipartUploads method is set to false by default ( #3682 )
* simplify a bit
* fix: IsTruncated returned by the ListMultipartUploads method is set to false by default
2 years ago
chrislu
21c0587900
go fmt
2 years ago
Ryan Russell
d54eb9966f
refactor: `Directory` readability ( #3665 )
2 years ago
Konstantin Lebedev
8c3040db81
avoid DATA RACE on S3Options.localFilerSocket ( #3571 )
* avoid DATA RACE on S3Options.localFilerSocket
https://github.com/seaweedfs/seaweedfs/issues/3552
* copy localSocket
2 years ago