Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Stop using "cluster admin" role and restrict to ns #3618

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

the-scott-hand
Copy link
Contributor

Heron doesnt need "cluster admin" level permissions, and based on helm chart set up also does not need to manage resources across kubernetes namespaces. Therefore we should be using a Role and RoleBinding combo to only allow heron apiserver to perform actions on statefulsets in its own namespace.

see #3615 (comment)

@nicknezis nicknezis self-requested a review September 14, 2020 21:24
@nicknezis
Copy link
Contributor

The Kubernetes scheduler also creates and deletes namespaced services using the coreClient as seen here.

@nicknezis nicknezis merged commit a3cda19 into apache:master Sep 21, 2020
@nicknezis nicknezis linked an issue Nov 22, 2020 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heron Helm chart should not use cluster-admin role
2 participants