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
LDAP configuration: paths to root CA cert files should contain spaces #53942
Comments
I'm not much of a Go dev, but it looks simple enough to handle - if you decide that adding a new config value is the way to go, I could give it a try and send out a PR :) |
@mgyongyosi can you assign me to this one? :) |
@cindy Thanks for your interest in fixing this 💯 . I assigned the issue to you. In case you need assistance feel free to reach out. :) |
#61288 this PR introduces a good standard to follow |
Closed? |
It's been fixed. When the certs' path contain spaces please enclose it with quotes. |
Thank you! |
What happened: LDAP configuration does not allow pointing to CA certs with spaces in the path. Grafana tries to split the provided path on spaces and load each space-separated path as a separate file. There's nothing in the config file or the associated struct that suggests this is happening.
What you expected to happen: Grafana loads the provided path without any splitting by spaces et al.
How to reproduce it (as minimally and precisely as possible):
root_ca_certs
to a path with spaces in it (for example/opt/certs/Nice Cert.crt
)/opt/certs/Nice
.Anything else we need to know?:
root_ca_certs: []string
config value would be the best, where each path from the TOML list gets used as is.Environment:
The text was updated successfully, but these errors were encountered: