Skip to main content
HermisLabs
Back to projects
PRJ-04InfrastructureRFC / ExplorationReplaceable Sample Entry

EnvGuard

Typed environment contracts and secret-leak prevention for multi-stage deployments.

Broken deployments caused by a missing or mistyped environment variable remain one of the most common preventable outages. EnvGuard enforces a declarative contract across monorepos, generates typed runtime accessors, and verifies secret hygiene in pre-commit and CI hooks.

Jump to interactive preview
01 // Problem Statement

Environment files drift silently across engineers, preview branches, and CI pipelines, leading to cryptic runtime crashes or accidental exposure of server-only keys in client bundles.

02 // Architectural Approach

Reads a version-controlled `envguard.schema.ts` manifest, enforces server/client boundary prefixes, masks sensitive values in diagnostics, and emits structured diff tables against target environments.

03 // Interactive Preview

Explore how EnvGuard behaves

Client Sandbox
Inspect target:
DATABASE_URLserver
TLS enforced (sslmode=require)
NEXT_PUBLIC_API_SECRETpublic
Blocked: server-only secret uses NEXT_PUBLIC_ prefix
WEBHOOK_SECRETserver
High-entropy secret verified
04 // Key Capabilities
  • Strict server vs. public variable boundary verification
  • Automated `.env.example` synchronization and drift detection
  • Redacted diagnostic reports safe to print in CI build logs
  • Monorepo workspace inheritance for shared and service-specific keys
05 // Open Contribution Areas

Engineers interested in shaping or co-maintaining EnvGuard can jump into these targeted workstreams:

  • Provider adapters for Vault, AWS SSM, and Doppler dry-run checks
  • Pre-commit secret entropy scanner integration
  • RFC review for multi-runtime edge compatibility