What Spaces Are For
Spaces is the Nubis object storage layer for unstructured data. Use it for:- User uploads and media libraries.
- Build artifacts and backups.
- Logs, exports, and archives.
- Static sites and CDN-backed assets.
Bucket Setup
The recommended setup sequence is:- Create the bucket in the region closest to your workload or users.
- Decide whether the bucket is private by default.
- Create scoped access keys for applications rather than reusing broad credentials.
- Enable CDN only when public distribution is actually required.
- Configure metadata, caching, lifecycle, and versioning deliberately.
Access and Security
Keep Spaces secure by default:- Use private buckets for internal application data.
- Generate access keys per application or service account.
- Use presigned URLs for temporary access to private objects.
- Apply bucket policies with narrow permissions.
- Configure CORS only for domains that truly need browser access.
Performance and Delivery
For public assets:- Enable the CDN.
- Set the right cache headers.
- Use predictable object naming.
- Version assets instead of relying only on cache purges.
- Keep objects private.
- Optimize request patterns in the client or application layer.
- Avoid excessive small-object churn when batching is possible.
Lifecycle and Cost Control
Spaces can grow quietly if you do not manage retention. Review:- Old backups and exports.
- Versioned objects.
- Multipart upload cleanup.
- CDN traffic patterns.
- Public assets that should be compressed or archived.
Troubleshooting
If an application cannot use Spaces correctly, check:- Region and endpoint configuration.
- Access key scope and secret rotation.
- Bucket policy and object ACL expectations.
- CORS or presigned URL expiry settings.
- CDN cache behavior versus origin state.

