qmetrics.net

Varlock

Schema-driven .env validation and secret-safe configuration

Secrets ManagementDesktop/CLI app
Varlock screenshot

Varlock adds typed schemas to environment files so agents see structure without secret values. It validates config, scans for leaks, and loads secrets from external vault plugins.

Overview

Varlock targets teams that manage environment variables in .env files and need stronger validation and secrecy boundaries, especially when AI coding tools read project configuration. A declarative .env.schema describes names, types, validation rules, and documentation while keeping sensitive values out of what agents consume.

The CLI validates schemas, pretty-prints resolved configuration, and can inject validated variables into other processes via varlock run. Integrations cover common JavaScript frameworks and CI platforms, with optional drop-in loading instead of dotenv in many setups.

Security features include proactive leak scanning with varlock scan and git hooks, runtime log redaction, and a credential proxy mode that lets untrusted agents work with placeholders while real secrets are injected only at verified network boundaries.

Plugins pull secret material from backends such as 1Password, Infisical, AWS, Azure, GCP, HashiCorp Vault, and others. The @env-spec DSL attaches schema metadata to .env files using JSDoc-style comments.

Install options include npm in Node projects, Homebrew, curl-based installers, and a Docker guide for containerized workflows.

Key features

  • Typed .env.schema single source of truth
  • AI-safe schema exposure without secrets
  • varlock scan leak detection with git hooks
  • Runtime log redaction and leak prevention
  • Secret provider plugins for major vaults
  • varlock run injects env into child processes
  • Framework integrations for Vite, Next.js, Astro
  • Credential proxy for agent placeholder isolation

Use cases

  • Hardening .env files in AI-assisted development
  • Validating environment config in CI
  • Loading secrets from vaults into local dev
  • Preventing accidental secret commits
  • Running agents without exposing real API keys

Tags

Similar software

Vault

Secrets management, encryption as a service, and access control

Vault stores and controls access to secrets such as API keys, passwords, and certificates through a unified interface with audit logging.

  • Encrypted secret key-value storage
  • Dynamic secrets with leases
  • Encryption as a service
GoDocker, CLIDetails →
★ 36.6k⟳ todaySource-available

Infisical

Open-source security infrastructure for secrets, certs, and access

Infisical is a security infrastructure platform where teams manage application secrets, certificates, privileged access, and AI agent credentials in one place.

  • Centralized secrets across environments
  • Secret sync to cloud and CI platforms
  • Dynamic and scheduled secret rotation
TypeScriptWeb, Linux, macOS, DockerDetails →
★ 31.1k⟳ todayMIT · open core
Secrets ManagementSelf-hostable
Open Source Alternative to:BeyondTrust

SOPS

Structured secrets editor with multi-KMS encryption

SOPS encrypts YAML, JSON, ENV, INI, and binary files while leaving keys and structure readable. It wraps values with AES-256-GCM using session keys controlled by PGP, age, or cloud KMS identities.

  • Encrypt values while keys stay plain
  • YAML, JSON, ENV, INI, binary formats
  • Multi-identity decryption policies
GoDetails →
★ 24k⟳ 3 days agoMPL-2.0
Secrets ManagementDesktop/CLI app

Dotenvx

Encrypted dotenv workflows for apps and CI

dotenvx encrypts secrets in .env files, lets you commit ciphertext safely, and injects decrypted values at runtime via CLI, similar to dotenv with secp256k1 encryption.

  • Encrypt and decrypt .env values
  • Commit ciphertext with application code
  • Runtime injection via dotenvx run
JavaScriptCLI, DockerDetails →
★ 5.9k⟳ todayBSD-3-Clause
Secrets ManagementDesktop/CLI app

Berglas

Command-line and library secrets tool for Google Cloud

Berglas encrypts secrets with Cloud KMS, stores them in Cloud Storage or Secret Manager, and exposes CLI and runtime helpers for Google Cloud apps.

  • CLI create, grant, and access secrets
  • Cloud KMS plus Cloud Storage storage
  • Secret Manager interoperability
GomacOS, Docker, CLIDetails →
★ 1.3k⟳ 17 days agoApache-2.0
Secrets ManagementDesktop/CLI app

Phase

Open-source secrets manager for teams and AI agents

Phase helps teams and AI agents access, manage, and deploy application secrets across development, staging, and production with centralized control.

  • Multi-environment secret management
  • Dynamic secrets for AI agents
  • Role-based access control
TypeScriptCLIDetails →
★ 958⟳ 3 days agoMIT · open core