Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

ClickHouse Database datasource plugin update to 2.3.1 #928

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

Slach
Copy link
Contributor

@Slach Slach commented Apr 23, 2021

## Breaking changes

* On latest Grafana 7.x releases, template variables SQL queries shall return only scalar types of values, see Altinity/clickhouse-grafana#328

## Enhancement:

* add support Apple M1 ;)
* switch to new grafana plugin Golang SDK, thanks to @bmanth60 and @valeriakononenko for help
* add BasicAuth support for alerts, see Altinity/clickhouse-grafana#267

## Fixes:

* fix github actions backend build
* fix UNION ALL parsing, see Altinity/clickhouse-grafana#319
* fix many issues with alerting
  * Altinity/clickhouse-grafana#305
  * Altinity/clickhouse-grafana#327
  * Altinity/clickhouse-grafana#334
  * Altinity/clickhouse-grafana#335

Signed-off-by: Eugene Klimov <eklimov@altinity.com>
@Slach
Copy link
Contributor Author

Slach commented May 25, 2021

@marcusolsson could you look to this PR ?
why PR still not merged? why process so complicated and continue more than 1 month?

@daniellee daniellee self-requested a review May 31, 2021 20:27
@daniellee daniellee self-assigned this May 31, 2021
@daniellee
Copy link
Contributor

I have a question about the Yandex.Cloud authorization headers. The X-ClickHouse-Key field is saved in jsonData (clear text) and it is easy to see the value for it in the network request. Is this a credential that should be saved in secureJsonData and added as a header on the backend instead?

It is used on the backend here: https://github.com/Vertamedia/clickhouse-grafana/blob/master/pkg/client.go#L52 but also on the frontend: https://github.com/Vertamedia/clickhouse-grafana/blob/master/src/datasource.ts#L84

@Slach
Copy link
Contributor Author

Slach commented Jun 1, 2021

@daniellee I can prepare secureJson PR with different release
is it required to merge PR?

@daniellee
Copy link
Contributor

Sounds like a plan as this is not part of this change and was introduced a long time ago. Will merge this and then you can follow up with the fix.

@Slach
Copy link
Contributor Author

Slach commented Jun 2, 2021

@daniellee thanks a lot, I promise a next release will try to use secureJSON for X-Auth-Key and X-ClickHouse-User on frontend and backend part

Copy link
Contributor

@daniellee daniellee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of changes in this release. The new authentication changes look good. While going through the code noticed that the frontend does not handle the Yandex API key in a secure way and that will need to be fixed in the near future.

@daniellee daniellee merged commit 01acbf8 into grafana:master Jun 2, 2021
natoscott pushed a commit to natoscott/grafana-plugin-repository that referenced this pull request Jul 12, 2021
## Breaking changes

* On latest Grafana 7.x releases, template variables SQL queries shall return only scalar types of values, see Altinity/clickhouse-grafana#328

## Enhancement:

* add support Apple M1 ;)
* switch to new grafana plugin Golang SDK, thanks to @bmanth60 and @valeriakononenko for help
* add BasicAuth support for alerts, see Altinity/clickhouse-grafana#267

## Fixes:

* fix github actions backend build
* fix UNION ALL parsing, see Altinity/clickhouse-grafana#319
* fix many issues with alerting
  * Altinity/clickhouse-grafana#305
  * Altinity/clickhouse-grafana#327
  * Altinity/clickhouse-grafana#334
  * Altinity/clickhouse-grafana#335

Signed-off-by: Eugene Klimov <eklimov@altinity.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/datasource Categorizes the submission as a data source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants