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: documentation/secret_docs.md
+7-31
Original file line number
Diff line number
Diff line change
@@ -8,44 +8,20 @@ A secrets file stores sensitive information. Unlike the repository configuration
8
8
9
9
```json
10
10
{
11
-
"slack_hooks": [
12
-
{
13
-
"url": "https://slack_webhook_url",
14
-
"channel": "default"
15
-
},
16
-
{
17
-
"url": "https://slack_webhook_url",
18
-
"channel": "aa"
19
-
},
20
-
{
21
-
"url": "https://slack_webhook_url",
22
-
"channel": "backend"
23
-
},
24
-
{
25
-
"url": "https://slack_webhook_url",
26
-
"channel": "all-push-events"
27
-
},
28
-
{
29
-
"url": "https://slack_webhook_url",
30
-
"channel": "frontend-bot"
31
-
},
32
-
{
33
-
"url": "https://slack_webhook_url",
34
-
"channel": "aa-git"
35
-
},
36
-
{
37
-
"url": "https://slack_webhook_url",
38
-
"channel": "siren"
39
-
}
40
-
]
11
+
"slack_client_id": "",
12
+
"slack_client_secret": ""
41
13
}
42
14
```
43
15
44
16
| value | description | optional | default |
45
17
|-|-|-|-|
46
-
|`slack_hooks`| list of channel names (`channel`) and their corresponding webhook endpoint (`url`) | No | - |
47
18
|`gh_token`| specify to grant the bot access to private repositories; omit for public repositories | Yes | - |
48
19
|`gh_hook_token`| specify to ensure the bot only receives GitHub notifications from pre-approved repositories | Yes | - |
20
+
|`slack_client_id`| slack client ID, used for [oauth](https://api.slack.com/authentication/oauth-v2) authentication; can be found in your slack app's [management page](https://api.slack.com/apps)| No | - |
21
+
|`slack_client_secret`| slack client secret, used for [oauth](https://api.slack.com/authentication/oauth-v2) authentication; can be found in your slack app's [management page](https://api.slack.com/apps)| No | - |
22
+
|`slack_signing_secret`| specify to verify incoming slack requests; can be found in your slack app's [management page](https://api.slack.com/apps)| Yes | - |
23
+
|`slack_oauth_state`| specify some unique value to maintain state b/w oauth request and callback and prevent CSRF (see [RFC6749](https://tools.ietf.org/html/rfc6749#section-4.1.1)) | Yes | - |
24
+
|`slack_access_token`| slack bot token obtained via [oauth](https://api.slack.com/authentication/oauth-v2), enabling message posting to the workspace; if not provided initially, the first sucessful oauth exchange will update this field both in memory and on disk | Yes | - |
Copy file name to clipboardexpand all lines: lib/config.atd
-6
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,6 @@ type config = {
30
30
?main_branch_name : string nullable; (* the name of the main branch; used to filter out notifications about merges of main branch into other branches *)
31
31
}
32
32
33
-
(* This specifies the Slack webhook to query to post to the channel with the given name *)
34
-
type webhook = {
35
-
url : string; (* webhook URL to post the Slack message *)
36
-
channel : string; (* name of the Slack channel to post the message *)
37
-
}
38
-
39
33
(* This is the structure of the secrets file which stores sensitive information, and
0 commit comments