kyma-project / compass-manager

Manager for the compass module
Apache License 2.0
1 stars 8 forks source link

[Threat Modelling] Ensure least privileges principle is used for Compass Manager #50

Open tobiscr opened 1 year ago

tobiscr commented 1 year ago

Description

To follow the least privilege approach for the Compass Manager, restrictive RBAC rules have to be established.

The Kubernetes service account which is used to run the Compass Manager should only be allowed to access Kubernetes resources which are mandatory to fulfil his job. Access to other resources on the KCP cluster has to be rejected.

AC:

Steps to exploit

Compass Manager is able to read Kubernetes resources which are NOT required to fulfil his work.

Risk assessment

Result of the Treat Modelling workshop from 2023-11-29.

Proposed mitigation

Define RBAC rules for the Compass Manager service account by setting up a proper and restrictive Kubernetes role and role binding.

tobiscr commented 11 months ago

https://app.mural.co/t/sap10/m/sap10/1701162989605/93d8a5cfd1937c1ed568d324926d51d6d4c96669?sender=u03d165e43fbc397bd7057627