s3: option to disable bucket auto-creation on upload (#10759)

* s3: add option to disable bucket auto-creation on upload

* command: expose -autoCreateBucket in s3, filer, server, and mini

* s3: apply the bucket auto-create policy to directory marker uploads

* s3: validate the bucket name before the auto-create disabled check

* s3: cover the disabled auto-create gate at all three upload entry points
This commit is contained in:
Chris Lu authored and GitHub committed 2026-08-14 10:58:45 -07:00
1 parent 02b3ec6e90
commit f66d6ffc4a
8 files changed
+93 -1

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ type S3ApiServerOption struct {
BucketsPath string
GrpcDialOption grpc.DialOption
AllowDeleteBucketNotEmpty bool
AutoCreateBucket bool // create the bucket on upload if it does not exist
LocalFilerSocket string
DataCenter string
FilerGroup string