All Projects → envkey → envkeygo

envkey / envkeygo

Licence: MIT License
EnvKey's official Go client library

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to envkeygo

envkey-ruby
EnvKey's official Ruby client library
Stars: ✭ 24 (-33.33%)
Mutual labels:  encryption, configuration, secret-management, secrets, environment-variables, configuration-management, devops-tools
Envkey App
Secure, human-friendly, cross-platform secrets and config.
Stars: ✭ 83 (+130.56%)
Mutual labels:  encryption, configuration, secret-management, secrets, configuration-management, devops-tools
envkey-python
EnvKey's python library. Protect API keys and credentials. Keep configuration in sync.
Stars: ✭ 24 (-33.33%)
Mutual labels:  configuration, secret-management, secrets, environment-variables, configuration-management, devops-tools
envkey-node
EnvKey's official Node.js client library
Stars: ✭ 46 (+27.78%)
Mutual labels:  configuration, secret-management, secrets, configuration-management, devops-tools
Dynaconf
Configuration Management for Python ⚙
Stars: ✭ 2,082 (+5683.33%)
Mutual labels:  configuration, environment-variables, configuration-management
Torus Cli
A secure, shared workspace for secrets
Stars: ✭ 611 (+1597.22%)
Mutual labels:  configuration, secrets, devops-tools
Node Convict
Featureful configuration management library for Node.js
Stars: ✭ 1,855 (+5052.78%)
Mutual labels:  configuration, environment-variables, configuration-management
Helm Secrets
DEPRECATED A helm plugin that help manage secrets with Git workflow and store them anywhere
Stars: ✭ 1,129 (+3036.11%)
Mutual labels:  encryption, secret-management, secrets
Fsconfig
FsConfig is a F# library for reading configuration data from environment variables and AppSettings with type safety.
Stars: ✭ 108 (+200%)
Mutual labels:  configuration, environment-variables, configuration-management
Fig
A minimalist Go configuration library
Stars: ✭ 142 (+294.44%)
Mutual labels:  configuration, environment-variables, configuration-management
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+138.89%)
Mutual labels:  configuration, environment-variables, configuration-management
superconfig
Access environment variables. Also includes presence validation, type coercion and default values.
Stars: ✭ 33 (-8.33%)
Mutual labels:  configuration, environment-variables, configuration-management
sitri
Sitri - powerful settings & configs for python
Stars: ✭ 20 (-44.44%)
Mutual labels:  configuration, environment-variables, configuration-management
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-44.44%)
Mutual labels:  configuration, environment-variables, configuration-management
Helm Secrets
Successor of zendesk/helm-secrets - A helm plugin that help manage secrets with Git workflow and store them anywhere
Stars: ✭ 165 (+358.33%)
Mutual labels:  encryption, secret-management, secrets
gconfigs
gConfigs - Config and Secret parser
Stars: ✭ 42 (+16.67%)
Mutual labels:  configuration, secrets, environment-variables
devops-notes
My technical documentation in the SRE / DevOps paradigm.
Stars: ✭ 19 (-47.22%)
Mutual labels:  configuration-management, devops-tools
arkenv
Type-safe Kotlin configuration by delegates
Stars: ✭ 15 (-58.33%)
Mutual labels:  configuration, environment-variables
goodconf
Transparently load variables from environment or JSON/YAML file.
Stars: ✭ 80 (+122.22%)
Mutual labels:  configuration, environment-variables
ngx-env
Easily inject environment variables into your Angular applications
Stars: ✭ 73 (+102.78%)
Mutual labels:  configuration, environment-variables

envkey-go

Integrate EnvKey with your Go projects to keep api keys, credentials, and other configuration securely and automatically in sync for developers and servers.

Installation

go get github.com/envkey/envkeygo

Usage

First, generate an ENVKEY in the EnvKey App. Then set ENVKEY=..., either in a gitignored .env file in the root of your project (in development) or in an environment variable (on servers).

Then load your EnvKey configuration in main.go:

// main.go
import (
  "os"
  _ "github.com/envkey/envkeygo"
)

// assuming you have GITHUB_TOKEN set in EnvKey
token := os.Getenv("GITHUB_TOKEN") // this will stay in sync

Overriding Vars

envkeygo will not overwrite existing environment variables or additional variables set in a .env file. This can be convenient for customizing environments that otherwise share the same configuration. You can also use sub-environments in the EnvKey App for this purpose.

Working Offline

envkeygo caches your encrypted config in development so that you can still use it while offline. Your config will still be available (though possibly not up-to-date) the next time you lose your internet connection. If you do have a connection available, envkeygo will always load the latest config. Your cached encrypted config is stored in $HOME/.envkey/cache

For caching purposes, this package assumes you're in development mode if a .env file exists in the root of your project.

x509 error / ca-certificates

On a stripped down OS like Alpine Linux, you may get an x509: certificate signed by unknown authority error when envkeygo attempts to load your config. envkey-fetch (which envkeygo wraps) tries to handle this by including its own set of trusted CAs via gocertifi, but if you're getting this error anyway, you can fix it by ensuring that the ca-certificates dependency is installed. On Alpine you'll want to run:

apk add --no-cache ca-certificates

Further Reading

For more on EnvKey in general:

Read the docs.

Read the integration quickstart.

Read the security and cryptography overview.

Need help? Have questions, feedback, or ideas?

Post an issue or email us: [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].