Skip to content

Security Model

balakrishnagatla edited this page Nov 29, 2026 · 1 revision

Security Model

infralens is built to be safe to point at production.

What it can do

  • Read only. Providers call describe, list and get APIs. The shipped IAM policy and Kubernetes RBAC role contain no write permissions. CI runs the Kubernetes scan with that role and checks it cannot delete.
  • Suggest, never apply. Each discovery includes a command for a human to run. infralens never runs it.
  • Triage stays local. Acknowledge and suppress change infralens' own SQLite store, never the cloud.

What the AI sees

  • Passwords, tokens, API keys, JWTs, private keys and connection strings are masked in evidence, log search results and LLM prompts.
  • Every tool call is appended to an audit log (~/.infralens/audit.jsonl, or INFRALENS_AUDIT_LOG).

The HTTP server

  • Refuses to start without INFRALENS_API_TOKEN (INFRALENS_ALLOW_NO_AUTH=1 exists for local testing only).
  • Token compared in constant time.
  • Binds to 127.0.0.1 unless --host is set. The container passes 0.0.0.0 on purpose.
  • /healthz is the only unauthenticated route.

Supply chain

  • CodeQL (Python and Actions), Bandit, pip-audit and Trivy (filesystem and image) on every PR
  • Third-party GitHub Actions pinned to commit SHAs
  • Dependabot for Python, Docker and Actions
  • Protected main: PRs and passing checks required
  • Containers run as non-root; ECR tags immutable; S3 and EBS encrypted

Reporting a vulnerability

Use private vulnerability reporting. See SECURITY.md.

Clone this wiki locally