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
* Start rough draft
* Rough draft
* Update docs/manage/security/service-accounts.md
Co-authored-by: Kim (Sumo Logic) <[email protected]>
* Updates from review by Kevin Keech
* Update audit logging section
* Upates from Slack comments
* Add CID
* Change release note date to April 15 2025
* Change release note date to April 25 2025
* Add API doc
* Change release note date to May 1 2025
---------
Co-authored-by: Kim (Sumo Logic) <[email protected]>
We are happy to announce that you can now create service accounts in Sumo Logic. Service accounts are a special type of account designed for automating processes that use Sumo Logic APIs, such as scripts, integrations, and infrastructure as code. Unlike user accounts, service accounts are not associated with an individual and do not allow for interactive logins.
The Service Accounts API allows you to manage service accounts. [Service accounts](/docs/manage/security/service-accounts/) are a special type of account designed for automating processes that use Sumo Logic APIs, such as scripts, integrations, and infrastructure as code. Unlike user accounts, service accounts are not associated with an individual and do not allow for interactive logins.
Only administrators can create service accounts. If you are unsure whether you are an administrator, you can view your role in **Preferences** (see [Onboarding Checklists](https://help.sumologic.com/docs/get-started/onboarding-checklists/)).
Copy file name to clipboardExpand all lines: docs/manage/security/access-keys.md
+36-8Lines changed: 36 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ In Sumo Logic, you'll need an access key to:
10
10
11
11
***Register new Collectors**. When you install a Collector, in addition to having a role that grants you the **Manage Collectors** capability, you must supply an access key. You can use a different access key for each Collector, or use the same access key for multiple Collectors. The only time a Collector uses the access key is at installation, so if a key is deleted after a Collector has been set up, the Collector isn't affected.
12
12
***Use Sumo Logic APIs**. You must supply an access key to use the Sumo Logic APIs. See [API Authentication](/docs/api/getting-started#authentication) for details.
13
+
***Run scripts or automation**. Create access keys to provide authentication for scripts or automation.
13
14
14
15
## Prerequisites
15
16
@@ -19,10 +20,16 @@ In Sumo Logic, you'll need an access key to:
19
20
20
21
## Create an access key
21
22
22
-
### From the Personal Access Keys page
23
+
### From the Personal Access Keys tab
24
+
25
+
A *personal access key* is a key that you can create to manage access for personal use.
26
+
27
+
:::tip
28
+
If you are an administrator who needs to create an access key for system use (such as for API scripts, third party integrations, or infrastructure as code), we recommend you create the access key on a [service account](#from-a-service-account).
29
+
:::
23
30
24
31
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select your username and then **Preferences > Personal Access Keys**.<br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select your username, and then under **Preferences** select **Personal Access Keys**. You can also click the **Go To...** menu at the top of the screen and select **Personal Access Keys**.
25
-
1. On the **Personal Access Keys** tab, click **+ Add Access Key**.<br/><img src={useBaseUrl('/img/security/access-key-preferences-page.png')} alt="Personal Access Keys page" style={{border: '1px solid gray'}} width="800"/><br/>The **Add New Access Key** window appears.<br/><img src={useBaseUrl('/img/security/create-access-key.png')} alt="Add New Access Key screen" style={{border: '1px solid gray'}} width="500"/>
32
+
1. On the **Personal Access Keys** tab, click **+ Add Access Key**.<br/><img src={useBaseUrl('/img/security/access-key-preferences-page.png')} alt="Personal Access Keys tab" style={{border: '1px solid gray'}} width="800"/><br/>The **Add New Access Key** window appears.<br/><img src={useBaseUrl('/img/security/create-access-key.png')} alt="Add New Access Key screen" style={{border: '1px solid gray'}} width="500"/>
26
33
1.**Name**. Enter a name for your access key.
27
34
1.**Allowed CORS Domains (optional)**. Create an allowlist of domains from which the access key can be used to access Sumo Logic APIs. For more information, see [CORS support](#cors-support).
28
35
:::note
@@ -41,15 +48,26 @@ In Sumo Logic, you'll need an access key to:
41
48
After you click **Done**, you will not be able to recover this Access ID and Access Key.
42
49
:::
43
50
44
-
All personal access keys created in the organization are displayed in the **Access Keys** page, described next.
51
+
All personal access keys created in the organization are displayed in the **Access Keys** tab, described next.
52
+
53
+
### From the Access Keys tab
45
54
46
-
### From the Access Keys page
55
+
The **Access Keys** tab shows all access keys in the system. It provides a central place for administrators to manage access keys.
47
56
48
-
Administrators can create access keys under **Access Keys** as an alternative to doing it [from the Personal Access Keys page](#from-the-personal-access-keys-page).
57
+
Administrators can create access keys under **Access Keys** as an alternative to doing it [from the Personal Access Keys tab](#from-the-personal-access-keys-tab) or [from a service account](#from-a-service-account).
49
58
50
59
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Security > Access Keys**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Administration**, and then under **Account Security Settings** select **Access Keys**. You can also click the **Go To...** menu at the top of the screen and select **Access Keys**.
51
-
1. At the top right of the table, click **+ Add Access Key**. <br/><img src={useBaseUrl('/img/security/access-key-security-page.png')} alt="Sumo Logic interface showing a list of access keys with options to add a new access key, search access keys, and statuses of existing keys." width="700"/>
52
-
1. Follow the steps in the [previous section](#from-the-personal-access-keys-page), starting with step 3.
60
+
1. At the top right of the table, click **+ Add Access Key**. <br/><img src={useBaseUrl('/img/security/access-key-security-page.png')} alt="Sumo Logic interface showing a list of access keys with options to add a new access key, search access keys, and statuses of existing keys." style={{border: '1px solid gray'}} width="700"/>
61
+
1. Follow the steps in [From the Personal Access Keys tab](#from-the-personal-access-keys-tab) section above, starting with step 3.
62
+
63
+
### From a Service Account
64
+
65
+
Administrators can create access keys on a service account for use in scripts or automation. For more information, see [Service Accounts](/docs/manage/security/service-accounts).
66
+
67
+
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Security > Service Accounts**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Administration**, and then under **Account Security Settings** select **Service Accounts**. You can also click the **Go To...** menu at the top of the screen and select **Service Accounts**.
68
+
1. Select a service account.
69
+
1. Click **Add Access Key**.<br/><img src={useBaseUrl('/img/security/service-account-details.png')} alt="Add Access Key button on service account details pane" style={{border: '1px solid gray'}} width="300"/>
70
+
1. Follow the steps in [From the Personal Access Keys tab](#from-the-personal-access-keys-tab) section above, starting with step 3.
53
71
54
72
#### CORS support
55
73
@@ -89,7 +107,7 @@ an Access-Control-Allow-Origin header.
89
107
If you have the [**Manage Access Keys** role capability](/docs/manage/users-roles/roles/role-capabilities#security), you can edit, deactivate, and delete any access keys created by other users in your organization.
90
108
91
109
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Security > Access Keys**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Administration**, and then under **Account Security Settings** select **Access Keys**. You can also click the **Go To...** menu at the top of the screen and select **Access Keys**.
92
-
1. Hover your mouse over an access key and click the three-dot kebab icon. This reveals the same modification options that appear on the **Personal Access Key**page, [as described above](#edit-deactivate-or-delete-access-keys).
110
+
1. Hover your mouse over an access key and click the three-dot kebab icon. This reveals the same modification options that appear on the **Personal Access Key**tab, [as described above](#edit-deactivate-or-delete-access-keys).
93
111
94
112
### Access Keys deactivation policy
95
113
@@ -103,3 +121,13 @@ To configure the Access Keys deactivation policy:
103
121
:::note
104
122
This section is visible to Administrators only.
105
123
:::
124
+
125
+
## Audit logging for access key activity
126
+
127
+
Access key events are recorded in the Audit Event Index. To search for for access key events, run this query:
description: Service accounts allow you to create access keys that can be used in scripts or automation.
5
+
---
6
+
7
+
import useBaseUrl from '@docusaurus/useBaseUrl';
8
+
9
+
A service account allows you to create [access keys](/docs/manage/security/access-keys/) for processes that run Sumo Logic APIs. You can use a service account to create multiple access keys. Because access keys in a service account are not tied to an individual user, they can continue to be used even if the creator’s user account is deactivated or deleted. Service accounts are an ideal way to ensure continuity of operation for critical services.
10
+
11
+
You can use service accounts to provide authentication for operations that use Sumo Logic APIs, such as:
12
+
* API scripts
13
+
* Third party integrations
14
+
* Infrastructure as code (for example, Terraform)
15
+
16
+
Benefits of using service accounts include:
17
+
* The **Service Accounts** tab, a dedicated page to manage service keys and to reduce their being confused with [personal access keys](/docs/manage/security/access-keys/#from-the-personal-access-keys-tab).
18
+
* Access keys on service accounts can be [scoped](#add-an-access-key-to-a-service-account) with reduced capabilities to reduce impact.
19
+
* There is [audit trail](#audit-logging-for-service-account-activity) for changes to service keys.
20
+
21
+
:::tip
22
+
You can use the API to create and manage service accounts. See [Service Accounts API](/docs/api/service-accounts/).
23
+
:::
24
+
25
+
## Prerequisites
26
+
27
+
Only administrators can create service accounts. If you are unsure whether you are an administrator, you can view your role in **Preferences** (see [Onboarding Checklists](/docs/get-started/onboarding-checklists/)).
28
+
29
+
## Create a service account
30
+
31
+
To configure a service account, you must first create the account and then add access keys to it. You can add multiple access keys to each service account.
32
+
33
+
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Security > Service Accounts**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Administration**, and then under **Account Security Settings** select **Service Accounts**. You can also click the **Go To...** menu at the top of the screen and select **Service Accounts**.
34
+
1. On the **Service Accounts** tab, click **+ Add Service Account**.<br/><img src={useBaseUrl('/img/security/service-accounts-page.png')} alt="Service Accounts tab" style={{border: '1px solid gray'}} width="700"/>
35
+
<br/>The **Add Service Account** window appears.<br/><img src={useBaseUrl('/img/security/add-service-account.png')} alt="Add Service Account window" style={{border: '1px solid gray'}} width="300"/>
36
+
1.**Name**. Enter a name for your service account. Make it descriptive enough so that others will be able to tell what its purpose is.
37
+
1.**Email**. Enter an email to associate with the service account. It should be an email monitored by an organization rather than an email for an individual, so that it is not dependent on use by a single person.
38
+
1.**Roles**. Select the roles to assign to the service account. A service account must have the [role capabilities](/docs/manage/users-roles/roles/role-capabilities) needed to execute the tasks its access keys are needed for.
39
+
:::tip
40
+
You can further limit permissions in the access keys using scope. The scoping of keys allows you to further restrict an access key to a subset of the service account’s assigned role capabilities.
41
+
:::
42
+
1. Click **Save**.
43
+
1. Proceed to the next section to add access keys to the service account.
44
+
45
+
### Add an access key to a service account
46
+
47
+
After you have created a service account, add access keys to the service account. The access keys are tied to the service account. When you create an access key for a service account, ensure that the scope of the key is restricted to only the rights needed for the key.
48
+
49
+
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Security > Service Accounts**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Administration**, and then under **Account Security Settings** select **Service Accounts**. You can also click the **Go To...** menu at the top of the screen and select **Service Accounts**.
50
+
1. Select a service account.
51
+
1. Click **Add Access Key**.<br/><img src={useBaseUrl('/img/security/service-account-details.png')} alt="Add Access Key button on service account details pane" style={{border: '1px solid gray'}} width="300"/>
52
+
1. The **Add New Access Key** window appears. Add the access key information, including scopes. Follow the steps to add an access key as described in [Create an access key](/docs/manage/security/access-keys/#create-an-access-key). <br/><img src={useBaseUrl('/img/security/create-access-key.png')} alt="Add New Access Key screen" style={{border: '1px solid gray'}} width="500"/>
53
+
1. You can add multiple access keys to the service account.
54
+
55
+
:::note
56
+
Any access keys you add on a service account appear on the [**Access Keys** tab](/docs/manage/security/access-keys/#from-the-access-keys-tab).
57
+
:::
58
+
59
+
## Change a service account
60
+
61
+
1.[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Administration > Security > Service Accounts**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu select **Administration**, and then under **Account Security Settings** select **Service Accounts**. You can also click the **Go To...** menu at the top of the screen and select **Service Accounts**.
62
+
1. Hover your mouse over a service account and click the three-dot kebab icon to reveal the modification options.<br/><img src={useBaseUrl('/img/security/modify-options-for-service-accounts.png')} alt="Edit a service account" style={{border: '1px solid gray'}} width="700"/>
63
+
64
+
:::warning
65
+
When a service account is deactivated or deleted, the access keys on the service account are also deactivated or deleted. For more information about deactivation, see [Access Keys deactivation policy](/docs/manage/security/access-keys/#access-keys-deactivation-policy).
66
+
:::
67
+
68
+
## Change an access key on a service account
69
+
70
+
To modify only the access keys on a service account (rather than the service account itself), open the service account, hover over an access key, and click the three-dot kebab icon to reveal modification options.
71
+
72
+
<img src={useBaseUrl('/img/security/edit-access-keys-on-service-account.png')} alt="Edit access keys on a service account" style={{border: '1px solid gray'}} width="300"/>
73
+
74
+
## Audit logging for service account activity
75
+
76
+
Service account events are recorded in the Audit Event Index as user events. To search for for service account events, run this query:
0 commit comments