hashicorp / hashicorp/consul

agent/config: support secret values from environment variables

Open
#10,249 2 comments 3 reactions 0 assignees View on GitHub
theme/config type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

The agent configuration includes some secret values (agent tokens, tls certs, gossip encryption key). We require that most of these values be specified in the config file or command line args using `-hcl`. In some cases there are alternative workflows that allow specifying them via API.

Another option would be to support reading these values from environment variables. That would allow someone to keep the same workflow (simply start the agent process) without having to write these secrets to a disk. Environment variables probably work ok for tokens and the encryption key, but they might be too limited for specifying multiple TLS certificates.

Related Issues:
* #10150 - suggested encrypting the secrets in the config.
* #8306 - addresses the same problem, but suggests reading the values from another system instead of env vars.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.