HomeCase studiesMulti-Cloud Security Posture Dashboard and IAM Attack-Path...

Case study · Seattle, United States

Multi-Cloud Security Posture Dashboard and IAM Attack-Path Governance Engine

CSPM & Multi-Cloud Posture Governance

Cloud infrastructure teams spanning AWS, Azure, GCP, and Kubernetes clusters routinely accumulate configuration drift, over-permissive IAM trust chains, and exposed storage buckets faster than quarterly audits can catch them. We engineered a multi-cloud security posture dashboard powered by Go inventory collectors, Kubernetes-orchestrated policy workers, and an interactive React topology console. The platform builds a unified cross-cloud asset and identity graph, evaluates Open Policy Agent rules continuously, and highlights toxic blast-radius paths before misconfigurations become incidents.

Industry
CSPM & Multi-Cloud Posture Governance
Solution
A continuous cloud security posture management (CSPM) platform built with Go, Kubernetes, and React for multi-cloud asset inventory, OPA policy evaluation, and attack-path visualization.
Platforms
Web & API
Stack
Go · Kubernetes · React · PostgreSQL · Open Policy Agent · Redis
Location
Seattle, United States · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Seattle, United States. Names withheld by agreement.

Project Overview

As organizations scale across AWS, Azure, GCP, and managed Kubernetes clusters, security posture fractures across dozens of cloud consoles and inconsistent tagging standards. Platform teams frequently learn about public ingress rules, wildcard IAM trust policies, or unpatched cluster workloads only after external scanners or audit reviews flag them.

We architected and delivered a multi-cloud security posture management (CSPM) dashboard built on Go, Kubernetes, and React. The platform continuously inventories cloud and cluster configurations through least-privilege read roles, links identities, networks, and compute resources into a traversable relationship graph, and evaluates declarative Open Policy Agent checks to pinpoint exploitable attack paths rather than disconnected configuration warnings.

Multi-Cloud Drift & Graph Complexity

Engineering an accurate posture governance engine across heterogeneous cloud providers exposes subtle technical hurdles:

  • Provider API asymmetry: AWS IAM policies, Azure RBAC assignments, GCP service accounts, and Kubernetes ClusterRoles express permissions with incompatible inheritance models that resist naive unified tables.
  • Alert noise from isolated checks: Treating every non-compliant resource identically buries genuine internet-to-admin compromise chains underneath hundreds of harmless sandbox findings.
  • Cloud API throttling: Polling hundreds of accounts and regional endpoints naively triggers ThrottlingException errors that leave inventory snapshots incomplete.
  • Disconnection from infrastructure code: Security dashboards that list raw cloud ARNs without mapping to owning teams or Terraform modules stall remediation indefinitely.

Architectural Strategy

We built the platform around a normalized asset-and-identity graph driven by declarative Rego policy evaluation, orchestrated natively on Kubernetes. Lightweight Go collectors assume read-only cross-account roles to pull compute, storage, network, and IAM state alongside Kubernetes API server manifests, translating provider-specific schemas into typed canonical nodes and directed permission edges in PostgreSQL.

Rather than polling the entire cloud estate continuously, the system pairs staggered baseline sweeps with event-driven ingestion from cloud audit streams. Whenever a security group, bucket policy, or role trust document mutates, Kubernetes workers re-evaluate impacted subgraphs via Open Policy Agent over gRPC, updating blast-radius scores and compliance postures in near real time for the React dashboard.

Core Capabilities

  • Unified Multi-Cloud & Kubernetes Inventory: Collects compute, serverless, storage, VPC routing, IAM principals, and cluster RBAC configurations across AWS, Azure, GCP, and Kubernetes.
  • Graph-Based Attack-Path Analysis: Traverses network reachability and identity assumption chains to surface toxic combinations—such as public workloads capable of assuming privileged cross-account roles.
  • Declarative OPA Compliance Engine: Evaluates built-in CIS, SOC 2, ISO 27001, and custom organization guardrails in Rego with unit-tested policy bundles and exception expirations.
  • Event-Driven Drift Detection: Consumes cloud audit logs to flag out-of-band console edits and automatically correlate findings with Terraform tags or owning engineering teams.
  • Interactive React Posture Console: Visualizes attack-path graphs, compliance trendlines, framework readiness breakdowns, and contextual remediation diffs.

Technical Architecture

Go collector pods running inside Kubernetes assume short-lived STS/OIDC federated credentials per customer account, pacing discovery calls through Redis quota trackers. Normalized entities and IAM relationship edges stream over gRPC into PostgreSQL, while cloud audit-log listeners enqueue incremental delta jobs whenever infrastructure changes occur. Open Policy Agent evaluator pods pull mutated subgraphs, compute compliance verdicts and shortest-path exposure chains, and publish updated posture state to the Go API gateway powering the React console.

Flow: Cloud APIs & Audit Logs (AWS/Azure/GCP/K8s) → Kubernetes Go Collectors (Redis Quota Pacing) → Canonical Graph Normalizer (gRPC) → PostgreSQL Asset & Edge Store → OPA Rego Policy & Attack-Path Evaluators → Go API Gateway → React Posture Dashboard

Running collectors and policy evaluators as decoupled Kubernetes deployments lets teams autoscale inventory ingestion during onboarding bursts independently from interactive dashboard queries.

Technology Stack

