Skip to content

fix(api): ensure storage bucket creation only for non-S3 providers - #133

Merged
pikann merged 1 commit into
masterfrom
fix/ensure-storage-bucket-creatio-only-for-minio
May 22, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/ensure-storage-bucket-creatio-only-for-minio

Conversation

@pikann

@pikann pikann commented May 22, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the logic for storage bucket creation and management, specifically refining when buckets are automatically created versus assumed to exist. The changes help clarify and enforce the intended behavior for different storage providers.

Storage bucket creation logic:

  • The application now only attempts to automatically create the storage bucket when the configured storage provider is not "s3", ensuring that for AWS S3, the bucket must already exist and will not be created by the application (app.go).
  • The EnsureBucket method in the S3 client has been simplified: it always checks for the bucket's existence but no longer attempts to create the bucket for AWS S3 (based on the endpoint), removing the previous conditional logic. This means bucket creation is now only attempted for non-AWS S3 endpoints (such as MinIO), aligning with the updated application logic (s3.go).

@pikann
pikann merged commit d28ea77 into master May 22, 2026
3 checks passed
@pikann
pikann deleted the fix/ensure-storage-bucket-creatio-only-for-minio branch May 22, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant