ADR-001: Provision Storage on AWS, OTC, and MinIO
Status
Accepted
Date
2025-10-03
Context
Provider Storage offers one Storage API for AWS S3, OTC OBS, and MinIO.
Each backend uses different bucket, identity, credential, and policy resources.
A shared Composition would mix these provider-specific models.
Decision
Keep the Storage API independent of the backend. Use one Composition for
each backend.
Each Composition must:
- create the declared buckets;
- create the consumer identity, credentials, and permissions;
- grant access only after it verifies the bucket owner and the matching grant;
- publish a consumer Secret named
spec.principalin the Storage namespace, withAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY.
An access request is intent only. Access becomes active only when the verified bucket owner sets a matching grant.
The backend resource mapping is:
| Backend | Bucket | Consumer identity | Authorization |
|---|---|---|---|
| MinIO | Bucket |
User |
named Policy resources |
| AWS | S3 Bucket |
IAM User and AccessKey |
IAM Policy and UserPolicyAttachment |
| OTC | wrapped OBS Bucket |
wrapped IAM UserV3 and CredentialV3 |
OBS BucketPolicy with user IDs |
Provider-kubernetes Object resources wrap resources that cannot be composed
or observed directly.
Consequences
- A new backend needs a new Composition and backend-specific tests.
- S3 compatibility does not prove correct provisioning or authorization.
- Grant logic must verify bucket ownership and discoverability.
Current limits
- Peer lookup uses the Storage discovery label. It does not enforce the
per-bucket
discoverableflag as a condition for a grant. - Provider-kubernetes has broad access to provider resources and Secrets. Platform RBAC is part of the security boundary.