Sourceless / Sourceless/infratomic

Propose config fixes for reachability findings

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
0
Forks
0
Avg merge
12m
Merged PRs (30d)
3

Description

TL;DR: When a Policy violation fires or a reachability query finds an unwanted path, generate a concrete Terraform config fix as a standalone patch instead of only reporting the problem.

User story

As a security engineer, I want a concrete proposed fix for a reachability finding, so I'm not left to manually work out the right config change myself.

Acceptance criteria

  • Triggered by either a registered Policy rule violation or an ad hoc reachability query result (network or IAM)
  • Produces a targeted config edit (e.g. narrow a CIDR, remove one ingress rule) scoped to the specific offending attribute/block, not the whole resource
  • Fix is written as a standalone patch/report artifact — the real tracked .tf file is never modified directly
  • Each Policy rule can independently opt in to auto-apply for its own generated fixes (per-rule flag, default off)
  • When a rule has auto-apply on, its generated patch is applied via the existing apply! primitive without human review
  • When auto-apply is off (default), the patch is left for a human to review and apply

How to verify

Trigger the port-22-open Policy rule against a managed security group. Confirm a patch narrowing/removing the offending ingress rule is produced without the tracked .tf file changing. Flip that rule's auto-apply flag on, re-trigger, and confirm the patch is applied via apply! and the violation clears.

Out of scope

  • Auto-fix for unmanaged/Discovered Resources (that's #34's import+destroy path)
  • A global auto-apply flag — this is per-rule only

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing apply! primitive and the port-22-open Policy rule, then inspect how network and IAM reachability findings are represented. Define how targeted Terraform edits become standalone patch/report artifacts and how each rule opts into auto-apply. Done means both Policy and ad hoc findings produce scoped patches without changing tracked .tf files, with per-rule auto-apply behavior verified against the stated scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, terraform
Domain
infrastructure, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.