Skip to content

[Backport release-1.4] fix(dashboard): grant tenant dashboard read on cozy-public PVCs - #2858

Merged
myasnikovdaniil merged 1 commit into
release-1.4from
backport-2843-to-release-1.4
Jun 10, 2026
Merged

myasnikovdaniil merged 1 commit into
release-1.4from
backport-2843-to-release-1.4

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Description

Backport of #2843 to release-1.4.

The vm-disk source image dropdown in the console lists PersistentVolumeClaims in cozy-public (the vm-default-images-* golden images). The browser issues that list as the tenant identity (e.g. system:serviceaccount:tenant-root:tenant-root), but the cozy:tenant:dashboard Role only granted read on Flux helmrepositories and helmcharts. The list returned 403 and the dropdown stayed empty even when the images existed.

Add get/list/watch on persistentvolumeclaims to the Role. cozy-public is a shared public namespace, so read on its PVCs is safe to expose to every tenant dashboard subject. A helm-unittest regression pins the grant.

Assisted-By: Claude <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
(cherry picked from commit bb32213)
@dosubot dosubot Bot added area/dashboard Issues or PRs related to the dashboard / UI kind/backport Categorizes issue or PR as requiring a backport to the current release line kind/bug Categorizes issue or PR as related to a bug labels Jun 9, 2026
@myasnikovdaniil
myasnikovdaniil merged commit fec64c2 into release-1.4 Jun 10, 2026
7 checks passed
@myasnikovdaniil
myasnikovdaniil deleted the backport-2843-to-release-1.4 branch June 10, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dashboard Issues or PRs related to the dashboard / UI kind/backport Categorizes issue or PR as requiring a backport to the current release line kind/bug Categorizes issue or PR as related to a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant