r/platformengineering • • 13d ago

After a cloud scan, what actually gets the findings fixed in your team?

I posted a small open-source Azure scanner in r/AZURE this week. The best comments weren't about detection at all. They were about what happens after:

  • A CLI fix on a resource managed by Terraform gets reverted on the next terraform apply.
  • A flat list in severity order isn't a plan. Rank by what's actually exposed.
  • Someone doubted that teams even merge automated PRs.

I'm not asking you to try anything. I'm trying to learn what makes fixes actually land:

  1. When a scanner or Advisor flags something, who fixes it, and what makes it actually happen? Tickets, PRs, or someone chasing it in a weekly review?
  2. If the resource is in Terraform, would you want a patch or PR, or just the finding plus the Terraform address?
  3. Does your org really keep owner tags on resources, or is the resource group name the better guess at who owns it?

For context, here's what mine does today. For 16 of its 60 checks, it writes one script per resource with the risk, expected downtime, a rollback and a verify step. Every command is commented out, so a person reads it and enables it. The newest version groups findings by owner (from tags, falling back to the resource group) and ranks a short "fix first" list by whether a resource's own settings allow connections from the Internet. It's a ranking aid, not attack-path analysis.

Disclosure: I build it. It's free, Apache 2.0, and read-only: https://github.com/skyvedahq/skyveda

1 Upvotes

2 comments sorted by

1

u/Starks1293 13d ago

the comments you got are spot on, the hard part is never detection

on your questions:

  • who fixes it: whoever owns the code that created the resource, and only if the finding shows up where they already work. a PR in their repo or a ticket in their backlog gets done. a dashboard or a weekly review gets nodded at
  • terraform: a PR with the patch, plus the resource address in the description. "here's the finding, go figure out which module it lives in" is the step where most fixes die. a CLI fix on a TF-managed resource is worse than nothing because it looks fixed until the next apply
  • owner tags: in most orgs they're half filled and half stale. better guesses, roughly in order: the repo whose terraform state holds the resource, then whoever last deployed it (the activity log caller), then the resource group

ranking by "reachable from the internet" first is the right call. a short list people trust beats a complete list nobody opens

1

u/skyvedahq 5d ago

This is the most useful comment I've had on this. The ordering you gave — the repo whose Terraform state holds the resource, then the activity-log caller who last deployed it, then the resource group — is better than what most tools do (tag, then give up). Especially the point that a finding has to show up where people already work. A PR in their repo gets done; a dashboard gets nodded at. That matches everything I'm seeing.

And "a CLI fix on a TF-managed resource is worse than nothing" — agreed completely, that's exactly why I went the Terraform-patch route instead of handing people az commands.

The state-file-as-owner idea is the one I want to sit with. Thanks for taking the time to write this out.