Category Technology detail
Collector & API Core Go microservices polling cloud APIs, normalizing assets, and serving graph queries
Runtime Orchestration Kubernetes scheduling isolated scan CronJobs, worker pods, and horizontal autoscaling
Posture Dashboard React and TypeScript rendering interactive blast-radius graphs and compliance scorecards
Policy Evaluation Open Policy Agent (Rego) executing versioned CIS, SOC 2, and custom security checks
Asset & Graph Store PostgreSQL storing normalized resource snapshots, IAM edges, and posture history
Rate & Delta Cache Redis coordinating cloud API quota budgets, deduplicated event streams, and UI caches
Internal Transport gRPC linking Go ingestion pods, OPA evaluators, and API aggregation gateways
Event Ingestion CloudTrail/Activity Log listeners triggering near-real-time delta re-evaluations

Engineering Trade-offs & Solutions

Engineering Challenge Solution & Trade-off
Modeling cross-cloud IAM reachability without maintaining a separate graph database cluster Stored normalized nodes and directed permission edges in PostgreSQL using recursive CTEs and pre-computed adjacency tables; avoids operating an extra stateful graph engine while keeping queries fast up to mid-six-figure node counts.
Preventing runaway re-scans during noisy Terraform apply deployments Debounced cloud audit-log bursts per resource ID in Redis with short coalescing windows before triggering OPA evaluation; trades a few seconds of detection delay for steady worker utilization.
Safely onboarding external cloud accounts without sharing static access keys Mandated short-lived OIDC / IAM role-assumption federation with explicit external-ID checks; requires initial IAM role provisioning via customer IaC templates while eliminating long-lived credential risk.
Reducing false urgency on intentionally public edge infrastructure Incorporated compensating-control graph context (WAF attachment, private-subnet isolation, read-only IAM scope) into risk ranking instead of flagging every public IP uniformly.

Security & Reliability

A CSPM platform reads blueprints of an enterprise's entire cloud footprint, demanding strict isolation and zero write-privilege exposure. Go collectors operate strictly with read-only metadata permissions—never accessing S3 object contents, database rows, or Kubernetes secret payloads—and obtain ephemeral credentials via federated role assumption rather than stored keys.

Inside the platform's own Kubernetes cluster, mTLS secures gRPC channels between collectors, OPA evaluators, and API gateways, enforced alongside Kubernetes NetworkPolicies blocking arbitrary pod-to-pod egress. Multi-tenant customer boundaries apply both at worker queue partitioning and PostgreSQL row-level security policies. If an individual cloud account hits transient API errors or credential rotation delays, dead-letter retries isolate the failure cleanly so sibling accounts continue scanning uninterrupted.

Performance & Scale

Evaluating thousands of cloud accounts and sprawling Kubernetes clusters requires ruthless efficiency at both collection and query layers. Go collectors parallelize regional API sweeps using bounded worker pools coordinated by Redis rate limiters, skipping unchanged resources via structural content hashes before invoking gRPC storage writes.

Open Policy Agent compiles Rego rule bundles ahead of time into indexed evaluation trees, assessing batched resource graphs in memory without repetitive database round-trips. In the React frontend, complex topology graphs render progressively with server-side subgraph filtering and Redis-cached compliance rollups, keeping blast-radius exploration responsive even across densely interconnected cloud estates.

Operational Outcomes

Replacing manual spreadsheet audits and fragmented native cloud consoles with a Go, Kubernetes, and React posture engine changed how security and platform teams govern infrastructure:

  • Context-driven prioritization: Attack-path visualization focuses engineering sprints on reachable privilege-escalation chains rather than chasing isolated low-risk warnings.
  • Continuous compliance readiness: Automated Rego evaluations and historical diff tracking keep SOC 2 and CIS evidence current every day instead of scrambling before annual audits.
  • Accelerated developer remediation: Mapping misconfigured resources back to owning teams, tags, and IaC patterns closes the loop between cloud security alerts and pull requests.
  • Predictable multi-cloud scale: Event-driven delta scans and Kubernetes autoscaling accommodate new cloud accounts and cluster growth without linear operational overhead.

01 — Questions

asked about this kind of project

Why model multi-cloud resources as a connected graph rather than checking flat resource compliance lists?

An unencrypted storage bucket or an overly broad IAM role looks low-priority in isolation, yet combining a public workload, an instance profile, and an assumable admin role forms a critical compromise path. Graph modeling exposes real toxic combinations rather than flooding teams with flat checklists.

How does the Go collector avoid hitting AWS, Azure, and GCP API rate limits across hundreds of accounts?

Collectors track per-account token buckets in Redis, schedule full snapshots during staggered windows, and rely primarily on event-driven CloudTrail, Event Grid, and Audit Log triggers to re-scan only mutated resources.

Why run policy checks with Open Policy Agent instead of hardcoding compliance rules in Go?

Expressing rules in versioned Rego bundles separates security policy authoring from core Go deployments. Platform teams can test new CIS benchmarks or internal guardrails in CI, roll out updates instantly, and explain exact failing resource attributes.

How does Kubernetes help isolate and scale scanning workloads across enterprise tenants?

Each scan wave runs inside Kubernetes worker pods governed by strict NetworkPolicies, pod security standards, and tenant-scoped resource quotas, scaling out during full inventory sweeps and shrinking cleanly between event bursts.

How does the dashboard map findings back to the Terraform or infrastructure owners who can fix them?

During Go asset normalization, collectors extract Git repository annotations, resource tags, and Kubernetes namespace ownership labels, allowing React findings to route automatically to the owning squad along with IaC remediation snippets.

How do you track posture compliance historically without ballooning PostgreSQL storage?

Instead of duplicating full JSON snapshots every hour, Go workers persist structural diff records whenever an asset's configuration or IAM edge changes, reconstructing historical compliance timelines cleanly.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.