Skip to content

Commit c2d370e

Browse files
committed
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 <[email protected]>
1 parent 21fd2b7 commit c2d370e

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.4.0
1+
ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.5.0

‎packages/system/seaweedfs/tests/cosi_image_test.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ suite: seaweedfs COSI driver image pin
77
# BucketAccess and ignores the accessPolicy parameter. The chart ships a
88
# -readonly BucketAccessClass with parameters.accessPolicy: readonly, so on
99
# v0.1.2 a credential meant to be read-only is silently granted read-write.
10-
# The package values.yaml overrides cosi.image to v0.4.0, which honours
11-
# accessPolicy: readonly.
10+
# The package values.yaml overrides cosi.image to v0.5.0, which honours
11+
# accessPolicy: readonly and public-read.
1212
#
1313
# This test does not set the image itself; it relies on the package values.yaml
1414
# override, so it goes red if that override is removed and the image falls back
@@ -25,7 +25,7 @@ release:
2525
namespace: cozy-seaweedfs
2626

2727
tests:
28-
- it: pins the cosi-driver container to v0.4.0 (read-only access enforcement)
28+
- it: pins the cosi-driver container to v0.5.0 (read-only and public-read access policies)
2929
template: charts/seaweedfs/templates/cosi/cosi-deployment.yaml
3030
set:
3131
seaweedfs.cosi.enabled: true
@@ -35,4 +35,4 @@ tests:
3535
value: seaweedfs-cosi-driver
3636
- equal:
3737
path: spec.template.spec.containers[0].image
38-
value: ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.4.0
38+
value: ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.5.0

‎packages/system/seaweedfs/values.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,9 @@ seaweedfs:
313313
# actually issues read-only (Read,List) credentials instead of read-write.
314314
# v0.4.0 also writes each grant to the per-identity IAM file: v0.3.1
315315
# rewrites only the legacy identity.json, which the S3 gateways migrate
316-
# concurrently, so a grant could be lost for good.
317-
image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.4.0"
316+
# concurrently, so a grant could be lost for good. v0.5.0 adds the
317+
# public-read accessPolicy the -public BucketAccessClass relies on.
318+
image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.5.0"
318319
podLabels:
319320
policy.cozystack.io/allow-to-apiserver: "true"
320321
driverName: "seaweedfs.objectstorage.k8s.io"

0 commit comments

Comments
 (0)