Skip to content

Releases

infralens v0.7.1

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 20:51
a7cab6b

Fixes from the first live test on a real AWS account (scan, exit report, Agent Guard and an approved fix all worked).

  • A cloud whose optional package is missing now says how to install it, e.g. pip install "infralens-mcp[aws]", instead of a bare ModuleNotFoundError
  • Agent Guard wording: "Destroys this aws_ebs_volume" (was "a aws_ebs_volume")
  • README: how to run in AWS CloudShell (built-in Python too old, 1 GB home folder)
  • Code scanning: removed a keys/oauth import cycle and two implicit string concatenations (no behaviour change)
pip install -U "infralens-mcp[aws]"

infralens v0.7.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 17:59
83d0d3c

Agent identity: decide what each AI agent may do

Per-agent policies in infralens.yaml. The first matching rule applies:

agents:
  - match: "intern-*"          # a named key, an OAuth client (oauth:...), or "local"
    envs: [dev, staging]
    max_scope: read
  - match: "*"
    deny_envs: [prod]          # never sees or acts on production
    deny_tools: [propose_fix]

Rules can allow or deny tools, cap the scope, limit clouds and hide findings by environment. Hidden findings can't be acknowledged, suppressed or fixed by that agent either, and every refusal is in the audit log with the rule that caused it.

Sign in with your identity provider. The HTTP server can accept OAuth 2.1 / OIDC access tokens from Okta, Entra ID, Auth0, Keycloak and others, as the MCP authorization spec describes. Tokens are checked against your provider's published keys over HTTPS, and need the infralens:read or infralens:state scope. The OAuth client becomes the agent and the signed-in person a verified on_behalf_of.

pip install -U "infralens-mcp[aws,oauth]"
export INFRALENS_OAUTH_ISSUER=https://login.example.com
export INFRALENS_OAUTH_AUDIENCE=https://infralens.example.com/mcp

Fix: the state store now gives each worker thread its own database connection and serializes writes, so tool calls landing on different threads, or running at the same time, no longer fail.

Full details in CHANGELOG.md.

infralens v0.6.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 17:48
b6fb8cc

Cloud exit report: how locked in are you?

"How hard would it be to leave this cloud?" Ask your AI agent, or run infralens exit-report. The answer comes from the live account, not a questionnaire.

Lock-in score: 41/100 (medium) across 16 resources: 9 portable, 1 moderate, 6 provider-specific.
Data to move: 9,385 GB · one-time egress at list price: $835.65
  • Every service placed as portable (VMs, disks, Kubernetes, PostgreSQL/MySQL, Redis, S3-compatible storage), moderate (Aurora, ECS, Kinesis) or provider-specific (DynamoDB, Lambda, SQS, SNS, Step Functions, API Gateway, Cognito), with what each would become elsewhere.
  • Data volume and a one-time internet egress estimate at 2026 list price, after the free 100 GB. AWS waives that fee for customers moving off AWS, on request through AWS Support.
  • List-only permissions, added in aws-readonly-role/v0.2.0. Lambda is counted without reading function configurations, which hold environment variables.
pip install -U infralens-mcp
infralens exit-report        # demo data, no cloud needed

Phase 2 complete: audit log (v0.3), Agent Guard (v0.4), approved fixes (v0.5), exit report (v0.6). Full details in CHANGELOG.md.

infralens v0.5.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 16:29
1f889c7

Approved fixes: agents propose, people approve

infralens is still read-only by default. Turn on approved fixes (INFRALENS_FIXES=1) and an AI agent can propose a fix for a savings finding. Nothing changes until a person approves it.

Finding Fix
Unassociated Elastic IP Release it
Unattached EBS volume Snapshot it, then delete it
Idle EC2 instance Stop it
  • People approve, agents can't: approve with infralens fixes approve <id> or a Slack button (signed requests, allow-listed users only). There is no MCP tool to approve.
  • Safe by construction: proposals expire after 24 hours; a fix runs once even if two people click at the same time; right before acting infralens re-checks the resource and skips anything tagged infralens-protect=true.
  • Separate credentials: fixes run with their own role (aws-remediation-role module, three EC2 actions only), never the read-only scan credentials.
  • Audited: every proposal, decision and result goes into the tamper-evident audit log.

Phase 2, milestone 3 of 4. Full details in CHANGELOG.md.

infralens v0.4.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 16:12
6fb2fca

Agent Guard: review infrastructure PRs, stricter for AI agents

