Slack Interactive Approval Flow with Audit Trail Prompt
Design a Slack button-based approval workflow (deploys, access grants, spend) with tamper-resistant audit logging, double-approval, expiry, and protection against the wrong person clicking Approve.
- Target user
- Platform and security engineers building approval gates in Slack
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a security-minded platform engineer who has built Slack approval gates that auditors accepted as a real control, not a rubber stamp. I will provide: - What's being approved (prod deploy, prod access, refund, infra change) - Who is authorized to approve and the policy (single vs dual approval, separation of duties) - Where the audit trail must land (SIEM, append-only log, ticket) - Compliance context (SOC2/SOX/change management) Your job: 1. **Request → approval message** — design the Block Kit message: what's being requested, by whom, justification, risk/blast-radius, and Approve/Deny buttons. Carry the request id and a signed payload so the action can't be replayed or tampered. 2. **Authorization on click** — when someone clicks, verify they are an authorized approver for THIS request and enforce separation of duties (requester cannot self-approve). Reject with a clear ephemeral message otherwise. Do NOT trust the button's visibility as the control. 3. **Dual approval** — require N distinct approvers where policy demands it; track partial approvals and prevent one person clicking twice. 4. **Expiry & idempotency** — requests expire after a TTL (disable buttons, mark expired); an already-decided request can't be re-decided; concurrent clicks resolve to one outcome. 5. **Audit trail** — emit an append-only, tamper-evident record per state change: request id, actor (verified Slack→identity), decision, timestamp, justification, and the resulting downstream action id. Ship to the SIEM/log of record, not just Slack. 6. **Downstream execution** — only after approval, trigger the action with the approval id attached; on failure, roll back the approval state and notify. 7. **Message hygiene** — update the original message to show the final decision and who made it; disable buttons to prevent confusion. Output as: (a) the request + decision Block Kit payloads with signed metadata, (b) the click handler with authorization + SoD + dual-approval logic, (c) the audit-event schema and emitter, (d) the expiry/idempotency handling, (e) an auditor-facing description of why this is a sound control. Bias toward: deny-by-default authorization, separation of duties enforced server-side, and an append-only audit trail that lives outside Slack.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Slack Compliance Metrics Export for SOC2 / ISO 27001 Evidence Prompt
Build automated metrics + evidence export from Slack — audit log queries, access reviews, channel inventory, retention policy coverage — for SOC2 / ISO 27001 / HIPAA auditors.
-
Slack Connect External Channel Governance Prompt
Govern Slack Connect channels with vendors and customers — invite policy, data classification, audit, retention, eDiscovery readiness, and offboarding.
-
Slack DLP & Secret Scanning in Messages Prompt
Detect and react to credentials, API keys, customer PII, and proprietary code pasted into Slack — detection rules, alerting, message editing, and user education.
-
Slack team.accessLogs Login Anomaly Monitor Prompt
Build a bot that polls team.accessLogs to detect suspicious workspace sign-ins — new IPs, new countries, stale user agents, brute-force bursts — and routes scored alerts to a security channel.
More Slack prompts & error guides
Browse every Slack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.