Skip to content

Commit

Permalink
Merge pull request #308 from bnshr/nerc-operations-124
Browse files Browse the repository at this point in the history
Allow role based access control to Loki logs
  • Loading branch information
larsks authored Oct 31, 2023
2 parents 66577be + 465be5a commit d28c7e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions logging/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- clusterloggings
- clusterlogforwarders
- externalsecrets
- rolebindings
commonLabels:
app.kubernetes.io/name: logging
app.kubernetes.io/component: logging
Expand Down
4 changes: 4 additions & 0 deletions logging/base/rolebindings/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- rolebinding.yaml
13 changes: 13 additions & 0 deletions logging/base/rolebindings/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: log-collector-privileged-binding-nerc-logs-metrics
namespace: openshift-logging
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: nerc-logs-metrics
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: log-collector-privileged

0 comments on commit d28c7e7

Please sign in to comment.