Best practice for configuring secrets

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

Our great sponsors
  • JetBrains - Developer Ecosystem Survey 2022
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • 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

  • JetBrains

    Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.

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

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