Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Cfg
// contains filtered or unexported fields
}
Auth
func (*Auth) RequestHandler ¶
RequestHandler is reverse proxy middleware for checking calls made by the Grafana Elasticsearch datasource. The data source makes two type of calls. A GET call for index/_mapping and /_msearch calls for batching queries.
Each call is checked for an account prefixed index ACCOUNT-index and permission are verified using the name and password segments from BasicAuth as key name and key from the corresponding account. See: https://godoc.org/github.com/txn2/provision#AccessKey
Elasticsearch datasource documentation see: https://grafana.com/docs/features/datasources/elasticsearch/
Click to show internal directories.
Click to hide internal directories.