Best practice for configuring secrets

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • viper

    Go configuration with fangs

  • More details : https://github.com/spf13/viper

  • ff

    Flags-first package for configuration

  • Tho, its also very common to use flags as they add documentation. You can use a mix of both. Maybe something in the lines of https://github.com/peterbourgon/ff

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • sops

    Simple and flexible tool for managing secrets

  • if the secret should be versioned and shared and that passes the security requirements i have a good experience with: https://github.com/mozilla/sops and https://github.com/FiloSottile/age

  • age

    A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.

  • if the secret should be versioned and shared and that passes the security requirements i have a good experience with: https://github.com/mozilla/sops and https://github.com/FiloSottile/age

  • go-arg

    Struct-based argument parsing in Go

  • I use this: https://github.com/alexflint/go-arg and setting defaults for my local environment. So no need to keep a .env file.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts