mondoohq/mondoo-operator
mondoohq/mondoo-operator has 41 GitHub stars and 21 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-09 22:19 UTC. Last push 2026-10-30.
☸️ Mondoo Client Kubernetes Operator
What you can do
- Kubernetes Resources Scanning - ✅ - ✅
- Node Scanning - ✅ - ❌
- Container Image Scanning - ✅ - ✅
- Namespace Filtering - ✅ - ✅
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalMondoo Operator for Kubernetes
Project Status: This project is stable. Any API and CRD changes will be handled in way where previous versions are kept working or migrated.

Overview
The Mondoo Operator provides a Kubernetes native way to do continuous security assessment of your Kubernetes clusters. The purpose of this project is to simplify and automate the configuration for Mondoo-based security scanning.
It is backed by Mondoo's powerful policy-as-code engine cnspec and MQL. Mondoo ships out-of-the-box security policies for:
- CIS Kubernetes Benchmarks
- CIS AKS/EKS/GKE/OpenShift Benchmarks
- NSA/CISA Kubernetes Hardening Guide
- Kubernetes Cluster and Workload Security
- Kubernetes Best Practices
Deployment Modes
The Mondoo Operator supports two deployment modes that can be used independently or together:
Self-Cluster Scanning
Install the operator in each cluster you want to scan. The operator scans the cluster it runs in using in-cluster credentials.
┌─────────────────────────────────────┐
│ Your Kubernetes Cluster │
│ │
│ ┌─────────────────────────────┐ │
│ │ Mondoo Operator │ │
│ │ │ │
│ │ • K8s Resources Scanning │ │
│ │ • Node Scanning │ │
│ │ • Container Image Scanning │ │
│ └─────────────────────────────┘ │
│ │ │
│ ▼ │
│ Scans this cluster directly │
└─────────────────────────────────────┘
Use when: You want full scanning capabilities including node scanning, or when clusters are isolated.
# Self-cluster scanning configuration
apiVersion: k8s.mondoo.com/v1alpha2
kind: MondooAuditConfig
spec:
kubernetesResources:
enable: true # Scan K8s resources in this cluster
nodes:
enable: true # Scan nodes in this cluster
containers:
enable: true # Scan container images
External Cluster Scanning
Install the operator in a central management cluster and scan remote clusters via kubeconfig or workload identity. This allows scanning multiple clusters from a single operator installation.
┌─────────────────────────────────────┐
│ Management Cluster │
│ │
│ ┌─────────────────────────────┐ │
│ │ Mondoo Operator │ │
│ └──────────┬──────────────────┘ │
└─────────────┼───────────────────────┘
│
│ kubeconfig / WIF* / SPIFFE* / Vault
│
┌─────────┴─────────┬─────────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Prod │ │ Staging │ │ Dev │
│ Cluster │ │ Cluster │ │ Cluster │
└─────────┘ └─────────┘ └─────────┘
*WIF and SPIFFE authentication are experimental features.
Use when: You want centralized scanning, cannot install operators in target clusters, or want to reduce operational overhead.
Authentication methods:
- Kubeconfig: Use a kubeconfig file stored in a Secret
- Workload Identity (WIF) (Experimental): Native cloud provider authentication for GKE, EKS, AKS
- SPIFFE (Experimental): Use SPIFFE/SPIRE for cross-cluster authentication
- HashiCorp Vault: Dynamic short-lived credentials via Vault's Kubernetes secrets engine
# External cluster scanning with kubeconfig
apiVersion: k8s.mondoo.com/v1alpha2
kind: MondooAuditConfig
spec:
kubernetesResources:
enable: false # Don't scan local cluster
externalClusters:
- name: production
kubeconfigSecretRef:
name: prod-kubeconfig
- name: staging
kubeconfigSecretRef:
name: staging-kubeconfig
Combined Mode
You can also combine both modes - scan the local cluster AND external clusters from the same operator:
apiVersion: k8s.mondoo.com/v1alpha2
kind: MondooAuditConfig
spec:
kubernetesResources:
enable: true # Scan local cluster
externalClusters: # Also scan remote clusters
- name: production
kubeconfigSecretRef:
name: prod-kubeconfig
nodes:
enable: true # Scan local nodes
containers:
enable: true # Scan container images
Features
| Feature | Self-Cluster | External Cluster |
|---|---|---|
| Kubernetes Resources Scanning | ✅ | ✅ |
| Node Scanning | ✅ | ❌ |
| Container Image Scanning | ✅ | ✅ |
| Namespace Filtering | ✅ | ✅ |
| Namespace Label Inheritance | ✅ | ✅ |
| Kubeconfig Auth | - | ✅ |
| Workload Identity (GKE/EKS/AKS) | - | ✅ ⚠️ Experimental |
| SPIFFE Auth | - | ✅ ⚠️ Experimental |
| HashiCorp Vault Auth | - | ✅ |
Self-Cluster Scanning Architecture
External Cluster Scanning Architecture
Getting Started
The Mondoo Operator can be installed via different methods depending on your Kubernetes workflow:
Tested Kubernetes Environments
The following Kubernetes environments are tested:
- Minikube with Kubernetes versions 1.31, 1.32, 1.33, and 1.34
- K3S 1.31, 1.32, 1.33, and 1.34
Documentation
Please see the docs directory for more in-depth information.
Contributing
Many files (documentation, manifests, ...) are auto-generated. Before proposing a pull request:
- Commit your changes.
- Run
make generateandmake test. - Commit the generated changes.
Running the integration tests locally
To run the integration tests locally copy the .env.example file:
cp .env.example .env
Go to Mondoo Platform and create an API token for an organization of choice. Add the API token to the .env file. Double-check that the API is set to the correct environment, then run:
make test/integration
Security
If you find a security vulnerability related to the Mondoo Operator, please do not report it by opening a GitHub issue. Instead, send an email to [email protected]
Join the community!
Join the Mondoo Community GitHub Discussions to collaborate on policy as code and security automation.
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
257,250 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,103 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,542 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
78,935 stars