bhouse-nexthop opened a new issue, #14747:
URL: https://github.com/apache/cloudstack/issues/14747

   ### problem
   
   CKS creates the role `Project Kubernetes Service Role` (used by the service 
account of project-owned clusters) only once, with the allowlist of the version 
that created it. Later versions add APIs to that list, but the existing role is 
never updated.
   
   | install | role contents | result |
   |---|---|---|
   | fresh | current allowlist | works |
   | upgraded | allowlist of the older version | the cluster's CloudStack 
integrations get permission errors, e.g. the CSI driver on `createVolume`, 
`attachVolume`, `detachVolume`, `resizeVolume`, `createSnapshot` |
   
   The only fix today is to add the rules by hand, in front of the `*` deny 
rule.
   
   ### versions
   
   4.22 (and main)
   
   ### The steps to reproduce the bug
   
   1. Have a project role created by a version whose allowlist lacks some API 
(or delete the `createVolume` rule from the role).
   2. Upgrade / restart the management server.
   3. The role still lacks the rule; the service account's key gets a 
permission error for that API.
   
   ### What to do about it?
   
   On management server start, add any API of the current allowlist that the 
role has no rule for, as `ALLOW`, in front of its `*` rule. Keep everything 
else as it is.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] CKS: project role created... bhouse-nexthop (via GitHub) via commits

Reply via email to