Back to Engineering Blog
Observability 6 min read

Chat-First Ops: Routing Security Alerts to Discord with Workflow Automation

Wiring SIEM detections through a self-hosted workflow engine into Discord, and the four deployment bugs we hit along the way.

Jason NevillBy , Houston, TX
#Discord#Automation#n8n#Alerting

Key Architectural Takeaways

  • A workflow engine turns SIEM alerts into chat messages without custom code.
  • Four real deployment bugs were found and fixed, each documented.
  • Alerts reach a phone and the team without anyone watching a dashboard.

The goal

A detection is only useful if a human sees it. We route SIEM alerts through a self-hosted workflow engine into a Discord channel.

Bugs worth sharing

  1. Container user mismatch. The engine runs as a non-root user but the data directory was created root-owned, so it crash-looped with a permission error. Fix: create the directory with the matching owner.
  2. A documented flag that does not work. Importing a workflow as already-active only works in queue mode. We import inactive and publish separately.
  3. Missing identifier. The import schema requires an explicit workflow ID. We added a fixed one.
  4. Webhook not registered after CLI activation. The running server builds its routing table at startup, so activating from the CLI needs a restart before the webhook answers.

Lesson

Read the startup log, not just the success message. The log line that said zero published workflows explained the 404 immediately.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.