mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 20:56:02 +09:00
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>