mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-04 14:12:07 +09:00
A bucket cannot serve its objects without a signature: every BucketAccess issues a key, and the keys grant neither WriteAcp nor PutBucketPolicy, so a tenant cannot open the bucket themselves with put-bucket-acl. Static assets then need a proxy, presigned URLs or an operator running weed shell by hand, which no reconcile tracks and which outlives the bucket. publicRead renders one more BucketAccess on a new -public access class whose accessPolicy is public-read. The COSI driver handles that policy by adding Read:<bucket> to the gateway's anonymous identity and removing only that action on revoke, so deleting the bucket or turning the flag off closes it again without touching other public buckets. Anonymous callers can read objects but cannot list the bucket or write to it. The access is named <bucket>-public-read, the name a user called public-read would take, so that combination fails to render instead of fighting over one BucketAccess. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
19 lines
884 B
YAML
19 lines
884 B
YAML
## @param {bool} locking=false - Provisions bucket from the `-lock` BucketClass (with object lock enabled).
|
|
locking: false
|
|
|
|
## @param {string} [storagePool] - Selects a specific BucketClass by storage pool name.
|
|
## @x-cozystack-options {source: storagepool}
|
|
storagePool: ""
|
|
|
|
## @param {bool} ui=true - Deploys the web UI (s3manager) with its Service and its Ingress or HTTPRoute at `<bucket>.<tenant host>`. Set to `false` to run the bucket without them.
|
|
ui: true
|
|
|
|
## @param {bool} publicRead=false - Serves the bucket's objects to anyone without credentials at `<endpoint>/<bucket>/<key>`. Anonymous callers can read objects but cannot list the bucket or write to it.
|
|
publicRead: false
|
|
|
|
## @typedef {struct} User - Bucket user configuration.
|
|
## @field {bool} [readonly] - Whether the user has read-only access.
|
|
|
|
## @param {map[string]User} users - Users configuration map.
|
|
users: {}
|