From 29eb1c114999fd9ff6b0bda3e9411b4eac5bb4b8 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 2 Jun 2021 11:00:54 -0400 Subject: [PATCH] InfluxDB: deprecate direct browser access in data source (#35105) (#35113) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * influxdb: deperacate direct browser-access * better docs-formatting Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> (cherry picked from commit 89fc92947c77420ec9c20180229a9a162c0c1055) Co-authored-by: Gábor Farkas --- docs/sources/datasources/influxdb/_index.md | 1 + .../datasource/influxdb/components/ConfigEditor.tsx | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/sources/datasources/influxdb/_index.md b/docs/sources/datasources/influxdb/_index.md index 7275c08b439..054ca156de6 100644 --- a/docs/sources/datasources/influxdb/_index.md +++ b/docs/sources/datasources/influxdb/_index.md @@ -33,6 +33,7 @@ Name | Description `Default` | Default data source means that it will be pre-selected for new panels. `URL` | The HTTP protocol, IP address and port of your InfluxDB API. InfluxDB API port is by default 8086. `Access` | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser. +**Note**: Browser access is deprecated and will be removed in a future release. `Whitelisted Cookies`| Cookies that will be forwarded to the data source. All other cookies will be deleted. `Database` | The ID of the bucket you want to query from, copied from the [Buckets page](https://docs.influxdata.com/influxdb/v2.0/organizations/buckets/view-buckets/) of the InfluxDB UI. `User` | The username you use to sign into InfluxDB. diff --git a/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx b/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx index 8721dfef83b..6baed92653d 100644 --- a/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx +++ b/public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx @@ -9,7 +9,7 @@ import { onUpdateDatasourceSecureJsonDataOption, updateDatasourcePluginJsonDataOption, } from '@grafana/data'; -import { DataSourceHttpSettings, InfoBox, InlineField, InlineFormLabel, LegacyForms } from '@grafana/ui'; +import { Alert, DataSourceHttpSettings, InfoBox, InlineField, InlineFormLabel, LegacyForms } from '@grafana/ui'; const { Select, Input, SecretFormField } = LegacyForms; import { InfluxOptions, InfluxSecureJsonData, InfluxVersion } from '../types'; @@ -279,6 +279,12 @@ export class ConfigEditor extends PureComponent { )} + {options.access === 'direct' && ( + + Browser access mode in the InfluxDB datasource is deprecated and will be removed in a future release. + + )} +