qmetrics.net

Berglas

Command-line and library secrets tool for Google Cloud

Secrets ManagementDesktop/CLI app
Berglas screenshot

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

Overview

Berglas is a command-line tool and Go library for storing and retrieving secrets on Google Cloud. Secrets are encrypted with Cloud KMS and stored in Cloud Storage, with an interoperable path for Secret Manager as well.

The CLI automates encrypting, decrypting, granting access, spawning child processes with resolved environment values, and bootstrapping buckets plus KMS keys. Library usage can replace berglas:// environment references with decrypted values at process start.

Integrations cover App Engine Flex and Cloud Run via container entrypoints, Cloud Build with volume-mounted secrets, Kubernetes via a mutating webhook, and arbitrary processes wrapped with berglas exec. Go apps on App Engine Standard and Cloud Functions can import an auto package for reference resolution.

Cloud Storage storage uses per-secret envelope encryption with AES-256-GCM data keys and KMS-wrapped key encryption keys. Berglas is not an officially supported Google product but wraps both legacy Cloud Storage secrets and Secret Manager workflows.

Key features

  • CLI create, grant, and access secrets
  • Cloud KMS plus Cloud Storage storage
  • Secret Manager interoperability
  • berglas:// environment references
  • berglas exec for subprocess env injection
  • Bootstrap bucket and KMS setup
  • App Engine, Cloud Run, GKE hooks
  • Go library auto-parsing option

Use cases

  • Storing API keys on Google Cloud
  • Injecting secrets into Cloud Run jobs
  • Kubernetes pod secret mutation
  • Local dev with application default credentials
  • Managing IAM access to secret blobs

Tags

Similar software

HashiCorp 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.

★ 36.6k⟳ 2 days agoSource-available

Gitleaks

Command-line secret scanner for git repos and files

Gitleaks finds passwords, API keys, and tokens in git history, directories, files, or stdin. It uses configurable regex rules and fits into local workflows and CI.

★ 31.4k⟳ 1 month agoMIT
Secrets ManagementDesktop/CLI app

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.

★ 30.8k⟳ todayMIT · open core
Secrets ManagementSelf-hostable
Open Source Alternative to:Keeper

TruffleHog

Credential discovery, classification, and live verification scanner

TruffleHog scans repositories, filesystems, chats, and cloud storage for machine credentials. It classifies findings and can test whether secrets still work.

★ 29.7k⟳ 3 days agoAGPL-3.0
Secrets ManagementDesktop/CLI app

Age

Simple file encryption tool and format

age encrypts and decrypts files from the command line using compact keys and a documented format. It also ships as a Go library for building compatible tools.

★ 24.5k⟳ 3 months agoBSD-3-Clause
Secrets ManagementDesktop/CLI app

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.

★ 23.9k⟳ 4 days agoMPL-2.0
Secrets ManagementDesktop/CLI app