-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raft (retry_join/CLI) leader-... options (file paths vs PEM data) #8753
Comments
Maybe "file options" should be provided for three certificate/key properties, for example: This would enable me to use a simple configuration in the OpenShift cluster, something like:
Instead of:
|
In the similar configuration - seal/transit (https://www.vaultproject.io/docs/configuration/seal/transit) "tls_ca_cert" parameter takes a path to the cert file. |
I ran into this as well. This function appears to be the culprit. The retry_join stanza is read but the file paths are never actually read by something like |
Looking at things, SetupTLSConfig and ClientTLSConfig really appear to be intended for the exact same thing, except one takes (in theory) byte arrays and one takes a conf map which holds things like tls_cert_file. The only user in the vault repo of ClientTLSConfig is raft, which uses it incorrectly. A slight refactor of both functions might be in order so we don't duplicate quite so much code, and so we actually handle the raft TLS settings correctly. |
Thanks for bringing this up! This should be addressed by #8894. |
Thanks for #8894 ! |
Describe the bug
As per
raft
'sretry_join
documentation - https://www.vaultproject.io/docs/configuration/storage/raft#retry_join-stanza -leader_...
options are supposedly path to CA/certificate/private-key filesThose must actually be the PEM data in order for the joining to work.
This also stands true for the
vault operator raft join
CLI command - https://www.vaultproject.io/docs/commands/operator/raft#join - although it's less clear those options are not path to files (although other TLS-related options are; e.g.-ca-cert
)Expected behavior
Ideally,
leader-...
options should be path to files (which makes it less cumbersome to specify multipleretry_join
stanzas in the configuration file).But if providing PEM data is the intended behavior, then the documentation should be corrected and maybe the CLI options explicited.
Environment:
vault status
): 1.4.0vault version
): 1.4.0The text was updated successfully, but these errors were encountered: