Repository navigation
Security Model
balakrishnagatla edited this page Nov 29, 2026
·
1 revision
infralens is built to be safe to point at production.
- 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.
- 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, orINFRALENS_AUDIT_LOG).
- Refuses to start without
INFRALENS_API_TOKEN(INFRALENS_ALLOW_NO_AUTH=1exists for local testing only). - Token compared in constant time.
- Binds to
127.0.0.1unless--hostis set. The container passes0.0.0.0on purpose. -
/healthzis the only unauthenticated route.
- 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
Use private vulnerability reporting. See SECURITY.md.