Request approval in Slack
Post an approval-request message to a Slack channel, then pause the workflow at an Argo suspend node until a human resumes it.
Install v1.0.1
Installs the template into your Argo namespace. The URL is pinned to this version.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/slack-approval/1.0.1/template.yaml
Or with the Argo CLI:
argo template create -n argo https://catalog.dagweave.com/api/v1/items/slack-approval/1.0.1/template.yaml
Facts
- Category
- Approval
- Tags
- approval curl
- Entrypoint
approval- Template SHA-256
9b68e11f0f287a7ed1ec740998a9977fdba7a225a3afa6244b93695f2b7c37ff- Source
- slack-approval at catalog commit 67458f7
- API
- item document, latest template.yaml
Images and provenance
Every image is pinned by digest, so a rebuilt tag can never change what this version runs.
| Repository | Tag | Digest |
|---|---|---|
curlimages/curl | 8.23.0 | sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93 |
Parameters
| Name | Description | Default |
|---|---|---|
channel required |
Slack channel ID or name to post the approval request to. Example C0123456789 |
none |
message required |
The approval-request message to post. | none |
token-secret-key |
Key within the Secret that holds the bot token. | token |
token-secret-name |
Name of the Kubernetes Secret in the run namespace holding the Slack bot token. | slack-bot-token |
WorkflowTemplate
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: slack-approval
labels:
dagweave.io/catalog-item: slack-approval
annotations:
# The catalog semver this manifest was authored at. The dagweave app records
# (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
# cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
dagweave.io/catalog-version: "1.0.1"
dagweave.io/catalog-category: "Approval"
spec:
entrypoint: approval
templates:
# Entrypoint: post a Slack message asking for approval, then suspend until a human
# resumes the node. A single reusable template composed of two internal steps.
- name: approval
inputs:
parameters:
# Slack channel ID or name (e.g. "C0123456789" or "#approvals").
- name: channel
# The approval-request message to post.
- name: message
# Name/key of the Kubernetes Secret in the run namespace holding the Slack
# bot token. Defaults let a user leave them blank in the Inspector.
- name: token-secret-name
default: slack-bot-token
- name: token-secret-key
default: token
steps:
- - name: notify
template: notify
arguments:
parameters:
- name: channel
value: "{{inputs.parameters.channel}}"
- name: message
value: "{{inputs.parameters.message}}"
- name: token-secret-name
value: "{{inputs.parameters.token-secret-name}}"
- name: token-secret-key
value: "{{inputs.parameters.token-secret-key}}"
- - name: await
template: await
# Post the approval-request message to Slack (same safe curl pattern as the
# slack-post-message item).
- name: notify
inputs:
parameters:
- name: channel
- name: message
- name: token-secret-name
- name: token-secret-key
container:
# Pinned by digest per the catalog convention: an image rebuild can never
# silently change the behaviour of an already-released item version.
# curlimages/curl:8.23.0
image: curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93
command: [sh, -c]
# Values are passed as env vars (below), never interpolated into the shell,
# so a message containing quotes or shell metacharacters is safe.
args:
- |
set -eu
curl -sSf -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer ${SLACK_TOKEN}" \
--data-urlencode "channel=${SLACK_CHANNEL}" \
--data-urlencode "text=${SLACK_MESSAGE}"
env:
- name: SLACK_CHANNEL
value: "{{inputs.parameters.channel}}"
- name: SLACK_MESSAGE
value: "{{inputs.parameters.message}}"
- name: SLACK_TOKEN
valueFrom:
secretKeyRef:
name: "{{inputs.parameters.token-secret-name}}"
key: "{{inputs.parameters.token-secret-key}}"
# Suspend until a human resumes the node (Argo UI "Resume", `argo resume`, or the
# resume API). No image or container runs.
- name: await
suspend: {}
Version history
Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.
-
1.0.1 latest 2026-08-02
Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.
kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/slack-approval/1.0.1/template.yamlargo template create -n argo https://catalog.dagweave.com/api/v1/items/slack-approval/1.0.1/template.yaml -
1.0.0 2026-07-16
Initial release.
This release is documented, but its manifest is not vendored here, so it has no install command. Version document
Run it once
After installing, from the command line.
argo submit -n argo --from workflowtemplate/slack-approval \
-p channel=C0123456789 \
-p message=...
Workflow that references it
A Workflow with the required parameters filled from the examples.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: slack-approval-
spec:
workflowTemplateRef:
name: slack-approval
arguments:
parameters:
- name: channel
value: "C0123456789"
- name: message
value: "..."
As a step of a larger workflow
steps:
- - name: slack-approval
templateRef:
name: slack-approval
template: approval