You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: logging/log_storage/cluster-logging-loki.adoc
+2-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ ifdef::openshift-enterprise[]
39
39
* xref:../../nodes/scheduling/nodes-scheduler-pod-topology-spread-constraints.adoc#nodes-scheduler-pod-topology-spread-constraints-configuring[Controlling pod placement by using pod topology spread constraints]
Copy file name to clipboardExpand all lines: modules/logging-loki-log-access.adoc
+29-1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
:_mod-docs-content-type: CONCEPT
6
6
[id="logging-loki-log-access_{context}"]
7
+
tag::ForLoki[]
7
8
= Fine grained access for Loki logs
8
9
9
10
In {logging} 5.8 and later, the {clo} does not grant all users access to logs by default. As an administrator, you must configure your users' access unless the Operator was upgraded and prior configurations are in place. Depending on your configuration and need, you can configure fine grain access to logs using the following:
@@ -12,7 +13,7 @@ In {logging} 5.8 and later, the {clo} does not grant all users access to logs by
12
13
* Namespace scoped policies
13
14
* Creation of custom admin groups
14
15
15
-
As an administrator, you need to create the role bindings and cluster role bindings appropriate for your deployment. The {clo} provides the following cluster roles:
16
+
As an administrator, you need to create the role bindings and cluster role bindings appropriate for your deployment. {clo} provides the following cluster roles:
16
17
17
18
* `cluster-logging-application-view` grants permission to read application logs.
18
19
* `cluster-logging-infrastructure-view` grants permission to read infrastructure logs.
@@ -93,3 +94,30 @@ spec:
93
94
<1> Custom admin groups are only available in this mode.
94
95
<2> Entering an empty list `[]` value for this field disables admin groups.
95
96
<3> Overrides the default groups (`system:cluster-admins`, `cluster-admin`, `dedicated-admin`)
97
+
end::ForLoki[]
98
+
99
+
tag::ForNetObserv[]
100
+
== Custom admin group access
101
+
102
+
If you have a large deployment with a number of users who require broader permissions, you can create a custom group using the `adminGroup` field. Users who are members of any group specified in the `adminGroups` field of the `LokiStack` CR are considered admins. Admin users have access to all application logs in all namespaces, if they also get assigned the `cluster-logging-application-view` role.
103
+
104
+
.Example LokiStack CR
105
+
[source,yaml]
106
+
----
107
+
apiVersion: loki.grafana.com/v1
108
+
kind: LokiStack
109
+
metadata:
110
+
name: logging-loki
111
+
namespace: openshift-logging
112
+
spec:
113
+
tenants:
114
+
mode: openshift-network # <1>
115
+
openshift:
116
+
adminGroups: # <2>
117
+
- cluster-admin
118
+
- custom-admin-group # <3>
119
+
----
120
+
<1> Custom admin groups are only available in this mode.
121
+
<2> Entering an empty list `[]` value for this field disables admin groups.
122
+
<3> Overrides the default groups (`system:cluster-admins`, `cluster-admin`, `dedicated-admin`)
* xref:../logging/log_storage/cluster-logging-loki.adoc#logging-creating-new-group-cluster-admin-user-role_cluster-logging-loki[Creating a new group for the cluster-admin user role]
0 commit comments