-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit privilege scope for Compass Manager #167
Changes from all commits
c432e21
ba7a99a
37c9d88
dc82dfb
868ecd3
4d66fe7
774b63d
c09a768
a2aa3a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# permissions for end users to edit compassmanagers. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
kind: Role | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/name: role | ||
app.kubernetes.io/instance: compassmanager-editor-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: compass-manager | ||
app.kubernetes.io/part-of: compass-manager | ||
app.kubernetes.io/managed-by: kustomize | ||
name: compassmanager-editor-role | ||
namespace: kcp-system | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we maybe set all the namespaces with a kustomize, if multiple resources have the same namespace? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can leave this as it is. It increase the readability of the resources. But in our environment charts I used the Kustomize to fill this field. |
||
rules: | ||
- apiGroups: | ||
- operator.kyma-project.io | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
kind: Role | ||
metadata: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this role also have labels connecting it with |
||
creationTimestamp: null | ||
name: compass-manager-role | ||
namespace: kcp-system | ||
rules: | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
kind: RoleBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: clusterrolebinding | ||
app.kubernetes.io/name: rolebinding | ||
app.kubernetes.io/instance: compass-manager-rolebinding | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: compass-manager | ||
app.kubernetes.io/part-of: compass-manager | ||
app.kubernetes.io/managed-by: kustomize | ||
name: compass-manager-rolebinding | ||
namespace: kcp-system | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
kind: Role | ||
name: compass-manager-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: compass-manager | ||
namespace: kcp-system | ||
namespace: kcp-system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we use highest currently supported by our gardener,
1.29.3
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compass Manager was tested to support the 1.28.x version (the same version as in our enviroments)