Skip to content

Follow GitHub username 301s when checking plugin integrity #68

Open
@MikeW1901

Description

@MikeW1901

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

Following a username change for the maintainer of the DenyIP plugin, it caused Traefik to fail to load all plugins on next restart with:

unable to set up plugins environment: unable to check archive integrity of the plugin [github.com/kevtainer/denyip](http://github.com/kevtainer/denyip): plugin integrity check failed.

Whilst GitHub don't necessarily leave these 301s in place indefinitely, there is a period where it does so, and thus Traefik should follow these 301s when doing the plugin integrity check and output a warning that the URL has changed (Which can then be configured to be watched for in the user's monitoring tool of choice), so plugin users have time to update to a newer version of the plugin with the new URL.

Relevant issue on the plugin's GitHub repository.

What did you see instead?

Any IngressRoutes using any plugin as a middleware fail to apply successfully, causing applications to output a 404.

What version of Traefik are you using?

3.1.2

What is your environment & configuration?

Kubernetes on GKE.

Relevant (plugins) part of config (now corrected to the correct github URL):

- --experimental.plugins.jwt.moduleName=github.com/team-carepay/traefik-jwt-plugin
- --experimental.plugins.jwt.version=v0.0.11
- --experimental.plugins.traceid.modulename=github.com/trinnylondon/traefik-add-trace-id
- --experimental.plugins.traceid.version=v0.1.5
- --experimental.plugins.denyip.modulename=github.com/kvncrw/denyip
- --experimental.plugins.denyip.version=v1.1.0

If applicable, please paste the log output in DEBUG level

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug/possiblea possible bug that needs analysis before it is confirmed or fixed.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions