mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 12:13:55 +09:00
fix(seaweedfs): pin the COSI driver release with public-read access
The public BucketAccessClass relies on the public-read accessPolicy, which the driver supports from v0.5.0; v0.4.0 would hand out keys instead of anonymous read access. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
3 files changed
+8
-7
No files matched your search
@@ -1 +1 @@
|
||||
ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.4.0
|
||||
ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.5.0
|
||||
@@ -7,8 +7,8 @@ suite: seaweedfs COSI driver image pin
|
||||
# BucketAccess and ignores the accessPolicy parameter. The chart ships a
|
||||
# -readonly BucketAccessClass with parameters.accessPolicy: readonly, so on
|
||||
# v0.1.2 a credential meant to be read-only is silently granted read-write.
|
||||
# The package values.yaml overrides cosi.image to v0.4.0, which honours
|
||||
# accessPolicy: readonly.
|
||||
# The package values.yaml overrides cosi.image to v0.5.0, which honours
|
||||
# accessPolicy: readonly and public-read.
|
||||
#
|
||||
# This test does not set the image itself; it relies on the package values.yaml
|
||||
# override, so it goes red if that override is removed and the image falls back
|
||||
@@ -25,7 +25,7 @@ release:
|
||||
namespace: cozy-seaweedfs
|
||||
|
||||
tests:
|
||||
- it: pins the cosi-driver container to v0.4.0 (read-only access enforcement)
|
||||
- it: pins the cosi-driver container to v0.5.0 (read-only and public-read access policies)
|
||||
template: charts/seaweedfs/templates/cosi/cosi-deployment.yaml
|
||||
set:
|
||||
seaweedfs.cosi.enabled: true
|
||||
@@ -35,4 +35,4 @@ tests:
|
||||
value: seaweedfs-cosi-driver
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].image
|
||||
value: ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.4.0
|
||||
value: ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.5.0
|
||||
@@ -313,8 +313,9 @@ seaweedfs:
|
||||
# actually issues read-only (Read,List) credentials instead of read-write.
|
||||
# v0.4.0 also writes each grant to the per-identity IAM file: v0.3.1
|
||||
# rewrites only the legacy identity.json, which the S3 gateways migrate
|
||||
# concurrently, so a grant could be lost for good.
|
||||
image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.4.0"
|
||||
# concurrently, so a grant could be lost for good. v0.5.0 adds the
|
||||
# public-read accessPolicy the -public BucketAccessClass relies on.
|
||||
image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.5.0"
|
||||
podLabels:
|
||||
policy.cozystack.io/allow-to-apiserver: "true"
|
||||
driverName: "seaweedfs.objectstorage.k8s.io"
|
||||
|
||||
Reference in new issue
Block a user