Automation library · Chat assistants

Review and remediate Kubernetes manifests in GitHub PRs

Started by an event in a connected app, and works across GitHub, Postgres and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

22 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 8Logic 4Service 9

The steps in the order they run, from what starts it.

  1. 1GitHub Trigger - PR Opened/UpdatedGithub triggerStarts it
  2. 2Tool - Scan Privileged ContainersTool Http RequestModel
  3. 3Tool - Scan RBAC PermissionsTool Http RequestModel
  4. 4Tool - Scan Exposed ServicesTool Http RequestModel
  5. 5Tool - Scan Resource LimitsTool Http RequestModel
  6. 6Tool - RAG Search Security PoliciesTool Vector StoreModel
  7. 7OpenAI Chat ModelLm Chat Open AiModel
  8. 8Window Buffer MemoryMemory Buffer WindowModel
  9. 9Set - ConfigSetLogic
  10. 10AI Agent - K8s Security ReviewerAgentModel
  11. 11Get - PR Manifest FilesGithubService
  12. 12Set - Parse Agent OutputSetLogic
  13. 13Postgres - Log Security ReviewPostgresService
  14. 14GitHub - Post Review CommentGithubService
  15. 15IF - Issues FoundIfLogic
  16. 16Slack - Request Remediation ApprovalSlackService
  17. 17IF - Remediation ApprovedIfLogic
  18. 18GitHub - Create Remediation BranchGithubService
  19. 19Slack - Post Rejection NoticeSlackService
  20. 20GitHub - Commit Secure ManifestsGithubService
  21. 21GitHub - Open Remediation PRGithubService
  22. 22Slack - Post Remediation PR LinkSlackService

How it's built

Starts on
An event in a connected app
Steps
22, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
GitHub, Postgres, Slack
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own GitHub, Postgres and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.