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
{{es}} comes with built-in roles that include default privileges.
30
36
31
37
`editor`
32
-
: The built-in `editor` role grants the following privileges, supporting full read-write access to {{fleet}} and Integrations:
38
+
: The built-in `editor` role grants these privileges, supporting full read-write access to {{fleet}} and Integrations:
33
39
* {{Fleet}}: `all`
34
40
* Integrations: `all`
35
41
36
42
`viewer`
37
-
: The built-in `viewer` role grants the following privileges, supporting read-only access to {{fleet}} and Integrations:
43
+
: The built-in `viewer` role grants these privileges, supporting read-only access to {{fleet}} and Integrations:
38
44
39
45
* {{Fleet}}:: `read`
40
46
* Integrations:: `read`
41
47
42
48
You can also create a new role that can be assigned to a user, in order to grant more specific levels of access to {{fleet}} and Integrations.
43
49
44
50
45
-
## Create a role for {{fleet}} [fleet-roles-and-privileges-create]
51
+
## Create a new role for {{fleet}} [fleet-roles-and-privileges-create]
46
52
47
53
To create a new role with access to {{fleet}} and Integrations:
48
54
@@ -52,7 +58,8 @@ To create a new role with access to {{fleet}} and Integrations:
52
58
4. Specify a name for the role.
53
59
5. Leave the {{es}} settings at their defaults, or refer to [Security privileges](elasticsearch://reference/elasticsearch/security-privileges.md) for descriptions of the available settings.
54
60
6. In the {{kib}} section, select **Assign to space**.
55
-
7. In the **Spaces** menu, select **All Spaces**. Since many Integrations assets are shared across spaces, the users need the {{kib}} privileges in all spaces.
61
+
7. In the **Spaces** menu, select **All Spaces**.
62
+
Because many Integrations assets are shared across spaces, users need the {{kib}} privileges in all spaces.
56
63
8. Expand the **Management** section.
57
64
9. Set **Fleet** privileges to **All**.
58
65
10. Choose the access level that you'd like the role to have with respect to {{fleet}} and integrations:
@@ -61,10 +68,114 @@ To create a new role with access to {{fleet}} and Integrations:
61
68
:alt: Kibana privileges flyout showing Fleet and Integrations access set to All
62
69
:screenshot:
63
70
:::
64
-
2.Similarly, to create a read-only user for {{fleet}} and Integrations, set both the **Fleet** and **Integrations** privileges to `Read`.
71
+
2.To create a read-only user for {{fleet}} and Integrations, set both the **Fleet** and **Integrations** privileges to `Read`.
:alt: Kibana privileges flyout showing Fleet and Integrations access set to All
67
74
:screenshot:
68
75
:::
76
+
3. If you'd like to define more specialized access to {{fleet}} based on individual components, expand the **Fleet** menu and enable **Customize sub-feature privileges**.
Any setting for individual {{fleet}} components that you specify here takes precedence over the general `All`, `Read`, or `None` privilege set for {{fleet}}.
83
+
84
+
Based on your selections, access to features in the {{fleet}} UI are enabled or disabled for the role.
85
+
Those details are covered in the next section: [Customize access to {{fleet}} features](#fleet-roles-and-privileges-sub-features).
86
+
87
+
After you've created a new role, you can assign it to any {{es}} user.
88
+
You can edit the role at any time by returning to the **Roles** page in {{kib}}.
89
+
90
+
## Customize sub-feature privileges for {{fleet}}[fleet-roles-and-privileges-sub-features]
91
+
92
+
```{applies_to}
93
+
stack: ga 9.1
94
+
```
95
+
96
+
Beginning with {{stack}} version 9.1, you have more granular control when [creating a new role](#fleet-roles-and-privileges-create) or editing it. This is useful when people in your organization access {{fleet}} for different purposes, and you need to fine-tune the components that they can view and the actions that they can perform.
97
+
98
+
The {{fleet}} UI varies depending on the privileges granted to the role.
99
+
100
+
### Example 1: Read access for {{agents}}[fleet-roles-and-privileges-sub-features-example1]
101
+
102
+
Set `Read` access for {{agents}} only:
103
+
104
+
* Agents: `Read`
105
+
* Agent policies: `None`
106
+
* Settings: `None`
107
+
108
+
With these privileges, the {{fleet}} UI shows only the **Agents** and **Data streams** tabs.
109
+
The **Agent policies**, **Enrollment tokens**, **Uninstall tokens**, and **Settings** tabs are unavailable.
110
+
111
+
The set of actions available for an agent are limited to viewing the agent and requesting a diagnostics bundle.
:alt: Fleet UI showing only the Agents and Data streams tabs
115
+
:screenshot:
116
+
:::
117
+
118
+
Change the **Agents** privilege to `All` to enable the role to perform the [full set of available actions](/reference/fleet/manage-agents.md) on {{agents}}.
119
+
120
+
### Example 2: Read access for all {{fleet}} features[fleet-roles-and-privileges-sub-features-example2]
121
+
122
+
Set `Read` access for {{agents}}, agent policies, and {{fleet}} settings:
123
+
124
+
* Agents: `Read`
125
+
* Agent policies: `Read`
126
+
* Settings: `Read`
127
+
128
+
With these privileges, the {{fleet}} UI shows the **Agents**, **Agent policies**, **Data streams**, and **Settings** tabs.
129
+
The **Enrollment tokens** and **Uninstall tokens** tabs are unavailable.
130
+
131
+
The set of actions available for an agent are limited to viewing the agent and requesting a diagnostics bundle.
132
+
133
+
You can view agent policies, but you cannot create a new policy.
To enable actions such as creating a new {{fleet-server}}, set the **Fleet Settings** privilege to `All`.
166
+
167
+
168
+
## {{fleet}} privileges and available actions [fleet-roles-and-privileges-sub-features-table]
169
+
170
+
```{applies_to}
171
+
stack: ga 9.1
172
+
```
173
+
174
+
175
+
This table shows the set of available actions for the `read` or `all` privilege for each {{fleet}} feature.
69
176
70
-
Once you've created a new role you can assign it to any {{es}} user. You can edit the role at any time by returning to the **Roles** page in {{kib}}.
177
+
|Component |`read` privilege |`all` privilege |
178
+
| --- | --- | --- |
179
+
| Agents | View-only access to {{agents}}, including:<br><br>*[View a list of all agents and their status](/reference/fleet/monitor-elastic-agent.md#view-agent-status)<br>*[Request agent diagnostic packages](/reference/fleet/monitor-elastic-agent.md#collect-agent-diagnostics)|Full access to manage {{agents}}, including:<br><br>*[Perform upgrades](/reference/fleet/upgrade-elastic-agent.md)<br>*[Configure monitoring](/reference/fleet/monitor-elastic-agent.md)<br>*[Migrate agents to a new cluster](/reference/fleet/migrate-elastic-agent.md)<br>*[Unenroll agents from {{fleet}}](/reference/fleet/unenroll-elastic-agent.md)<br>*[Set the inactivity timeout](/reference/fleet/set-inactivity-timeout.md)<br>*[Create and revoke enrollment tokens](/reference/fleet/fleet-enrollment-tokens.md)|
180
+
| Agent policies | View-only access, including:<br><br>* Agent policies and settings<br>* The integrations associated with a policy | Full access to manage agent policies, including:<br><br>*[Create a policy](/reference/fleet/agent-policy.md#create-a-policy)<br>*[Add an integration to a policy](/reference/fleet/agent-policy.md#add-integration)<br>*[Apply a policy](/reference/fleet/agent-policy.md#apply-a-policy)<br>*[Edit or delete an integration](/reference/fleet/agent-policy.md#policy-edit-or-delete)<br>*[Copy a policy](/reference/fleet/agent-policy.md#copy-policy)<br>*[Edit or delete a policy](/reference/fleet/agent-policy.md#policy-main-settings)<br>*[Change the output of a policy](/reference/fleet/agent-policy.md#change-policy-output)|
181
+
| Fleet settings | View-only access, including:<br><br>* Configured {{fleet}} hosts<br>* {{fleet}} output settings<br>* The location to download agent binaries | Full access to manage {{fleet}} settings, including:<br><br>*[Editing hosts](/reference/fleet/fleet-settings.md#fleet-server-hosts-setting)<br>*[Adding or editing outputs](/reference/fleet/fleet-settings.md#output-settings)<br>*[Update the location for downloading agent binaries](/reference/fleet/fleet-settings.md#fleet-agent-binary-download-settings)|
0 commit comments