Skip to content

Commit 6316742

Browse files
authored
Doc updates (Netflix#617)
1 parent bd7a2df commit 6316742

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

docs/configuration/app.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ Dispatch [calculates](https://github.com/Netflix/dispatch/blob/develop/src/dispa
157157

158158
#### `INCIDENT_STORAGE_FOLDER_ID`
159159

160-
> Top level folder where all incident data is stored. Note: viewing actual incident data is still on a per-sub folder basis.
160+
> Top level folder where all incident data is stored. Note: viewing actual incident data is still on a per-sub folder basis. For Google Drive,
161+
> you can get the folder ID from viewing a folder in the Google Drive UI, and copying the last part of the URL (`/drive/u/0/folders/<this value>`)
161162
162163
#### `INCIDENT_STORAGE_OPEN_ON_CLOSE` \[default: 'true'\]
163164

docs/configuration/plugins/configuring-g-suite.md

+30-32
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
description: Configuration page for all G Suite plugins.
33
---
44

5-
# Configuring G Suite
5+
# Configuring G Suite Integration
66

77
{% hint style="info" %}
8-
Dispatch ships with several G Suite plugins \(Docs, Groups, Drive, etc.,\). This page documents the available configuration for these plugins and the permissions required to enable them. These plugins are required for core functionality.
8+
Dispatch ships with several G Suite plugins \(Docs, Groups, Drive, etc.,\). This page documents the available configuration
9+
for these plugins and the permissions required to enable them. These plugins are required for core functionality.
910
{% endhint %}
1011

12+
## Dispatch Configuration Variables
13+
1114
### `GOOGLE_DOMAIN` \[Required\]
1215

1316
> Base domain for which this Google Cloud Platform \(GCP\) service account resides.
@@ -18,49 +21,55 @@ Dispatch ships with several G Suite plugins \(Docs, Groups, Drive, etc.,\). This
1821
1922
### `GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL` \[Required\]
2023

21-
> Client email for the Google Cloud Platform \(GCP\) service account.
24+
> The `client_email` value from your Google Cloud Platform \(GCP\) service account configuration file.
2225
2326
### `GOOGLE_SERVICE_ACCOUNT_CLIENT_ID` \[Required\]
2427

25-
> Client ID for the Google Cloud Platform \(GCP\) service account.
28+
> The `client_id` value from your Google Cloud Platform \(GCP\) service account configuration file.
2629
2730
### `GOOGLE_SERVICE_ACCOUNT_DELEGATED_ACCOUNT` \[Required\]
2831

2932
> Account to delegate to from the Google Cloud Platform \(GCP\) service account.
33+
> Outgoing emails and other artifacts will appear to be from this account.
3034
3135
### `GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY` \[Required. Secret: True\]
3236

33-
> Private key \(PEM format\) for the Google Cloud Platform \(GCP\) service account.
37+
> The `private_key` value from your Google Cloud Platform \(GCP\) service account configuration file.
3438
3539
### `GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY_ID` \[Required\]
3640

37-
> Private key ID for the Google Cloud Platform \(GCP\) service account.
41+
> The `private_key_id` value from your Google Cloud Platform \(GCP\) service account configuration file.
3842
3943
### `GOOGLE_SERVICE_ACCOUNT_PROJECT_ID` \[Required\]
4044

41-
> Project ID for the Google Cloud Platform \(GCP\) service account.
45+
> The `project_id` value from your Google Cloud Platform \(GCP\) service account configuration file.
4246
4347
### `GOOGLE_USER_OVERRIDE` \[Optional. Default: None\]
4448

4549
> Used for development to funnel all emails to a specific user.
4650
47-
## Enable Required APIs
51+
## G Suite Setup
52+
53+
To set up G Suite integration, you'll need to create some resources in Google Cloud Platform, and then link them to your
54+
G Suite organization.
4855

49-
This is meant to provide guidance on enabling Dispatch's G Suite plugins, your organization may differ slightly.
56+
## Enable Required APIs in Google Cloud Platform
5057

51-
Navigate to the Google Cloud Platform \(GCP\) [console](https://console.cloud.google.com/).
58+
Navigate to the Google Cloud Platform \(GCP\) [console](https://console.cloud.google.com/). You will want to
59+
create a new GCP Project for Dispatch's integration.
5260

53-
Create a new service account \(APIs & Services &gt; Credentials &gt; Create Credentials &gt; Service Account\).
61+
Create a new service account within the GCP project \(APIs & Services &gt; Credentials &gt; Create Credentials &gt; Service Account\).
62+
You do not need to assign any Google Cloud permissions to this service account when prompted.
5463

55-
Once created, download the JSON based key and use it's values to populate the above configuration values:
64+
Once created, download the JSON based key. You'll use these values to configure Dispatch:
5665

5766
* `project_id` -&gt; `GOOGLE_SERVICE_ACCOUNT_PROJECT_ID`
58-
* `private_key_id` -&gt; `GOOGLE_SERVICE_PRIVATE_KEY_ID`
59-
* `private_key` -&gt; `GOOGLE_SERVICE_PRIVATE_KEY`
67+
* `private_key_id` -&gt; `GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY_ID`
68+
* `private_key` -&gt; `GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY`
6069
* `client_email` -&gt; `GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL`
6170
* `client_id` -&gt; `GOOGLE_SERVICE_ACCOUNT_CLIENT_ID`
6271

63-
Create a Developer API key \(APIs & Services &gt; Credentials &gt; Create Credentials &gt; API Key\), and set the value of `GOOGLE_DEVELOPER_KEY`.
72+
Then, create a Developer API key \(APIs & Services &gt; Credentials &gt; Create Credentials &gt; API Key\), and set it to the value for `GOOGLE_DEVELOPER_KEY`.
6473

6574
Enable the following APIs \(APIs and Services &gt; Library\):
6675

@@ -70,18 +79,8 @@ Enable the following APIs \(APIs and Services &gt; Library\):
7079
* Gmail API
7180
* Admin SDK \(necessary to create and manage groups\)
7281

73-
{% hint style="info" %}
74-
If you are planning on using Google Drive storage you must enable the folder sharing beta.
75-
76-
[https://support.google.com/a/answer/9890318?hl=en\#:~:text=Help%20CenterCommunity-,Folder%20sharing%20in%20shared%20drives%20\(beta\),folders%20within%20a%20shared%20drive](https://support.google.com/a/answer/9890318?hl=en#:~:text=Help%20CenterCommunity-,Folder%20sharing%20in%20shared%20drives%20%28beta%29,folders%20within%20a%20shared%20drive)
77-
78-
To signup:
79-
[https://docs.google.com/forms/d/e/1FAIpQLSfrILe0\_bPkkI7pxfr-4rHk0qcajrUOHTcmrWPOVLo0SKNF7A/viewform](https://docs.google.com/forms/d/e/1FAIpQLSfrILe0_bPkkI7pxfr-4rHk0qcajrUOHTcmrWPOVLo0SKNF7A/viewform)
80-
{% endhint %}
81-
82-
Finally, map the `client_id` of the created service with the required OAuth2 scopes.
83-
84-
Navigate to admin [home](https://admin.google.com/AdminHome?chromeless=1#OGX:ManageOauthClients%20) \(Security &gt; Advanced Settings &gt; Manage API Client Access\), and add the following scopes:
82+
Finally, create your OAuth application which is how G Suite will authorize the service account and API key \(APIs & Services &gt; OAuth Consent Screen\).
83+
Specify the following scopes:
8584

8685
```text
8786
https://www.googleapis.com/auth/documents
@@ -94,10 +93,9 @@ https://www.googleapis.com/auth/calendar
9493

9594
**Note:** If you will not use Google Meet for your conference then you do not need the `https://www.googleapis.com/auth/calendar` scope.
9695

97-
Then construct this link and click it:
96+
## Connecting Dispatch to G Suite
9897

99-
```text
100-
https://admin.google.com/AdminHome?clientScopeToAdd=https://www.googleapis.com/auth/documents,https://www.googleapis.com/auth/drive,https://mail.google.com/,https://www.googleapis.com/auth/admin.directory.group,https://www.googleapis.com/auth/apps.groups.settings,https://www.googleapis.com/auth/calendar
101-
&clientNameToAdd=<INSERTCLIENTIDHERE>&chromeless=1#OGX:ManageOauthClients
102-
```
98+
Navigate to the G Suite Admin [Domain-wide Delegation](https://admin.google.com/ac/owl/domainwidedelegation) page
99+
\(Security &gt; API Controls &gt; Domain-wide Delegation\) and add a new API client.
103100

101+
Enter the Client ID you used for `GOOGLE_SERVICE_ACCOUNT_CLIENT_ID`, and then paste in a comma-separated list of the OAuth scopes above.

docs/user-guide/administration/knowledge.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To create a new tag navigate to: `Dispatch > Tags > New`
2424

2525
**URI:** The external tag locator (if available).
2626

27-
**Discoverable:** Dispatch has the ability to do some automatic tag discovery. Meaning given a set of predefined tags, it will crawl all incident data available to it and using NLP associate this data to incidents (current incident and retroactively). If for some reason a tag is general enough (e.g. "the") that you do not want to make it disoverable, this flag can disable that functionality on an individual tag basis.
27+
**Discoverable:** Dispatch has the ability to do some automatic tag discovery. Meaning given a set of predefined tags, it will crawl all incident data available to it and using NLP associate this data to incidents (current incident and retroactively). If for some reason a tag is general enough (e.g. "the") that you do not want to make it discoverable, this flag can disable that functionality on an individual tag basis.
2828

2929
## Documents
3030

@@ -34,6 +34,8 @@ To create a new document navigate to: `Dispatch > Documents > New`
3434

3535
Documents are links to external sources \(Web Pages, Google Documents, etc.,\). These documents can be associated with terms, incident types, and incident priorities, allowing these documents to be recommended reading for incident participants.
3636

37+
If you use the Google Drive plugin, Dispatch will copy a Google document associated with an incident type into a folder. Make sure you specify the correct Google Docs ID for the `ID` field.
38+
3739
**Name:** Name of the document.
3840

3941
**Description:** Short description of the document.
@@ -52,7 +54,7 @@ In addition to fields about the document itself, Dispatch allows you to associat
5254

5355
Documents can also be used as templates during incident creation that Dispatch will attempt to fill when copied.
5456

55-
If you are using the google drive plugin, we provide a set of templates to get you started, these should be copied into your google drive and then created as documents in the Dispatch UI.
57+
If you are using the Google Drive plugin, we provide a set of templates to get you started, these should be copied into your Google Drive and then created as documents in the Dispatch UI.
5658

5759
- [Incident Document](https://docs.google.com/document/d/1fv--CrGpWJJ4nyPR0N0hq4JchHJPuqsXN4azE9CGQiE)
5860

0 commit comments

Comments
 (0)