Object Storage (S3)
S3-compatible object storage on the ayedo SDP with Ceph RGW and RustFS: provisioning buckets via the S3Bucket CR and accessing them via mc, AWS CLI, and apps.
Object Storage (S3)
The ayedo Software Delivery Platform (SDP) provides S3-compatible object storage for application data, media uploads, artifacts, and backups. Ceph RGW (RADOS Gateway) and RustFS are used as production storage backends.
Supported Backends and Deployment Patterns
| Backend | Characteristics & Typical Use Case |
|---|---|
| Ceph RGW | Highly scalable, distributed S3 gateway built on Rook/Ceph — ideal for larger data volumes, multi-tenant environments, and central backup targets |
| RustFS | Lightweight, high-performance S3-compatible object storage written in Rust — ideal for lean, cluster-local, or dedicated S3 instances |
Typical Access Models
- Cluster-Internal S3 (Default): The S3 endpoint is reachable exclusively from the cluster or VPN network — ideal for application uploads, CloudNativePG backups, and Velero.
- Tenant Buckets: Each application or namespace receives its own buckets and dedicated access key pairs following the principle of least privilege.
- Public Access: Only after explicit enablement via Ingress/Gateway and appropriate bucket policies; by default, buckets are private.
Provisioning Buckets Declaratively via the S3Bucket Custom Resource
On SDP clusters with bucket integration enabled, you can roll out S3 buckets declaratively as a Kubernetes resource (polycrate.io/v1alpha1, kind: S3Bucket) alongside your application:
apiVersion: polycrate.io/v1alpha1
kind: S3Bucket
metadata:
name: acme-app-data
namespace: acme-production
spec:
name: acme-app-data
reclaim_policy: retain
The operator provisions the bucket and automatically stores the credentials as a Kubernetes Secret (s3-acme-app-data-credentials) in the same namespace. For the complete specification of all fields, status phases, and Secret keys, see Cluster Integrations — S3Bucket Custom Resource.
In environments without the S3Bucket controller, you receive the endpoint URL, bucket name, and access/secret key from platform operations or via OpenBao.
Usage in Applications
Mount the generated credentials Secret directly into your Deployment via envFrom:
containers:
- name: acme-app
image: registry.acme.corp/acme/my-app:1.0.0
envFrom:
- secretRef:
name: s3-acme-app-data-credentials
For standard S3 SDKs (Go, Python/boto3, Node.js, Java, PHP), configure:
- Endpoint URL: from
S3_ENDPOINT(always use HTTPS) - Credentials:
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY - Bucket & Region:
BUCKET_NAMEandS3_REGION(if set) - Path-Style Addressing: commonly enable
forcePathStyle: truefor cluster-internal S3 endpoints
CLI Access (aws and mc)
Standard S3 CLI tools are available for administration, inspection, and uploads/downloads.
Using the AWS CLI (aws s3)
export AWS_ACCESS_KEY_ID="<access-key>"
export AWS_SECRET_ACCESS_KEY="<secret-key>"
export S3_ENDPOINT="https://s3.example.com"
# List contents of a bucket
aws --endpoint-url "$S3_ENDPOINT" s3 ls s3://acme-app-data/
# Upload a file
aws --endpoint-url "$S3_ENDPOINT" s3 cp ./report.pdf s3://acme-app-data/reports/report.pdf
# Synchronize recursively
aws --endpoint-url "$S3_ENDPOINT" s3 sync ./export/ s3://acme-app-data/export/
Using the mc S3 CLI Client
# Create an alias for the S3 endpoint
mc alias set acme-s3 "$S3_ENDPOINT" "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY"
# Inspect contents and storage usage
mc ls acme-s3/acme-app-data/
mc du acme-s3/acme-app-data/
# Copy or display a file
mc cp ./report.pdf acme-s3/acme-app-data/reports/report.pdf
mc cat acme-s3/acme-app-data/config.json
Security and Best Practices
- No Public ACLs: Keep buckets holding customer data private and use short-lived presigned URLs for browser uploads and downloads where needed.
- Protect Credentials: Never store access keys in Git; manage manually issued keys via OpenBao and External Secrets, or use the automatically generated
S3BucketSecret. - Rotate Keys: Rotate S3 credentials on personnel changes or suspected compromise.
- Use NetworkPolicies: Restrict outbound access to the S3 endpoint to the namespaces and pods that genuinely require it.
- Maintain Lifecycle Rules: Regularly delete or expire temporary objects and outdated exports to keep storage consumption predictable.
Binding details on availability, backup options, and service scope for Managed Object Storage are defined in the Service Annex to the Terms and Conditions.