Skip to content
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

[kommander, opsportal] Add clusterroles for well known endpoints #396

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/kommander/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainers:
- name: alejandroEsc
- name: jimmidyson
name: kommander
version: 0.3.23
version: 0.3.24
265 changes: 265 additions & 0 deletions stable/kommander/templates/ingress-roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
{{- if .Values.rbac.enabled }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-base-admin
rules:
- nonResourceURLs:
- /ops/portal/kommander
- /ops/portal/kommander/*
verbs:
- get
- head
- post
- put
- delete

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-base-view
rules:
- nonResourceURLs:
- /ops/portal/kommander
- /ops/portal/kommander/*
verbs:
- get
- head

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-base-edit
rules:
- nonResourceURLs:
- /ops/portal/kommander
- /ops/portal/kommander/*
verbs:
- get
- head
- post
- put

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-ui-edit
rules:
- nonResourceURLs:
- /ops/portal/kommander/ui
- /ops/portal/kommander/ui/*
verbs:
- get
- head
- post
- put

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-ui-admin
rules:
- nonResourceURLs:
- /ops/portal/kommander/ui
- /ops/portal/kommander/ui/*
verbs:
- get
- head
- post
- put
- delete

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-ui-view
rules:
- nonResourceURLs:
- /ops/portal/kommander/ui
- /ops/portal/kommander/ui/*
verbs:
- get
- head

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-monitoring-view
rules:
- nonResourceURLs:
- /ops/poratl/kommander/monitoring
- /ops/portal/kommander/monitoring/*
verbs:
- get
- head

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-monitoring-edit
rules:
- nonResourceURLs:
- /ops/poratl/kommander/monitoring
- /ops/portal/kommander/monitoring/*
verbs:
- get
- head
- post
- put

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-monitoring-admin
rules:
- nonResourceURLs:
- /ops/poratl/kommander/monitoring
- /ops/portal/kommander/monitoring/*
verbs:
- get
- head
- post
- put
- delete

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-grafana-view
rules:
- nonResourceURLs:
- /ops/portal/kommander/monitoring/grafana
- /ops/portal/kommander/monitoring/grafana/*
verbs:
- get
- head

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-grafana-edit
rules:
- nonResourceURLs:
- /ops/portal/kommander/monitoring/grafana
- /ops/portal/kommander/monitoring/grafana/*
verbs:
- get
- head
- post
- put

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-grafana-admin
rules:
- nonResourceURLs:
- /ops/portal/kommander/monitoring/grafana
- /ops/portal/kommander/monitoring/grafana/*
verbs:
- get
- head
- post
- put
- delete

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-karma-view
rules:
- nonResourceURLs:
- /ops/portal/kommander/monitoring/karma
- /ops/portal/kommander/monitoring/karma/*
verbs:
- get
- head

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-karma-edit
rules:
- nonResourceURLs:
- /ops/portal/kommander/monitoring/karma
- /ops/portal/kommander/monitoring/karma/*
verbs:
- get
- head
- post
- put

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-karma-admin
rules:
- nonResourceURLs:
- /ops/portal/kommander/monitoring/karma
- /ops/portal/kommander/monitoring/karma/*
verbs:
- get
- head
- post
- put
- delete

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-query-view
rules:
- nonResourceURLs:
- /ops/poratl/kommander/monitoring/query
- /ops/portal/kommander/monitoring/query/*
verbs:
- get
- head

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-query-edit
rules:
- nonResourceURLs:
- /ops/poratl/kommander/monitoring/query
- /ops/portal/kommander/monitoring/query/*
verbs:
- get
- head
- post
- put

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kommander-query-admin
rules:
- nonResourceURLs:
- /ops/poratl/kommander/monitoring/query
- /ops/portal/kommander/monitoring/query/*
verbs:
- get
- head
- post
- put
- delete
{{- end }}
3 changes: 3 additions & 0 deletions stable/kommander/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ grafana:
# Otherwise the namespace in which the sidecar is running will be used.
# It's also possible to specify ALL to search in all namespaces
searchNamespace: null

rbac:
enabled: true
2 changes: 1 addition & 1 deletion stable/opsportal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.0.0
home: https://github.com/mesosphere/charts
description: OpsPortal Chart
name: opsportal
version: 0.1.33
version: 0.1.34
maintainers:
- name: hectorj2f
- name: alejandroEsc
Expand Down
Loading