Most Slack approval apps ask for users:read, channels:history, groups:history—and then bill $4–$10 per workspace seat per month. For a 50-person team where most employees only request or click [Approve] twice a quarter, that's $200–$500/month just to log structured sign-offs.

When we built ApproveFlat on Cloudflare Workers + D1, we asked two questions:

  1. What is the strict minimum Slack OAuth scope set needed for native /approve workflows?
  2. How do we make approvals auditable enough for finance and SOC2 exports without bloating the permissions?

Here is what we learned shipping to Slack's 2026 Marketplace security bar.

Why 3 Bot Scopes Are Enough

When you trace a native Slack slash-command approval flow end to end, you only need 3 bot scopes:

  1. commands — Receives /approve and /approve-log payloads, which already include team_id, channel_id, user_id, user_name, and trigger_id. You don't need users:read just to know who submitted a request or who clicked a button.
  2. chat:write — Posts the interactive Block Kit Approval Card ([Approve], [Reject], [Ask Question]) and calls chat.update to lock the card in place once decided.
  3. im:write — Handles the classic private-channel edge case cleanly: if a user runs /approve inside a private channel where @ApproveFlat hasn't been invited (not_in_channel), the Worker automatically calls conversations.open and delivers the card directly to the designated approver via DM—zero channels:join or groups:history required.

4 Edge Cases Every Slack Approval App Hits in Production

1. Request Signing & 5-Minute Anti-Replay (Web Crypto)

Every POST /slack/commands, /slack/interactions, and /slack/events request must verify X-Slack-Signature (v0=<hex>) against v0:${timestamp}:${rawBody} using HMAC-SHA256 and reject timestamps outside a ±300-second window. Always compare signatures in constant time instead of ===.

2. Double-Click Duplicate Audit Rows

Users routinely double-click [Approve] on flaky Wi-Fi. If you check status === 'pending' in application memory and then run an UPDATE, two concurrent Worker invocations can both pass the check and write duplicate APPROVED audit records.

Instead, enforce atomicity directly in SQLite / Cloudflare D1:

UPDATE approval_requests SET status = ?1, decided_by = ?2, decided_by_name = ?3, decided_at = ?4, decision_note = ?5, updated_at = ?4 WHERE id = ?6 AND team_id = ?7 AND status = 'pending' RETURNING *; 

Only the winning click receives a returned row, appends the APPROVED/REJECTED audit entry, and calls chat.update to strip all action buttons. The losing click gets a clean ephemeral message (Already approved by @...).

3. Tamper-Evident Audit Logs & Formula-Safe CSV Exports

Finance and compliance reviewers open exported CSVs straight in Excel or Google Sheets. Two subtle details matter:

  • Hash-chained ledger: Each audit event (CREATED, QUESTION, APPROVED, REJECTED) stores prev_hash (starting from GENESIS) and entry_hash = SHA-256(prev_hash || team_id || request_id || seq || action || actor_id || note || timestamp_utc).
  • CSV formula injection defense: Any user-supplied request title or note beginning with =, +, -, @, \t, or \r is prefixed with ' before RFC 4180 quoting so spreadsheets never execute it as a formula.
  • Short-lived signed download links: /approve-log returns an ephemeral Block Kit summary plus a 15-minute HMAC-signed CSV download URL.

4. Encrypted Bot Tokens & Instant Uninstall Scrubbing

Workspace bot tokens are encrypted at rest with Web Crypto AES-256-GCM (enc:v1:<iv>:<ciphertext>) before writing to D1, and subscribed to app_uninstalled and tokens_revoked events so uninstalling immediately scrubs stored tokens.

Try the Interactive Block Kit Simulator (No Install Needed)

We put a live browser Block Kit approval simulator (including unauthorized-click testing, live hash-chained audit ledger, and a per-seat cost calculator) right on the homepage:

👉 https://approveflat.kittenlabs-hq.workers.dev/

  • Free forever up to 25 approvals/month with unlimited workspace users (no credit card).
  • $19/month flat per workspace for unlimited approvals and unlimited seats.

If you've built Slack apps for Marketplace review or run approval workflows in Slack, I'd love feedback on the Block Kit UX and what audit fields your finance/compliance team expects!