Self-Hosted
On self-hosted installations you bring your own Slack app. You create the app in your Slack workspace, and provide its credentials to ScaleOps via Helm values.
Slack events reach the dashboard over one of two transports. Both support the same bot features, including link previews:
- Events API Webhook — Slack posts events to your dashboard ingress. Use it when the dashboard is reachable from the internet.
- Socket Mode — the dashboard opens an outbound WebSocket to Slack. Use it when the dashboard has no public ingress.
Events API Webhook
1. Create the Slack App
Go to Slack Apps , choose From a manifest, select your workspace, and paste the following manifest:
display_information:
name: ScaleOps Agent
description: ScaleOps AI agent for Kubernetes
features:
bot_user:
display_name: ScaleOps Agent
always_online: true
slash_commands:
- command: /scaleops
description: ScaleOps assistant commands
usage_hint: "auth | help"
url: https://<DASHBOARD_HOST>/api/v1/slack/commands
unfurl_domains:
- <DASHBOARD_HOST>
rich_previews:
is_active: true
entity_types:
- slack#/entities/item
- slack#/entities/content_item
oauth_config:
scopes:
bot:
- commands
- app_mentions:read
- channels:history
- chat:write
- groups:history
- im:history
- im:read
- im:write
- mpim:history
- reactions:write
- users:read
- users:read.email
- links:read
- links:write
settings:
event_subscriptions:
request_url: https://<DASHBOARD_HOST>/api/v1/slack/events
bot_events:
- app_mention
- link_shared
- message.im
- entity_details_requested
socket_mode_enabled: false
Slack verifies the request URL with a challenge request when the app is created. ScaleOps answers the challenge automatically once slackBot is configured, so if verification fails, complete the Helm configuration below first and retry the verification from the app settings.
2. Collect Credentials
-
Open Install App, click Install to Workspace, and approve. Copy the Bot User OAuth Token (
xoxb-...).
-
Open Basic Information → App Credentials and copy the Signing Secret. ScaleOps uses it to verify that incoming requests are genuinely from Slack.
3. Configure Helm
Add the following to your ScaleOps Helm values and upgrade the release:
slackBot:
enabled: true
botToken: "xoxb-..."
signingSecret: "..."Socket Mode
With Socket Mode the dashboard opens an outbound WebSocket connection to Slack, so Slack never calls your cluster and no publicly reachable ingress is required. Events arrive over the WebSocket instead of the webhook, and the bot replies through the Slack API as usual.
1. Create the Socket Mode Slack App
Go to Slack Apps , choose From a manifest, select your workspace, and paste the following manifest. Replace the placeholder with the host your users open the ScaleOps dashboard from, without a protocol or path:
display_information:
name: ScaleOps Agent
description: ScaleOps AI agent for Kubernetes
features:
bot_user:
display_name: ScaleOps Agent
always_online: true
slash_commands:
- command: /scaleops
description: ScaleOps assistant commands
usage_hint: "auth | help"
unfurl_domains:
- <DASHBOARD_HOST>
rich_previews:
is_active: true
entity_types:
- slack#/entities/item
- slack#/entities/content_item
oauth_config:
scopes:
bot:
- commands
- app_mentions:read
- channels:history
- chat:write
- groups:history
- im:history
- im:read
- im:write
- mpim:history
- reactions:write
- users:read
- users:read.email
- links:read
- links:write
settings:
event_subscriptions:
bot_events:
- app_mention
- link_shared
- message.im
- entity_details_requested
socket_mode_enabled: true
The manifest has no request URL and no slash command URL: with Socket Mode enabled Slack delivers every event and slash command over the WebSocket, so there is nothing for Slack to verify.
2. Generate Tokens
-
In the app settings, open Basic Information → App-Level Tokens, click Generate Token and Scopes, add the
connections:writescope, and copy the generated token (xapp-...).
-
Open Install App, click Install to Workspace, and approve. Copy the Bot User OAuth Token (
xoxb-...).
3. Configure Socket Mode Helm Values
Add the following to your ScaleOps Helm values and upgrade the release:
slackBot:
enabled: true
botToken: "xoxb-..."
appToken: "xapp-..."
dashboardHost: "https://scaleops.example.com"The app-level token replaces the signing secret: it is what tells ScaleOps to open the WebSocket, and Socket Mode has no inbound requests to verify.
Set slackBot.dashboardHost to the URL your users open the dashboard from. Socket Mode carries no inbound request to derive it from, and it defaults to dashboard.ingress.host, which a cluster without public ingress usually does not set. Without it, sign-in links are relative and link previews are skipped.
The dashboard connects on startup, so credential changes take effect only after the dashboard pod restarts.
Verify the Connection
After upgrading the Helm release, open Settings → Agents Integrations in the ScaleOps dashboard and check the ScaleOps Agent in Slack section. It should show Slack Connected.
Link Previews
Available in v1.34.4+When someone pastes a ScaleOps dashboard link into Slack, the bot replaces it with a live preview card of that workload, node, or cluster, which the reader can expand for full details without leaving Slack. Previews are fetched with the RBAC permissions of the Slack user who pasted the link, so a user who cannot see a cluster in the dashboard gets no card for it.
Both transports support previews, and both require:
- A manifest with the preview entries —
unfurl_domains,rich_previews, thelinks:readandlinks:writescopes, and thelink_sharedandentity_details_requestedevents. Slack apps created from an older manifest have none of these, so replace the manifest and reinstall the app as described in Upgrade. - A
slackBot.dashboardHostthat matchesunfurl_domains— ScaleOps only resolves pasted URLs that belong to its own dashboard host. - A linked Slack user — links pasted by users who have not linked their ScaleOps account are ignored, and no data is fetched.
Slack reports only links that are fully qualified with http:// or https://, and ScaleOps previews at most five links per message.
Upgrade
1. When upgrade is required
ScaleOps will notify you when a Slack App upgrade is required.
2. Update the Slack App
- Go to Slack Apps and select your existing Slack App.
- From the left menu, open App Manifest and replace the current manifest with the updated one for your transport: Events API Webhook or Socket Mode.
- After saving, Slack will prompt you to reinstall the app. Click on
reinstall your appand complete the installation in your workspace.
Helm Values Reference
See the full list of slackBot values in the Helm configuration reference.