Hacker
Maharshi Nayak
@friendss
Projects
FlagLedger
Flagsmith Experimentation HackathonNov 2026
What I built: FlagLedger is a zero-touch, tamper-evident forensic and ISO 27001 compliance sidecar for self-hosted Flagsmith. It attaches directly to Flagsmith's official Docker Compose stack via a single docker-compose.override.yml file with zero modifications to Flagsmith's core codebase. The problem it solves: Feature flags let teams change production behavior in milliseconds without a pull request or CI/CD gate. That speed creates a major GRC blind spot: mutable audit logs that can be silently altered by an insider or compromised admin, undocumented "shadow changes" pushed without change tickets, and hours of manual log forensics during incidents or strict regulatory windows like CERT-In's 6-hour reporting mandate. Who would use it: Security, GRC, DevSecOps, and compliance teams—especially in fintech, healthcare, and regulated enterprises—who self-host Flagsmith and need verifiable change-management proof for ISO/IEC 27001, SOC 2, or regulatory audits. How it works: 1. Flagsmith's Production environment sends real-time webhooks to the FlagLedger sidecar (Flask + SQLite) over the internal Docker network. 2. FlagLedger verifies every webhook's X-Flagsmith-Signature using HMAC-SHA256 to block spoofed events. 3. A real-time GRC policy engine evaluates each change against ISO 27001 Annex A.8.32 and SOC 2 CC8.1, instantly flagging undocumented changes as VIOLATION and ticketed releases as COMPLIANT. 4. Every event is sealed into an append-only SHA-256 hash chain anchored to GENESIS. If anyone alters the SQLite database directly, FlagLedger immediately detects the broken chain and pinpoints the exact compromised record. 5. One click exports an auditor-ready Markdown (.md) evidence pack with UTC/IST timelines, the SHA-256 chain head, and mapped compliance findings.