conjurdemos / kubernetes-conjur-demo

Demo application for Conjur Kubernetes integration
11 stars 14 forks source link

Include creation of a (namespace-scoped) RoleBinding for Conjur OSS helm deployments #114

Closed diverdane closed 4 years ago

diverdane commented 4 years ago

Is your feature request related to a problem? Please describe.

Currently the demo scripts skip the creation of a namespace-scoped RoleBinding whenever the scripts are being run using a Conjur OSS deployed via Helm chart (i.e. when CONJUR_OSS_HELM_DEPLOYED environment variable is set to true). The reason that the creation of RoleBinding can be skipped is that the Conjur OSS Helm charts currently include the creation of a ClusterRoleBinding that is equivalent in every way except that the ClusterRoleBinding has cluster-wide scope (can be used in all namespaces).

A better approach would be to use only namespace-scoped RoleBindings (rather than ClusterRoleBindings) for these scripts because that would be exercising the principle of least privilege (permissions only apply to namespaces that explicitly include a RoleBinding).

To do this, it would involve:

Describe the solution you would like

Describe alternatives you have considered

Additional context