How to Build a Safe Slack Approval Workflow for Deleting Cloud Infrastructure

Developers building cloud cost-optimization tools face a critical challenge: allowing a Slack button click to trigger real infrastructure deletion without causing incidents. The FinOps Sentinel project demonstrates how to wire up a two-channel Slack interactivity system using incoming webhooks for outbound alerts and a verified HTTP callback endpoint for inbound approvals. Signature verification using Slack's signing secret is essential, as without it any unauthenticated POST from the internet could trigger destructive actions like deleting EBS volumes. Block Kit JSON messages are structured to surface key details such as resource ID, region, and estimated monthly cost so approvers can make informed decisions quickly, even on mobile. LLM-generated summaries are treated as untrusted display copy and kept isolated from action values to prevent injection-style misuse.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in