You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use the # character in grafana.ini configuration values.
Grafana currently treats # as a comment and breaks the configuration value.
I think this is down to how the ini package parses the configuration file (https://github.com/go-ini/ini). It is apparently possible to escape the # with Cfg, err := ini.LoadSources(ini.LoadOptions{SpaceBeforeInlineComment: true}, source) as shown in go-ini/ini#277.
Is there a possible workaround?
What did you expect to happen?
Inline comments with # are not parsed as a comment. This would allow me to use # in my configuration.
Did this work before?
I don't think so.
How do we reproduce it?
I had this problem with the following grafana.ini:
With the above role_attribute_path, no role was found for the user. I validated the JMESpath expression with multiple tools and it seems to be correct.
The following role_attribute_path worked as expected:
Took me way too long to figure this out, but I was successfully able to override the role_attribute_path with the GF_AUTH_OKTA_ROLE_ATTRIBUTE_PATH environment variable :)
What happened?
I would like to be able to use the
#
character ingrafana.ini
configuration values.Grafana currently treats
#
as a comment and breaks the configuration value.I think this is down to how the
ini
package parses the configuration file (https://github.com/go-ini/ini). It is apparently possible to escape the#
withCfg, err := ini.LoadSources(ini.LoadOptions{SpaceBeforeInlineComment: true}, source)
as shown in go-ini/ini#277.Is there a possible workaround?
What did you expect to happen?
Inline comments with
#
are not parsed as a comment. This would allow me to use#
in my configuration.Did this work before?
I don't think so.
How do we reproduce it?
I had this problem with the following
grafana.ini
:and this user information:
With the above
role_attribute_path
, no role was found for the user. I validated the JMESpath expression with multiple tools and it seems to be correct.The following
role_attribute_path
worked as expected:Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana:
10.2.3
OS:
linux
Grafana platform?
Kubernetes
Datasource(s)?
No response
The text was updated successfully, but these errors were encountered: