Skip to content

Commit 11342a4

Browse files
jpipkin1kimsauce
andauthored
DOCS-325 - Service accounts (#5041)
* 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]>
1 parent 2581470 commit 11342a4

12 files changed

+184
-8
lines changed

blog-service/2025-05-01-manage.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Service Accounts (Manage)
3+
image: https://help.sumologic.com/img/sumo-square.png
4+
keywords:
5+
- manage
6+
- access keys
7+
- service accounts
8+
hide_table_of_contents: true
9+
---
10+
11+
import useBaseUrl from '@docusaurus/useBaseUrl';
12+
13+
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.
14+
15+
[Learn more](/docs/manage/security/service-accounts).
16+
17+
<img src={useBaseUrl('/img/security/service-accounts-page.png')} alt="Service Accounts tab" style={{border: '1px solid gray'}} width="800"/>

cid-redirects.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,6 +2361,7 @@
23612361
"/cid/5155": "/docs/manage/field-extractions",
23622362
"/cid/5156": "/docs/send-data/collection/processing-rules",
23632363
"/cid/5162": "/docs/manage/security/access-keys",
2364+
"/cid/51621": "/docs/manage/security/service-accounts",
23642365
"/cid/5163": "/docs/search/search-query-language/search-operators/geo-lookup-map",
23652366
"/cid/5164": "/",
23662367
"/cid/5165": "/docs/manage/data-forwarding/amazon-s3-bucket",

docs/api/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ To connect with other Sumo Logic users, post feedback, or ask a question, visit
210210
<a href="/docs/api/search-job"><img src={useBaseUrl('img/icons/search.png')} alt="Thumbnail icon" width="50"/><h4>Search Job</h4></a>
211211
</div>
212212
</div>
213+
<div className="box smallbox card">
214+
<div className="container">
215+
<a href="/docs/api/service-accounts"><img src={useBaseUrl('img/icons/business/user-permissions.png')} alt="Thumbnail icon" width="50"/><h4>Service Accounts</h4></a>
216+
</div>
217+
</div>
213218
<div className="box smallbox card">
214219
<div className="container">
215220
<a href="/docs/api/service-allowlist"><img src={useBaseUrl('img/icons/security/unlock.png')} alt="Thumbnail icon" width="50"/><h4>Service Allowlist</h4></a>

docs/api/service-accounts.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
id: service-accounts
3+
title: Service Accounts APIs
4+
sidebar_label: Service Accounts
5+
description: Use the API to manage service accounts.
6+
---
7+
8+
import useBaseUrl from '@docusaurus/useBaseUrl';
9+
import ApiIntro from '../reuse/api-intro.md';
10+
import ApiRoles from '../reuse/api-roles.md';
11+
12+
<img src={useBaseUrl('img/icons/business/user-permissions.png')} alt="icon" width="50"/>
13+
14+
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.
15+
16+
## Documentation
17+
18+
<ApiIntro/>
19+
20+
| Deployment | Documentation URL |
21+
|:------------|:--------------------------------------------------------------------|
22+
| AU | https://api.au.sumologic.com/docs/#tag//serviceAccountManagement |
23+
| CA | https://api.ca.sumologic.com/docs/#tag//serviceAccountManagement |
24+
| DE | https://api.de.sumologic.com/docs/#tag//serviceAccountManagement |
25+
| EU | https://api.eu.sumologic.com/docs/#tag//serviceAccountManagement |
26+
| FED | https://api.fed.sumologic.com/docs/#tag//serviceAccountManagement |
27+
| IN | https://api.in.sumologic.com/docs/#tag//serviceAccountManagement |
28+
| JP | https://api.jp.sumologic.com/docs/#tag//serviceAccountManagement |
29+
| KR | https://api.kr.sumologic.com/docs/#tag//serviceAccountManagement |
30+
| US1 | https://api.sumologic.com/docs/#tag//serviceAccountManagement |
31+
| US2 | https://api.us2.sumologic.com/docs/#tag//serviceAccountManagement |
32+
33+
## Required role capabilities
34+
35+
<ApiRoles/>
36+
37+
* User Management (all role capabilities)
38+
39+
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/)).

docs/manage/security/access-keys.md

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ In Sumo Logic, you'll need an access key to:
1010

1111
* **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.
1212
* **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.
1314

1415
## Prerequisites
1516

@@ -19,10 +20,16 @@ In Sumo Logic, you'll need an access key to:
1920

2021
## Create an access key
2122

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+
:::
2330

2431
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"/>
2633
1. **Name**. Enter a name for your access key.
2734
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).
2835
:::note
@@ -41,15 +48,26 @@ In Sumo Logic, you'll need an access key to:
4148
After you click **Done**, you will not be able to recover this Access ID and Access Key.
4249
:::
4350

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
4554

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.
4756

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).
4958

5059
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.
5371

5472
#### CORS support
5573

@@ -89,7 +107,7 @@ an Access-Control-Allow-Origin header.
89107
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.
90108

91109
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).
93111

94112
### Access Keys deactivation policy
95113

@@ -103,3 +121,13 @@ To configure the Access Keys deactivation policy:
103121
:::note
104122
This section is visible to Administrators only.
105123
:::
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:
128+
129+
```
130+
_index=sumologic_audit_events _sourceCategory=accessKeys
131+
```
132+
133+
For more information about audit logging, see [Audit Event Index](/docs/manage/security/audit-indexes/audit-event-index/).
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
id: service-accounts
3+
title: Service Accounts
4+
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:
77+
78+
```
79+
_index=sumologic_audit_events _sourceCategory=users
80+
```
81+
82+
Service account events will return with `subsystem` shown as `serviceAccounts`.
83+
84+
For more information about audit logging, see [Audit Event Index](/docs/manage/security/audit-indexes/audit-event-index/).

sidebars.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,7 @@ module.exports = {
10581058
'manage/security/2-step-verification-admins',
10591059
'manage/security/2-step-verification-users',
10601060
'manage/security/access-keys',
1061+
'manage/security/service-accounts',
10611062
{
10621063
type: 'category',
10631064
label: 'Audit Indexes',
@@ -3097,6 +3098,7 @@ integrations: [
30973098
'api/scan-budget',
30983099
'api/scheduled-views',
30993100
'api/search-job',
3101+
'api/service-accounts',
31003102
'api/service-allowlist',
31013103
'api/service-map',
31023104
'api/slo-management',
63 KB
Loading
123 KB
Loading
113 KB
Loading

0 commit comments

Comments
 (0)