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

signature has been modified #132

Closed
santiagoesteva opened this issue May 19, 2021 · 15 comments
Closed

signature has been modified #132

santiagoesteva opened this issue May 19, 2021 · 15 comments

Comments

@santiagoesteva
Copy link

I have docker based grana image which was working fine till this week.
Now I'm getting

lvl=warn msg="Some plugins failed to load" logger=plugins errors="[plugin \"grafana-github-datasource\"'s signature has been modified]

Is this something generated by a change in this module or is it related to Grafana?

@kminehart
Copy link
Contributor

Out of curiosity, what version of the docker image, and what environment variables?

@santiagoesteva
Copy link
Author

santiagoesteva commented May 19, 2021

Dockerfile

FROM grafana/grafana

ENV GF_AUTH_DISABLE_LOGIN_FORM "true"
ENV GF_AUTH_ANONYMOUS_ENABLED "true"
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
ENV GF_INSTALL_PLUGINS="grafana-github-datasource"

ADD ./provisioning /etc/grafana/provisioning
ADD ./config/grafana.ini /etc/grafana/grafana.ini
ADD ./provisioning/dashboards /etc/grafana/dashboards

I've also tried adding

ENV GF_ALLOW_LOADING_UNSIGNED_PLUGINS="grafana-github-datasource"

And I've also tried
FROM grafana/grafana:master

@kminehart
Copy link
Contributor

ok. Pretty sure this is both related to the release we've done recently and the fact that grafana has been getting more strict about matching the signature with what's in the plugin's zip file. I'll try to get this fixed ASAP.

@kminehart
Copy link
Contributor

I tried copying your exact docker file (minus the ADD directives) and I'm not able to reproduce this at all. I tried copying the build zip file from Drone, the release from grafana.com, and the github release artifacts and none of them are giving me the same error message.

@kminehart
Copy link
Contributor

kminehart commented May 19, 2021

Could you check your log file and see if it mentions what files were not found that were in the manifest?

Also, if you're trying to use the lastest grafana, since you mentioned master, master has been renamed to main.

@santiagoesteva
Copy link
Author

Looking at the logs I can see a log entry for missing files.

"grafana | t=2021-05-19T15:15:49+0000 lvl=warn msg="The following files were not included in the signature" logger=plugins plugin=grafana-github-datasource files=[gfx_github_linux_arm64]"

@kminehart
Copy link
Contributor

kminehart commented May 19, 2021

ahh that must be why I didn't see the error. What OS / CPU architecture are you running on? Not that it matters since it's docker. that definitely helps though, i was looking at the linux_amd64 release.

@santiagoesteva
Copy link
Author

Im running in a MacBook, Catalina version 10.15.7, Docker version 20.10.5, build 55c4c88

@santiagoesteva
Copy link
Author

@kminehart any advice or tips on how to solve this would be highly appreciated. thank you!

@santiagoesteva
Copy link
Author

@kminehart Should I open a different issue for the missing files?

@kminehart
Copy link
Contributor

No this is probably sufficient. I looked at the ARM release and everything looked fine but... being on a linux desktop i don't really have a way to test this... And we're in the middle of a release so getting someone to help me atm is a bit tough.

I'll keep looking at it if I have time. I don't think it's breaking because of anything you've done. I'll keep asking around.

@kminehart
Copy link
Contributor

Apparently Mac OS might have purged the executable from the zip file?

Can you check the zip file that was downloaded and see if all of the files are there?

@kminehart
Copy link
Contributor

Also, could you try running this in the running container (without the GF_INSTALL_PLUGINS environment variable)

grafana-cli --debug plugins install grafana-github-datasource

To get into the running container you need to run docker exec -it {container_id} /bin/sh

@cletter7
Copy link
Contributor

Hi @santiagoesteva is the issue still occurring for you?

@sesteva
Copy link

sesteva commented Jan 26, 2023

Hi. Some time later , I had to jump on other things and I don't have such setup anymore. I would not know if this is still going on.
From my side , please close the issue. Thank you for following up.

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

4 participants