-
Notifications
You must be signed in to change notification settings - Fork 5
Data source: Disabling "TLS Client Authentication" for Loki does NOT clear "ServerName" #120
Comments
My recommendation would be to move the ServerName field outside of the "TLS Client Authentication" feature. It is unrelated anyway, and this way you only have to change the frontend. |
@grafana/plugins-platform-frontend Could you please remind me if you currently maintain the configuration components? |
@matyax I could be wrong but I'm under the impression that the Auth and the TLSClientAuth components are owned by @grafana/enterprise-datasources squad. 🤔 |
This is a shared component for data source configuration. Transferring to the appropriate repo. |
I will look into it, thanks for reporting. |
|
I can do that. |
What happened?
My data source stopped working when I changed URL, because it was expecting a different Server Name. I initially filed grafana/grafana#83844 but I know now the actual source.
When I unchecked "TLS Client Authentication" in the data source settings, it correctly cleared the client certificate and key from the configuration. But the ServerName stayed in the configuration, even though it is no longer visible anywhere in the Grafana settings page.
Because of that, when I later change my data source to a new URL, it wouldn't work because of that ServerName left over from long ago.
The only way to fix it is to enable "TLS Client Authentication" again (even though you don't need it), clear out the ServerName field that just appeared, and disable "TLS Client Authentication". That way the ServerName actually goes away.
What did you expect to happen?
If I disable an feature, making its configuration fields go away, those configuration fields don't remain set.
Did this work before?
Don't know
How do we reproduce it?
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 10.4.2
OS: Linux
Browser: Firefox
Grafana platform?
Docker
Datasource(s)?
Loki
The text was updated successfully, but these errors were encountered: