Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add password configuration to datasource settings #17

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sd2k
Copy link
Owner

@sd2k sd2k commented Sep 21, 2022

This currently bumps the minimum Grafana version to 9.1.0 through use of
SecretInput, which isn't ideal - perhaps we could copy/paste
that component in instead, or just write our own.

Closes #16.

This currently bumps the minimum Grafana version to 9.1.0 through use of
`SecretInput`, which isn't ideal - perhaps we could copy/paste
that component in instead, or just write our own.

Closes #16.
@sd2k sd2k force-pushed the add-password-support branch from 2a76870 to 93c25c9 Compare September 21, 2022 15:57
Copy link
Collaborator

@jeschkies jeschkies left a comment

Choose a reason for hiding this comment

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

Why would the secret filed not be ideal?

@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add a 'password' field to the datasource settings and pass this when connecting to Materialize. This is required for Materialize Cloud.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- Add a 'password' field to the datasource settings and pass this when connecting to Materialize. This is required for Materialize Cloud.
- Add a `password` field to the datasource settings and pass this when connecting to Materialize. This is required for Materialize Cloud.

@sd2k
Copy link
Owner Author

sd2k commented Oct 7, 2022

Why would the secret filed not be ideal?

Only because it's not available in Grafana < 9.1, so only people with Grafana 9.1.0 or higher could use the plugin. That's unlikely to be an issue though, I guess? I should definitely bump the minimum Grafana version in the plugin though...

@josharenberg
Copy link

This is definitely a needed addition for Materialize Cloud, however it would seem to make sense to add a cluster option as well to be able to default the cloud cluster to run the query against, thus not having to add a set cluster statement to every query.

@sd2k
Copy link
Owner Author

sd2k commented Oct 25, 2022

This is definitely a needed addition for Materialize Cloud, however it would seem to make sense to add a cluster option as well to be able to default the cloud cluster to run the query against, thus not having to add a set cluster statement to every query.

Ah, thanks for this. I'll make sure to add the cluster option too.

I'm still waiting for access to MZ Cloud which I need to test this PR though, not sure how long that'll take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for password protected Materialize databases
3 participants