kubebb / core

A declarative component lifecycle management platform
https://kubebb.github.io/website
Apache License 2.0
8 stars 9 forks source link

limit manager's permission to align with the principle of least privilege #289

Closed bjwswang closed 11 months ago

bjwswang commented 1 year ago

Since we use user's own identity to hanlde component installation,we should limit manager's permission to align with the principle of least privilege

bjwswang commented 1 year ago

The componentplan requires sufficient permissions to complete the deployment of components. We use Creator(filled by webhook) to make sure the controller uses creator's permission to finish the deployment.

If we remove create/update/delete permissions of services,deployments,pods,secrets,etc from core operator, it won't work any more if webhook is disabled. let's keep cluster admin to core until we found a better solution