f:=set.NewFlagSet("Vault Credential Store Options")
for_,name:=rangeflagsVaultMap[c.Func]{
switchname{
caseaddressFlagName:
f.StringVar(&base.StringVar{
Name:addressFlagName,
Target:&c.flagAddress,
Usage:"The address of the Vault server. This should be a complete URL such as https://127.0.0.1:8200",
})
casenamespaceFlagName:
f.StringVar(&base.StringVar{
Name:namespaceFlagName,
Target:&c.flagNamespace,
Usage:"The vault namespace the store should use.",
})
casevaultCaCertFlagName:
f.StringVar(&base.StringVar{
Name:vaultCaCertFlagName,
Target:&c.flagCaCert,
Usage:"The CA Cert to use when connecting to vault. This can be the value itself, refer to a file on disk (file://) from which the value will be read, or an env var (env://) from which the value will be read.",
})
casetlsServerNameFlagName:
f.StringVar(&base.StringVar{
Name:tlsServerNameFlagName,
Target:&c.flagTlsServerName,
Usage:`Name to use as the SNI host when connecting via TLS.`,
})
casetlsSkipVerifyFlagName:
f.BoolVar(&base.BoolVar{
Name:tlsSkipVerifyFlagName,
Target:&c.flagTlsSkipVerify,
Usage:"Whether to skip tls verification.",
})
casevaultTokenFlagName:
f.StringVar(&base.StringVar{
Name:vaultTokenFlagName,
Target:&c.flagVaultToken,
Usage:"The vault token to use when boundary connects to vault for this store.",
})
caseclientCertificateFlagName:
f.StringVar(&base.StringVar{
Name:clientCertificateFlagName,
Target:&c.flagClientCert,
Usage:"The client certificate to use when boundary connects to vault for this store. This can be the value itself, refer to a file on disk (file://) from which the value will be read, or an env var (env://) from which the value will be read.",
})
caseclientCertificateKeyFlagName:
f.StringVar(&base.StringVar{
Name:clientCertificateKeyFlagName,
Target:&c.flagClientCertKey,
Usage:`The client certificate's private key to use when boundary connects to vault for this store. This can be the value itself, refer to a file on disk (file://) from which the value will be read, or an env var (env://) from which the value will be read.`,