Konstantin Lebedev
f8b94cac0e
[s3acl] Step1: move s3account.AccountManager into to iam.S3ApiConfiguration ( #4859 )
* move s3account.AccountManager into to iam.S3ApiConfiguration and switch to Interface
https://github.com/seaweedfs/seaweedfs/issues/4519
* fix: test bucket acl default and
adjust the variable names
* fix: s3 api config test
---------
Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
1 year ago
Konstantin Lebedev
a46f873edd
[s3acl] Step 0: Put bucket ACL only responds success if the ACL is private. ( #4856 )
* Passing test:
test_bucket_acl_default
test_bucket_acl_canned_private_to_private
https://github.com/seaweedfs/seaweedfs/issues/4519
* Update weed/s3api/s3api_bucket_handlers.go
---------
Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
1 year ago
SmsS4
17e91d2917
Use filerGroup for s3 buckets collection prefix ( #4465 )
* Use filerGroup for s3 buckets collection prefix
* Fix templates
* Remove flags
* Remove s3CollectionPrefix
2 years ago
chrislu
1c2364936a
detect invalid bucket name
fix https://github.com/seaweedfs/seaweedfs/issues/4143
2 years ago
LHHDZ
e9584d9661
add ownership rest apis ( #3765 )
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
Konstantin Lebedev
bcbdc4cb37
use const multipart uploads folder
avoid error bucket NotEmpty if multipart uploads folder exist
3 years ago
chrislu
27732ecfa4
move s3 related constants from package http to s3_constants
3 years ago
chrislu
00c1dfec4f
go fmt
3 years ago
root
f15a737a0a
Add "Location:" in response when creating bucket
according to "https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html "
3 years ago
Konstantin Lebedev
691ed50957
use constant for ErrBucketNotEmpty
3 years ago
Konstantin Lebedev
b6a2b43efe
allowDeleteBucketNotEmpty
3 years ago
Konstantin Lebedev
a8b15c676c
s3 test bucket delete nonempty
4 years ago
guosj
121b31f750
fix incorrect log information
3 years ago
zerospiel
b54a65ba5a
weed/s3api: added new bucket handlers for more compatibility with AWS S3
Protocol
Otherwise any requests to the underlying handlers results in calls to
ListObjects (v1) that may intensively load gateway and volume servers.
Added the following handlers with default responses:
- GetBucketLocation
- GetBucketRequestPayment
Added the following handlers with NotFound and NotImplemented responses:
- PutBucketAcl
- GetBucketPolicy
- PutBucketPolicy
- DeleteBucketPolicy
- GetBucketCors
- PutBucketCors
- DeleteBucketCors
3 years ago
chrislu
a7887166cf
wildcard prefix to restrict access to directories in s3 bucket
https://github.com/chrislusf/seaweedfs/discussions/2551
3 years ago
chrislu
9f9ef1340c
use streaming mode for long poll grpc calls
streaming mode would create separate grpc connections for each call.
this is to ensure the long poll connections are properly closed.
3 years ago
Konstantin Lebedev
4ec8715f20
audit log
3 years ago
Konstantin Lebedev
40abae7caa
Avoid forbiddening for HeadBucketHandler if owners are specified
https://github.com/chrislusf/seaweedfs/issues/2434
3 years ago
Chris Lu
35c37562bc
check auth only when enabled
3 years ago
Chris Lu
b25661c6df
s3: skip permission checking for creating bucket if the bucket already exists
fix https://github.com/chrislusf/seaweedfs/issues/2417
Rclone was trying to create the bucket even though the bucket already exists.
3 years ago
Chris Lu
f17fa400d5
refactoring
3 years ago
Chris Lu
006b4ec0f8
refactoring
3 years ago
Konstantin Lebedev
dc3ae5e8a6
DeleteBucketLifecycleConfiguration return 204
3 years ago
Konstantin Lebedev
9d6ffa0ea1
GetBucketLifecycleConfigurationHandler
3 years ago
Konstantin Lebedev
be4b3ed509
AclHandlers
3 years ago
Chris Lu
71175461ef
add glog for s3 handlers
3 years ago
Chris Lu
8b382a8209
refactor
4 years ago
Chris Lu
33b87244ef
refactoring
4 years ago
Konstantin Lebedev
302738ee74
s3 test bucket delete nonempty
4 years ago
Chris Lu
5511722420
s3: list permission is needed to list my buckets
fix https://github.com/chrislusf/seaweedfs/issues/1837
4 years ago
Chris Lu
e327385644
go fmt
4 years ago
Chris Lu
090f85be4b
s3: support config action Admin:bucket
4 years ago
ruitao.liu
a9990a1dc6
adjust check bucket if exist or has access.
4 years ago
Chris Lu
e6333da65a
enable admin to access all buckets
4 years ago
Chris Lu
7094492428
fix ErrNotFound
4 years ago
Chris Lu
c6a0704019
rename function
4 years ago
ruitao.liu
c4f0fd6e1b
skip if entry.Extended map is nil.
4 years ago
ruitao.liu
ab966410d2
return NoSuchBucket instead of InternalError delete non-existed bucket.
4 years ago
ruitao.liu
e06676f007
check permission for bucket delete/head.
4 years ago
ruitao.liu
d7cc0498e0
check if bucket already exists.
4 years ago
ruitao.liu
dbba8cb57e
fix if nil map in entry.
4 years ago
ruitao.liu
5b636b3242
Add bucket owner attr.
4 years ago
Chris Lu
da36abf033
go fmt
4 years ago
Chris Lu
ace0ea3d28
s3: avoid duplicated bucket
4 years ago
Chris Lu
5b40a2690a
refactoring
4 years ago
Chris Lu
3eda8d6dfc
s3: ListParts output xml format
fix https://github.com/chrislusf/seaweedfs/issues/1461
4 years ago
Chris Lu
54cd582653
refactor
4 years ago
Chris Lu
a25a8d8822
s3: print out time in UTC format
fix https://github.com/chrislusf/seaweedfs/issues/1297
5 years ago
Chris Lu
c07bcd5065
refactoring
5 years ago