AI agents now open infrastructure pull requests. infralens guard reads the OpenTofu/Terraform plan and flags what it would do before anything merges. Offline, no API keys.

  • Blocks: "Action": "*" or AdministratorAccess, public S3 (access block off, public ACLs, Principal: *), SSH/RDP/database ports open to the internet, destroying or replacing databases, buckets, volumes or prod-tagged resources.
  • Warns: service-wide IAM (s3:* on *), other deletes, changed module or provider sources, missing owner/team tags, monthly cost above a limit.
  • Stricter for AI agents: PRs opened by AI coding agents, co-authored by one, described as AI-generated or labelled ai-generated turn the warnings above into blocks. A maintainer can accept with the agent-guard-approved label.
  • Cost from a built-in list-price estimate, or from Infracost when you provide its JSON. Checkov findings can be folded in.
pip install -U infralens-mcp
tofu plan -out plan.out && tofu show -json plan.out > plan.json
infralens guard --plan plan.json --agent yes

The GitHub Action is infralens-agent-guard. Phase 2, milestone 2 of 4. Full details in CHANGELOG.md.

infralens v0.3.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 15:45
b5072a2

Know which AI agent did what

infralens now records who made every tool call, and can prove the log wasn't edited.

  • Named keys per agent or team: infralens keys create claude-desktop (read-only) or --scope state (can also acknowledge or suppress findings). Only hashes are stored. Your existing INFRALENS_API_TOKEN keeps working as the default key.
  • Every audit record names the key, its scope, the MCP client and version, the transport, and an optional X-Infralens-On-Behalf-Of person.
  • Scopes are enforced: a read-only key can't change state, and the refusal is logged.
  • Tamper-evident: records are hash-chained; infralens audit verify points at the first edited, missing or reordered line.
  • infralens audit filters by agent, tool, time or refusals; audit export outputs JSON lines for your SIEM.
pip install -U "infralens-mcp[aws,k8s]"
infralens keys create claude-desktop
infralens audit verify

Phase 2, milestone 1 of 4. Full details in CHANGELOG.md.

infralens v0.2.1

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 13:08
441ea15

What's new

  • Listed in the official MCP Registry as io.github.balakrishnagatla/infralens, so MCP clients and directories can find it. Every release is published there automatically (GitHub OIDC, no token).
  • New infralens-mcp command, so MCP clients can run it with uvx infralens-mcp serve.

Install

pip install "infralens-mcp[aws,k8s]"
docker pull ghcr.io/balakrishnagatla/infralens:0.2.1

infralens v0.2.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 30 Nov 04:07
0751648

Install

pip install "infralens-mcp[aws,k8s]"
docker run -p 127.0.0.1:8080:8080 -e INFRALENS_API_TOKEN=... ghcr.io/balakrishnagatla/infralens:0.2.0

What's new

  • Kubernetes provider: reliability alerts (CrashLoopBackOff, OOMKilled, Pending pods, NotReady nodes) with Deployment-rollout correlation; cost savings (unmounted volume claims, Released volumes, LoadBalancers with no ready backends); ownership gaps for unlabelled workloads; pod log search
  • Read-only RBAC (deploy/kubernetes/rbac.yaml) and a broken demo namespace (demo/k8s); CI scans a real kind cluster using only the read-only role
  • AWS deploy uses the shared aws-readonly-role module (aws-readonly-role/v0.1.0): same read-only permissions plus an explicit Deny on data reads
  • Published to PyPI and GHCR on every release (trusted publishing, multi-arch image with SBOM and provenance)

Full details in CHANGELOG.md.

infralens v0.1.0

Choose a tag to compare

@balakrishnagatla balakrishnagatla released this 29 Nov 20:58
c5b4b51

First release of infralens: discover cloud cost savings and catch reliability issues early, across any cloud, through any AI (MCP).

infralens

Highlights

  • Discoveries through one schema: cost savings opportunities, reliability alerts with "what changed?" correlation, ownership gaps
  • AWS provider (idle EC2/RDS, unattached EBS, unused IPs, old snapshots, alarms, log error spikes, CloudTrail), Azure (beta), and a mock provider for credential-free demos
  • MCP server over stdio and Streamable HTTP (bearer token; binds to localhost by default)
  • Watch mode: daily discoveries report with an optional summary from any LLM, published to GitHub Issues or Slack
  • Policy as code, discovery lifecycle, cost savings tracking
  • Safety: read-only least-privilege IAM, secret masking, audit log
  • OpenTofu deploy for AWS (App Runner, Lambda, EventBridge Scheduler)
  • CI with tests on Python 3.11 to 3.13, CodeQL, Bandit, pip-audit and Trivy

Try it (no cloud account)

git clone https://github.com/balakrishnagatla/infralens && cd infralens
docker compose up --build -d

See CHANGELOG.md.