Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jille/etcd-client-from-env
A library to construct etcd/clientv3 connection params from environment variables
https://github.com/jille/etcd-client-from-env
environment-variables etcd etcd-client
Last synced: 10 days ago
JSON representation
A library to construct etcd/clientv3 connection params from environment variables
- Host: GitHub
- URL: https://github.com/jille/etcd-client-from-env
- Owner: Jille
- License: bsd-2-clause
- Created: 2022-01-17T13:01:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T13:04:32.000Z (about 3 years ago)
- Last Synced: 2024-11-21T21:18:06.522Z (2 months ago)
- Topics: environment-variables, etcd, etcd-client
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# etcd-client-from-env
This library reads environment variables and returns a [clientv3.Config](https://pkg.go.dev/go.etcd.io/etcd/client/v3#Config).
It makes it easy to write tools against etcd that give the user control over how to connect to etcd.
It currently supports the following settings (but we welcome contributions). Each setting can also be passed by setting k_FILE (like ETCD_SERVER_CA_FILE) to a filename from where to read the value.
- ETCD_ENDPOINTS: A comma separated list of etcd endpoints. (required)
- ETCD_USERNAME: Username for etcd authentication.
- ETCD_PASSWORD: Password for etcd authentication.
- ETCD_USERNAME_AND_PASSWORD: username:password pair (separated by a colon) for etcd authentication.
- ETCD_INSECURE_SKIP_VERIFY: "true" to disable verification of the etcd server certificate (insecure).
- ETCD_SERVER_CA: PEM encoded CA certificate that has signed the server certificate.
- ETCD_CLIENT_CERT: PEM encoded certificate for CN authentication.
- ETCD_CLIENT_KEY: PEM encoded private key for CN authentication.All settings are optional except ETCD_ENDPOINTS. If you pass a username, you must also pass a password and vice versa. Same for a client cert/key.