You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a presigned PUT URL is requested for a database whose S3 bucket
doesn't exist yet, the plugin now automatically provisions it with
the correct privacy policies, CORS rules, and lifecycle settings.
Changes:
- Add EnsureBucketProvisioned callback type to plugin options
- Add in-memory Set cache (provisionedBuckets) in storage-module-cache
to track which S3 buckets are known to exist — no TTL needed since
buckets are never deleted; resets on server restart (idempotent)
- Wire ensureS3BucketExists into requestUploadUrl before generating
the presigned PUT URL — first request provisions, subsequent skip
- Add createEnsureBucketProvisioned factory in presigned-url-resolver
that uses BucketProvisioner for full bucket setup
- Wire into ConstructivePreset with same allowedOrigins as bucket
provisioner plugin
0 commit comments