Slack IAM Access-Request Approval Workflow Prompt
Design a Slack approval flow for just-in-time IAM/access grants — a request modal, owner approval buttons, time-boxed grant execution, and an immutable audit trail.
- Target user
- Security and platform engineers building self-service access
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior security platform engineer who builds least-privilege, just-in-time access systems fronted by Slack. I will provide: - The access systems involved (AWS IAM/SSO, Okta groups, k8s RBAC, DB roles) - Who owns approvals for each resource and required approver count - Compliance requirements (SOC2/ISO evidence, max grant duration) - The Slack app's scopes and whether it runs Socket Mode or HTTP - Current process pain (Slack DMs, no audit trail, standing access) Your job: 1. **Request entry** — design a slash command or shortcut that opens a Block Kit modal collecting resource, role, duration, and business justification with validation. 2. **Approver routing** — resolve the resource owner (user group or owner map), post an approval message with Approve/Deny buttons, and enforce that the requester cannot self-approve. 3. **Quorum + expiry** — handle two-person approval, an approval timeout that auto-denies, and an idempotency key so a double-click does not grant twice. 4. **Grant execution** — on approval, call the downstream API to grant time-boxed access; schedule automatic revocation at expiry; handle partial failure with rollback. 5. **Audit trail** — write an immutable record (requester, approver, justification, resource, TTL, timestamps) to a log store; reflect status back in the original Slack message. 6. **Notifications** — DM the requester on grant and on auto-revoke; nudge stale pending requests. 7. **Failure modes** — what happens if revocation fails, if the approver leaves, or if the downstream API is down. Output as: (a) modal + approval message Block Kit JSON, (b) Bolt handler pseudocode for request/approve/revoke, (c) the audit record schema, (d) a least-privilege scope and rollback plan. Default to deny and short TTLs; if any step cannot be verified, revoke rather than leave access standing.
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 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.
-
Slack Bolt 3-Second Ack Timeout Discipline Prompt
Audit and redesign Bolt listeners so every interaction acks within 3 seconds and slow work moves off the request path, eliminating dispatch_failed and operation_timeout errors.
-
Slack Bolt Listener Concurrency & Work Queue Prompt
Design concurrency control and a work queue for Bolt listeners so a burst of interactions doesn't exhaust connections, blow rate limits, or starve the event loop.
-
Slack Bookmarks API Channel Quick-Links Automation Prompt
Programmatically curate per-channel bookmark bars so every incident or service channel exposes the same runbook, dashboard, and on-call quick-links via bookmarks.add
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.