micro/config
ben-toogood 09ec20fded
runtime: provide credentials to services (#1817)
* runtime: inject credentials into service

* util/auth: self generate accounts (needed for jwt)

* runtime/kubernetes: add logging for creds

* runtime/kubernetes: serialize secret name

* runtime/kubernetes: remove unused code

* runtime/kubernetes: base64 encode secret

* runtime/kubernetes: remove metadata from secret

* util/kubernetes/client: omit empty secret metadata

* util/kubernetes/client: fix secret template

* util/kubernetes/client: fix secrets

* web: update auth util

* util/auth: fix missing arg

* extend token expiry

* extend token expiry
2020-07-10 16:25:46 +01:00
..
cmd runtime: provide credentials to services (#1817) 2020-07-10 16:25:46 +01:00
encoder fix import paths for v2 release 2020-01-30 14:44:40 +03:00
loader Fix config watch (#1670) 2020-06-16 17:10:52 +01:00
reader make environment variable interpolation preprocessor optional (#1715) 2020-07-06 20:13:35 +01:00
secrets rename Codec to Secrets (#1581) 2020-04-27 14:57:57 +01:00
source config/source/service: change default namespace to micro (#1798) 2020-07-07 08:19:52 +01:00
config.go Add options to config (#1450) 2020-03-31 17:13:21 +01:00
default_test.go Fix config watch (#1670) 2020-06-16 17:10:52 +01:00
default.go config: use configured reader by default (#1717) 2020-06-19 08:49:30 +01:00
options.go fix import paths for v2 release 2020-01-30 14:44:40 +03:00
README.md remove some readmes 2019-07-04 11:15:54 +01:00
value.go fix import paths for v2 release 2020-01-30 14:44:40 +03:00

Config GoDoc

Config is a pluggable dynamic config package

Most config in applications are statically configured or include complex logic to load from multiple sources. Go Config makes this easy, pluggable and mergeable. You'll never have to deal with config in the same way again.

Features

  • Dynamic Loading - Load configuration from multiple source as and when needed. Go Config manages watching config sources in the background and automatically merges and updates an in memory view.

  • Pluggable Sources - Choose from any number of sources to load and merge config. The backend source is abstracted away into a standard format consumed internally and decoded via encoders. Sources can be env vars, flags, file, etcd, k8s configmap, etc.

  • Mergeable Config - If you specify multiple sources of config, regardless of format, they will be merged and presented in a single view. This massively simplifies priority order loading and changes based on environment.

  • Observe Changes - Optionally watch the config for changes to specific values. Hot reload your app using Go Config's watcher. You don't have to handle ad-hoc hup reloading or whatever else, just keep reading the config and watch for changes if you need to be notified.

  • Sane Defaults - In case config loads badly or is completely wiped away for some unknown reason, you can specify fallback values when accessing any config values directly. This ensures you'll always be reading some sane default in the event of a problem.

Getting Started

For detailed information or architecture, installation and general usage see the docs