diff --git a/stable/opsportal/Chart.yaml b/stable/opsportal/Chart.yaml index 168ed9ace..0b4780845 100644 --- a/stable/opsportal/Chart.yaml +++ b/stable/opsportal/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.0.0 home: https://github.com/mesosphere/charts description: OpsPortal Chart name: opsportal -version: 0.2.3 +version: 0.2.4 maintainers: - name: hectorj2f - name: alejandroEsc diff --git a/stable/opsportal/templates/ingress-opsportal-rolebinding.yaml b/stable/opsportal/templates/ingress-opsportal-rolebinding.yaml new file mode 100644 index 000000000..0f33f5a3c --- /dev/null +++ b/stable/opsportal/templates/ingress-opsportal-rolebinding.yaml @@ -0,0 +1,18 @@ +{{- if and .Values.opsportalRBAC.enabled .Values.opsportalRBAC.allowAllAuthenticated }} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: opsportal-authenticated-admin + labels: + app.kubernetes.io/managed-by: {{ .Release.Service | quote }} + app.kubernetes.io/instance: {{ .Release.Name | quote }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} +roleRef: + apiGroup: rbac.authorization.k8s.io + name: opsportal-admin + kind: ClusterRole +subjects: +- apiGroup: "rbac.authorization.k8s.io" + kind: Group + name: system:authenticated +{{- end}} diff --git a/stable/opsportal/values.yaml b/stable/opsportal/values.yaml index fd8782736..ea90833c3 100644 --- a/stable/opsportal/values.yaml +++ b/stable/opsportal/values.yaml @@ -50,6 +50,13 @@ opsportalRBAC: enabled: true path: /ops/portal graphqlPath: /ops/portal/graphql + ## traefik-forward-auth 2.0 introduces RBAC support and now requires that users, regardless of whitelist, + ## be allowed access to a resource via explicit RBAC policy. Upon upgrade, whitelisted users would no longer + ## have access to ops portal resources unless an appropriate role binding existed. To prevent breakage, + ## the allowAllAuthenticated option, when true, will result in the group `system:allauthenticated` being bound to + ## to the opsportal-admin role. This mimics the existing security policy where any authenticated and whitelisted user + ## has full access to the opsportal. This option will be removed in the 0.3 release of this chart. + allowAllAuthenticated: false kibanaRBAC: enabled: true