|
|
@ -8,7 +8,17 @@ import { |
|
|
|
updateDatasourcePluginJsonDataOption, |
|
|
|
updateDatasourcePluginJsonDataOption, |
|
|
|
updateDatasourcePluginResetOption, |
|
|
|
updateDatasourcePluginResetOption, |
|
|
|
} from '@grafana/data'; |
|
|
|
} from '@grafana/data'; |
|
|
|
import { Alert, InlineSwitch, FieldSet, InlineField, InlineFieldRow, Input, Select, SecretInput } from '@grafana/ui'; |
|
|
|
import { |
|
|
|
|
|
|
|
Alert, |
|
|
|
|
|
|
|
InlineSwitch, |
|
|
|
|
|
|
|
FieldSet, |
|
|
|
|
|
|
|
InlineField, |
|
|
|
|
|
|
|
InlineFieldRow, |
|
|
|
|
|
|
|
Input, |
|
|
|
|
|
|
|
Select, |
|
|
|
|
|
|
|
SecretInput, |
|
|
|
|
|
|
|
Link, |
|
|
|
|
|
|
|
} from '@grafana/ui'; |
|
|
|
import { ConnectionLimits } from 'app/features/plugins/sql/components/configuration/ConnectionLimits'; |
|
|
|
import { ConnectionLimits } from 'app/features/plugins/sql/components/configuration/ConnectionLimits'; |
|
|
|
import { TLSSecretsConfig } from 'app/features/plugins/sql/components/configuration/TLSSecretsConfig'; |
|
|
|
import { TLSSecretsConfig } from 'app/features/plugins/sql/components/configuration/TLSSecretsConfig'; |
|
|
|
|
|
|
|
|
|
|
@ -280,7 +290,11 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P |
|
|
|
query. Grafana does not validate that queries are safe so queries can contain any SQL statement. For example, |
|
|
|
query. Grafana does not validate that queries are safe so queries can contain any SQL statement. For example, |
|
|
|
statements like <code>DELETE FROM user;</code> and <code>DROP TABLE user;</code> would be executed. To protect |
|
|
|
statements like <code>DELETE FROM user;</code> and <code>DROP TABLE user;</code> would be executed. To protect |
|
|
|
against this we <strong>Highly</strong> recommend you create a specific PostgreSQL user with restricted |
|
|
|
against this we <strong>Highly</strong> recommend you create a specific PostgreSQL user with restricted |
|
|
|
permissions. |
|
|
|
permissions. Check out the{' '} |
|
|
|
|
|
|
|
<Link rel="noreferrer" target="_blank" href="http://docs.grafana.org/features/datasources/postgres/"> |
|
|
|
|
|
|
|
PostgreSQL Data Source Docs |
|
|
|
|
|
|
|
</Link>{' '} |
|
|
|
|
|
|
|
for more information. |
|
|
|
</Alert> |
|
|
|
</Alert> |
|
|
|
</> |
|
|
|
</> |
|
|
|
); |
|
|
|
); |
|
|
|