Files
cozystack/packages/system
Andrei Kvapil 6ba465d40a fix(linstor): admit only blockstor's own Secret creates
RBAC cannot limit create by name, and the blockstor controller and
apiserver need create for the keyring and the generated unlock Secret.
With the name-limited get they also hold, a compromised pod could
create a service-account-token Secret for one of piraeus's
ServiceAccounts in cozy-linstor under a covered name that does not
exist yet, linstor-passphrase on a cluster that never set one, and read
the token back. blockstor's design leaves closing this to the chart.

The policy matches only Secret creates in the release namespace by the
blockstor ServiceAccounts, so it cannot reach piraeus or cert-manager,
and admits the keyring and the unlock Secret with the types blockstor
gives them. The passphrase Secret is not admitted: blockstor never
writes it.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-11-29 13:45:12 +01:00
..
…
…
…