chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Play nice with authorization

Open bmorg opened this issue 9 years ago • 5 comments

When adding a source, the provided user seems to need admin privileges in order to not get an error.

Otherwise there will be a "Unable to connect to source" error displayed in both the host list and a host's graphs, which both seem to otherwise work just fine.

Specifically, a READ grant on the telegraf database should be more than enough for Chronograf to work.

bmorg avatar Feb 15 '17 19:02 bmorg

Hi @bmorg, thanks for writing in! Yes, I agree. We'll take a look at which queries are causing this problem. At the very least we should state what permissions the chronograf user needs (for example it would need to READ kapacitor).

goller avatar Feb 15 '17 19:02 goller

Thanks @goller! I for one haven't even gotten around to installing Kapacitor yet, so I don't have a kapacitor database.

bmorg avatar Feb 15 '17 19:02 bmorg

@bmorg we found out that SHOW DATABASES for a read-only user is a limitation of influxdb at the moment. However, @mark-rushakoff is writing support for SHOW DATABASES right now for InfluxDB 1.3.

goller avatar Feb 16 '17 16:02 goller

It's already merged in master of open source InfluxDB: https://github.com/influxdata/influxdb/pull/7974

mark-rushakoff avatar Feb 16 '17 16:02 mark-rushakoff

Fixed by InfluxDB 1.3

nhaugo avatar Mar 27 '17 21:03 nhaugo