The Only Container Orchestrator with Built-In Compliance: How Gubernator Enforces ENS, NIS 2, CIS Benchmark, and ISO 27001
Over the past decade, container orchestration has been polarized into two stark extremes:
Kubernetes (K8s) Overengineering: An extraordinarily capable blank canvas, yet born naked of security and regulatory compliance. To bring a Kubernetes cluster into compliance with standards like Spain's Esquema Nacional de Seguridad (ENS) or the European NIS 2 Directive, SecOps teams must assemble, configure, and maintain an intricate tapestry of 15+ third-party tools and operators: Trivy, Falco, Kyverno or OPA Gatekeeper, Cosign, cert-manager, Keycloak, Fluentbit, Prometheus, Grafana, OpenTelemetry... The consequence is astronomical technical debt, operational fragility, and a voracious appetite for RAM and CPU just to run the control plane.
The Bare Minimalism of Docker Swarm and HashiCorp Nomad: Lightweight and elegant solutions for running containers, yet entirely devoid of forensic audit trails, admission control, cryptographic image signing, and regulatory compliance engines. What happens when a public administration, healthcare provider, critical infrastructure operator, or financial institution needs to deploy containerized workloads meeting the strictest cybersecurity regulations without drowning in operational complexity and exorbitant infrastructure costs? The answer is Gubernator (gbnt): the first and only container orchestrator designed from the ground up with native enterprise cybersecurity and regulatory compliance. In this deep dive, we explore Gubernator's built-in security architecture, the international compliance frameworks it continuously audits in real time, its degradation-detecting watchdog, and why it represents a paradigm shift in technological sovereignty.
Core Philosophy: "Secure & Compliant by Design"
Unlike orchestrators where security is an afterthought retrofitted via third-party plugins, in Gubernator, every Centurion (worker node) and Legion (Docker Compose stack) is governed by an unyielding security framework from the moment it boots:
| 🇪🇸 ENS RD 311/2022 | 🇪🇺 NIS 2 Directive | 🔒 CIS Benchmark | 🌐 ISO 27001:2022 |
|---|---|---|---|
| op.acc.2 / op.mon | Art. 21 Risks | Daemon & Host | A.5 Controls |
| Basic/Medium/High | SIEM Syslog Live | Kernel Seccomp | A.8 Controls |
| CCN Evidence | Cyber Hygiene | AppArmor/Caps | Formal SoA Rep. |
🔄 Continuous Compliance Watchdog Daemon (15m Interval)
- Instant reactive re-evaluation upon any security configuration mutation
- Automatic degradation detection (>1.0% drop) →
COMPLIANCE_DEGRADEDevent - Native Prometheus gauges:
gbnt_compliance_score{framework="..."}
🔐 Identity, Access & Forensic Auditing
- Active Directory / OpenLDAP (LDAPS:636)
- SSO / OIDC (Google, Okta, Keycloak)
- Granular RBAC (Admin, Operator, Auditor)
- MFA/TOTP with Offline Time Beacon
- Cryptographic SHA-256 Tamper-Evident Hash Chain Audit Ledger
📦 Software Supply Chain Security & Admission
- CVE Vulnerability Scanner with CVSS v3
- CycloneDX & SPDX JSON SBOMs
- In-Cluster Cosign ECDSA P-256 Signing
- Gatekeeper Admission Controller
Everything runs natively from a single self-contained Go binary with zero heavy external dependencies, managed through a modern, responsive Flutter Web Dashboard.
1. Esquema Nacional de Seguridad (ENS - Royal Decree 311/2022)
The Esquema Nacional de Seguridad (ENS) regulates the security conditions that Spanish Public Administrations and their technology partners must fulfill to safeguard information systems and services. Gubernator natively assesses the operational controls specified by Spain's CCN-STIC standards:
- op.acc.2 (Access Control & Credential Hardening): Configurable minimum password length validation (default 12+ characters). Enforced complexity (uppercase, lowercase, digits, and special characters). Automatic account lockout after repeated failed login attempts. Idle session expiration and timeout enforcement.
- op.acc.6 (Strengthened Authentication): Mandatory Multi-Factor Authentication (MFA/TOTP RFC 6238) for administrative and operational roles.
- op.mon.1 (System Monitoring & Logging): Cryptographically signed audit trails and live security event streaming to enterprise SIEM platforms.
- op.exp.8 (Integrity Protection & Cryptographic Chains): Mathematical integrity verification across the action history via cryptographic hash chains.
Gubernator automatically evaluates compliance across the three official ENS tiers (Basic, Medium, and High) and produces a ready-to-present CCN evidence dossier in a single click.
2. European NIS 2 Directive (EU Directive 2022/2555)
The European Union's NIS 2 Directive establishes a harmonized cybersecurity baseline across essential and important entities, introducing strict penalties for non-compliance with risk management and incident reporting obligations. Gubernator directly addresses the requirements of Article 21 (Cybersecurity risk-management measures):
- Risk Analysis & Information System Security Policies: Continuous monitoring of image admission modes and cluster security settings.
- Incident Handling & Real-Time SIEM Streaming: Native RFC 5424 and RFC 3164 Syslog forwarder dispatching security events directly to Splunk, Elastic, Microsoft Sentinel, Wazuh, or QRadar. Automatic dispatch on policy violations, brute-force lockouts, and compliance degradation.
- Business Continuity & Consistent Backups: Integrated with Gubernator's The Granaries subsystem, allowing operators to freeze containers (
docker pause), create encrypted.tar.gzsnapshots verified with SHA-256 digests, and manage automated retention schedules. - Supply Chain Security: Image validation prior to task scheduling to thwart dependency injection attacks.
- Cryptography & Encryption: Enforced mTLS and X.509 certificate lifecycle management on the Ingress proxy with automated certificate renewal.
The dashboard presents dedicated compliance gauges for both Essential Entities (EE) and Important Entities (IE) with live breakdowns of all 10 Article 21 requirements.
3. CIS Docker Benchmark v1.6.0
The Center for Internet Security (CIS) maintains the industry benchmark for hardening Docker hosts and container runtimes. Gubernator embeds an automated CIS evaluation engine spanning all 6 core benchmark domains:
- Section 1 (Host Configuration): Dedicated partition verification for
/var/lib/docker, auditd system call tracking, and daemon isolation. - Section 2 (Docker Daemon Configuration): Inter-container communication restrictions on the default bridge (
icc=false), user namespace remapping (userns-remap), log rotation policies (max-size,max-file), and deprecation of legacy registry support. - Section 3 (File Permissions and Ownership): Strict permissions verification (
0644,0600) androot:rootownership on/etc/docker/daemon.json, sockets, and TLS keys. - Section 4 (Images and Build Files): Verification of non-root USER execution, detection of embedded credentials, and prevention of compiler binaries inside runtime containers.
- Section 5 (Runtime Security): Enforcement of default AppArmor profiles and Seccomp filters. Linux capability minimization (
--cap-drop=ALL). Read-only root filesystems (read_only: true). Prevention of privilege escalation (no-new-privileges: true). - Section 6 (Security Operations): Housekeeping for orphaned volumes, zombie containers, and deprecated runtime parameters.
Each CIS check outputs its status (PASS, WARN, FAIL, INFO), alongside raw technical evidence and step-by-step remediation advice.
4. ISO/IEC 27001:2022 (Annex A)
ISO/IEC 27001 is the global benchmark for Information Security Management Systems (ISMS). Gubernator evaluates the updated Annex A controls (2022 revision):
- Theme A.5 (Organizational Controls): A.5.15 / A.5.18: Role-based access control and segregation of privileged rights. A.5.24 - A.5.28: Incident management workflow and forensic evidence collection.
- Theme A.8 (Technological Controls): A.8.2: Privileged access rights monitored and managed. A.8.8: Technical vulnerability remediation across production stacks. A.8.9: Configuration management and cluster hardening. A.8.15: Tamper-resistant logging and event recording. A.8.28: Secure coding and declarative configuration validation.
From the web console, teams can export a formal Statement of Applicability (SoA) with real-time audit statuses ready for external certification audits.
5. Continuous Compliance Watchdog: Zero Blind Spots
Traditional compliance auditing relies on periodic, point-in-time reviews: an external auditor visits today, and until the next quarter, nobody knows whether security configurations have quietly drifted out of compliance. In Gubernator, compliance is an active, continuous process:
[ Security Configuration Mutation ] ──▶ Reactive Out-of-Band Trigger (e.g., MFA disabled,
│ password policy relaxed, ▼ SIEM endpoint altered)
┌─────────────────────────┐
│ Compliance Watchdog │◀── Background Cron (15m)
└────────────┬────────────┘
│ Did score drop > 1.0%?
├── YES ──▶ 🚨 Audit Log: COMPLIANCE_DEGRADED (WARNING)
└── NO──▶ ℹ️ Audit Log: COMPLIANCE_RESTORED (SUCCESS)
▼
📊 Prometheus: gbnt_compliance_score
🖥️ Web UI: Executive Matrix Synchronized
What happens if an admin relaxes security settings? If an operator disables MFA for a user or lowers the cluster password complexity threshold:
- Instant Reactive Re-evaluation: Rather than waiting for the 15-minute background interval, the API immediately fires
go security.TriggerComplianceAudit(...). - Cryptographic Drift & Degradation Alert: The engine compares the previous score with the new evaluation. If it detects a drop greater than 1.0%, it registers a forensic warning:
{
"event": "COMPLIANCE_DEGRADED",
"severity": "WARNING",
"message": "Compliance score degraded in Spanish ENS (RD 311/2022): dropped from 96.9% to 88.5% (trigger: MFA_DISABLED)"
}
- Prometheus Metrics (
:4002/metrics):
# HELP gbnt_compliance_score Current compliance score (0.0 to 100.0) evaluated by the continuous compliance audit engine.
# TYPE gbnt_compliance_score gauge
gbnt_compliance_score{framework="cis_docker"} 75.0
gbnt_compliance_score{framework="ens"} 88.5
gbnt_compliance_score{framework="iso27001"} 97.9
gbnt_compliance_score{framework="nis2"} 91.7
- Live Dashboard Executive Matrix: The top header badge confirms
● WATCHDOG ACTIVEalongside the[ 🛡️ Re-evaluate All Compliance ]master button to trigger an on-demand audit cycle in one click.
6. Tamper-Evident Forensic Audit Trail (SHA-256 Hash Chain)
Advanced attackers who breach a system frequently attempt to wipe or modify audit logs to cover their tracks. To prevent log tampering, Gubernator implements an immutable forensic ledger:
Every log entry stored in SQLite contains:
PreviousHash: The SHA-256 hash of the immediately preceding event.EventHash: The cryptographic checksum computed over the event payload:
$$\text{Hash}n = \text{SHA-256}(\text{Hash}{n-1} \parallel \text{Timestamp} \parallel \text{Actor} \parallel \text{IP} \parallel \text{Category} \parallel \text{Action} \parallel \text{Status} \parallel \text{Details})$$
Clicking "Verify Forensic Chain" traverses the entire audit history, recalculating every cryptographic link. If an unauthorized actor modifies a row directly in the database, the hash chain breaks instantly, flagging the exact corrupted record.
Comments
No comments yet. Start the discussion.