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

plugin 'info8fcc-greptimedb-datasource' has an invalid signature #11

Open
coutouly opened this issue Dec 2, 2024 · 3 comments
Open

Comments

@coutouly
Copy link

coutouly commented Dec 2, 2024

can't install greptime db grafana plugin
even with
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=info8fcc-greptimedb-datasource

@sunchanglong
Copy link
Collaborator

sunchanglong commented Dec 18, 2024

hi @coutouly, sorry for late reply.
How did you installed the plugin? Using grafana cli or docker?
Does the error threw at installing time or running in grafana?

We have release the docker image for quick start, you can try this way.

docker pull greptime/grafana-greptimedb:latest
docker run -p 3000:3000 greptime/grafana-greptimedb:latest

@arikhi14
Copy link

arikhi14 commented Dec 29, 2024

I was recently running into a similar issue. Here are my findings.

  • My grafana setup was behind a subPath URL like https://dashboards.mycompany.com/grafana/
  • The MANIFEST.txt file in the plugin zip file has following contents
  "rootUrls": [
    "http://localhost:3000/"
  ]
  • The plugin is signed as a private plugin and expects the properties to match exactly the way they are listed in MANIFEST.txt
  • Note that the error you are getting is NOT saying that there is no signature. So, it is not exactly UNSIGNED. Its just that Grafana is looking at the MANIFEST.txt and finding Signature that does NOT exactly match the runtime conditions
  • We used docker to create a custom Grafana image and below is part of our custom Dockerfile:
FROM grafana/grafana:11.4.0-ubuntu
RUN grafana cli --pluginUrl https://github.com/GreptimeTeam/greptimedb-grafana-datasource/releases/latest/download/info8fcc-greptimedb-datasource.zip plugins install info8fcc-greptimedb-datasource
# Delete the MANIFEST.txt as it enforces a strict check for root_url in the
# signature which does not match with our requirements of serving from a subPath
RUN rm -f /var/lib/grafana/plugins/info8fcc-greptimedb-datasource/MANIFEST.txt

Perhaps the signature file should not specify the root url because people often run grafana through subPath options
Hope this helps

@sunchanglong
Copy link
Collaborator

sunchanglong commented Dec 31, 2024

Thank your feedback @arikhi14.
We have publish an unsigned version to solve the install problem.
please try this

you need to set grafana ini file to use unsiged plugin.

allow_loading_unsigned_plugins = info8fcc-greptimedb-datasource

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

No branches or pull requests

3 participants