Skip to content

Commit

Permalink
Add comments about optional base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhjp committed Aug 15, 2023
1 parent 0584c89 commit d50e787
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions subcommand/injector/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ type Specification struct {
VaultAddr string `split_words:"true"`

// VaultCACertBytes is the AGENT_INJECT_VAULT_CACERT_BYTES environment variable.
// Specifies the CA cert to trust for TLS with Vault.
// Specifies the CA cert to trust for TLS with Vault as a PEM-encoded
// certificate or bundle. The multi-line PEM contents may optionally be base64
// encoded to avoid line breaks.
VaultCACertBytes string `envconfig:"AGENT_INJECT_VAULT_CACERT_BYTES"`

// ProxyAddr is the AGENT_INJECT_PROXY_ADDR environment variable.
Expand Down Expand Up @@ -164,7 +166,8 @@ func (c *Command) init() {
c.flagSet.StringVar(&c.flagVaultService, "vault-address", "",
"Address of the Vault server.")
c.flagSet.StringVar(&c.flagVaultCACertBytes, "vault-cacert-bytes", "",
"CA certificate to trust for TLS with Vault, specified as a PEM-encoded certificate or bundle.")
"CA certificate to trust for TLS with Vault, specified as a PEM-encoded certificate or bundle. "+
"The multi-line PEM contents may optionally be base64 encoded to avoid line breaks.")
c.flagSet.StringVar(&c.flagProxyAddress, "proxy-address", "",
"HTTP proxy address used to talk to the Vault service.")
c.flagSet.StringVar(&c.flagVaultAuthType, "vault-auth-type", agent.DefaultVaultAuthType,
Expand Down

0 comments on commit d50e787

Please sign in to comment.