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: CONFIGURATION.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@ The agent also uses an SSH key (`~/.ssh/id_ed25519`) for git push. Setup generat
37
37
38
38
| Variable | Description | How to get it |
39
39
|----------|-------------|---------------|
40
-
|`SLACK_BOT_TOKEN`| Slack bot OAuth token (required for direct Socket Mode, optional in broker mode) | Create a Slack app at [api.slack.com/apps](https://api.slack.com/apps). Under **OAuth & Permissions**, add bot scopes: `app_mentions:read`, `chat:write`, `channels:history`, `channels:read`, `reactions:write`, `im:history`, `im:read`, `im:write`. Install the app to your workspace and copy the **Bot User OAuth Token**. |
41
-
|`SLACK_APP_TOKEN`| Slack app-level token (required for Socket Mode, optional in broker mode) | In your Slack app settings → **Basic Information** → **App-Level Tokens**, create a token with `connections:write` scope. |
40
+
|`SLACK_BOT_TOKEN`| Slack bot OAuth token (required for direct Socket Mode; ignored by broker pull mode) | Create a Slack app at [api.slack.com/apps](https://api.slack.com/apps). Under **OAuth & Permissions**, add bot scopes: `app_mentions:read`, `chat:write`, `channels:history`, `channels:read`, `reactions:write`, `im:history`, `im:read`, `im:write`. Install the app to your workspace and copy the **Bot User OAuth Token**. |
41
+
|`SLACK_APP_TOKEN`| Slack app-level token (required for Socket Mode; not used by broker pull mode) | In your Slack app settings → **Basic Information** → **App-Level Tokens**, create a token with `connections:write` scope. |
42
42
|`SLACK_ALLOWED_USERS`| Comma-separated Slack user IDs |**Optional** — if not set, all workspace members can interact. Find your Slack user ID: click your profile → "..." → "Copy member ID". Example: `U01ABCDEF,U02GHIJKL`|
43
43
44
44
If you're using Slack broker mode (`SLACK_BROKER_*` vars), the runtime uses broker pull delivery and does not require Socket Mode callbacks.
@@ -104,9 +104,9 @@ Set by `sudo baudbot broker register` when using brokered Slack OAuth flow.
104
104
|`SLACK_BROKER_SERVER_SIGNING_PUBLIC_KEY`| Server Ed25519 public signing key (base64) |
105
105
|`SLACK_BROKER_PUBLIC_KEY`| Broker X25519 public key (base64) |
106
106
|`SLACK_BROKER_SIGNING_PUBLIC_KEY`| Broker Ed25519 public signing key (base64) |
107
-
|`SLACK_BROKER_ACCESS_TOKEN`|Optional broker-issued bearer token for broker API auth (used when broker enforces agent tokens) |
108
-
|`SLACK_BROKER_ACCESS_TOKEN_EXPIRES_AT`|Optional ISO timestamp for broker token expiry |
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,8 @@ sudo baudbot broker register \
99
99
```
100
100
101
101
Broker pull mode uses long-polling by default (`SLACK_BROKER_WAIT_SECONDS=20`, max `25`; set `0` for immediate short-poll behavior).
102
-
When broker agent-token auth is enabled server-side, `baudbot broker register` stores broker token fields in env and broker-mode outbound requests include `Authorization: Bearer ...` automatically.
102
+
`baudbot broker register` stores broker token fields in env and broker-mode requests include `Authorization: Bearer ...` automatically.
103
+
Broker pull mode no longer uses direct Slack Web API fallback and does not require storing `SLACK_BOT_TOKEN`.
**Fallback — direct Slack Web API** (only if bridge is down and `SLACK_BOT_TOKEN` is available; won't work in broker mode since the bot token lives on the broker):
259
-
```bash
260
-
source~/.config/.env && curl -s -X POST https://slack.com/api/chat.postMessage \
Broker pull mode does not support direct Slack Web API fallback. If the local bridge is down, restart the runtime/bridge first, then retry via local API.
0 commit comments