sablierapp / sablier

Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
https://sablierapp.dev/
GNU Affero General Public License v3.0
1.36k stars 46 forks source link

Traefik not working - plugin integrity check failed #132

Closed KillrOfLife closed 1 year ago

KillrOfLife commented 1 year ago

Describe the bug Using this plugin (tested multiple versions v1.1.0 - v1.3.0-beta.3) gives an error in traefik:

~/Docker/test/sablier $ docker logs sablier_traefik_1
time="2023-03-09T11:24:42Z" level=info msg="Configuration loaded from flags."
time="2023-03-09T11:24:43Z" level=error msg="Plugins are disabled because an error has occurred." error="failed to check archive integrity of the plugin github.com/acouvreur/sablier: plugin integrity check failed"

Context

Expected behavior a working sablier and traffic

Additional context

This also didn't work using the example project. commands:

$ git clone https://github.com/acouvreur/sablier
$ docker ps
$ docker logs sablier_traefik_1

outputs:

CONTAINER ID   IMAGE                     COMMAND                  CREATED          STATUS         PORTS                  NAMES
3ad2ddf359e7   traefik:2.9.1             "/entrypoint.sh --ex…"   19 seconds ago   Up 8 seconds   0.0.0.0:8080->80/tcp   sablier_traefik_1
b55d4b91f2c2   acouvreur/sablier:1.1.0   "/etc/sablier/sablie…"   19 seconds ago   Up 9 seconds   10000/tcp              sablier_sablier_1
time="2023-03-09T11:24:42Z" level=info msg="Configuration loaded from flags."
time="2023-03-09T11:24:43Z" level=error msg="Plugins are disabled because an error has occurred." error="failed to check archive integrity of the plugin github.com/acouvreur/sablier: plugin integrity check failed"
time="2023-03-09T11:24:48Z" level=error msg="invalid middleware \"dynamic@docker\" configuration: invalid middleware type or middleware does not exist" entryPointName=http routerName=whoami-dynamic@file
time="2023-03-09T11:24:48Z" level=error msg="invalid middleware \"blocking@docker\" configuration: invalid middleware type or middleware does not exist" routerName=whoami-blocking@file entryPointName=http
time="2023-03-09T11:24:51Z" level=error msg="invalid middleware \"dynamic@docker\" configuration: invalid middleware type or middleware does not exist" entryPointName=http routerName=whoami-dynamic@file
time="2023-03-09T11:24:51Z" level=error msg="invalid middleware \"blocking@docker\" configuration: invalid middleware type or middleware does not exist" entryPointName=http routerName=whoami-blocking@file
acouvreur commented 1 year ago

I'm going to check this as soon as possible

ldez commented 1 year ago

Traefik maintainer here, the problem was related to a rewrite of the git history and it was proof that our integrity system works well. @acouvreur contacted me to help him on the topic, and now the problem is fixed.

The plugin system works like a Go proxy: a tag cannot be "moved" or "recreated". In all cases, a rewrite of the history of an OSS should never happen, the plugin problem is only one of the problems related to this kind of modification.

acouvreur commented 1 year ago

Thanks for your help @ldez everything should be working now!