HLDModulesGovernance
v1.2 is unreleased — see v1.1 for the current stable release.
Governance
Policy-based compliance enforcement across cloud accounts and hosts.
Governance
The Governance module allows organisations to define, enforce, and track compliance policies across connected cloud accounts (CSP) and managed hosts. Policies are organised into Groups — a named collection that aggregates compliance scores and provides a logical boundary for enforcement.
Provider Support
Supported
AWS
Azure
Ubuntu
Not Supported
GCP
GitHub
Docker Hub
Docker
Architecture
Policy Evaluation Flow
- Trigger — Either the cron scheduler fires (based on
schedule+scheduleTimezone) or a user manually triggers a run. - Evaluation — For CSP, Cloud Custodian is invoked with the policy YAML against the target account. For Host, the shell script runs on the target host.
- Result — The engine records an
ExecutionRunwith status, duration, non-compliant resource count (CSP) or expected-output mismatch (Host), and any error. - Score update — The group's
complianceScoreis recalculated as the percentage of policy runs in the last evaluation cycle that returnedSuccess.
Compliance Score Calculation
A policy group's compliance score is derived as:
complianceScore = (successfulRuns / totalRuns) × 100Where successfulRuns counts runs with status: "Success" across all member policies in the latest evaluation cycle. A run with status: "Partial" counts as a partial pass (0.5 weight).
Open-Source Tools
| Tool | Purpose |
|---|---|
| Cloud Custodian | Multi-cloud policy evaluation (YAML-based) for CSP policies |
| Open Policy Agent (OPA) | General-purpose policy engine (planned for Kubernetes / Rego-based policies) |
| Steampipe | SQL-based compliance checks (planned for query-driven policies) |
Roadmap
| Item | Status |
|---|---|
| Group → Policy hierarchy | Implemented |
| CSP policies (Cloud Custodian YAML) | Implemented |
| Host policies (Shell Script + remediation) | Implemented |
| Execution history per policy | Implemented |
| Auto-remediation for host policies | Implemented (flag-gated) |
| Standard policy library (pre-built CIS benchmarks) | Planned |
| Department-level group grouping | Planned |
| OPA / Rego policy type | Planned |
| Steampipe compliance checks | Planned |
| Real-time compliance drift alerts | Planned |