casbin / traefik-authz

Apache License 2.0
0 stars 1 forks source link

Create a Casbin plugin for Traefik #1

Open hsluoyz opened 2 years ago

hsluoyz commented 2 years ago

See similar: https://github.com/traefik/traefik/issues/593

hsluoyz commented 2 years ago

@closetool @tangyang9464

ddtmachado commented 2 years ago

Hey, I closed a few Auth related issues/PRs on Traefik and your linked PR was included.

Have you attempted to get it working as a plugin?

Let us know if you find any blockers

hsluoyz commented 2 years ago

@ddtmachado thanks for the reminders!

@JalinWang @imp2002 plz continue working on this issue. The previous work is: https://github.com/traefik/traefik/pull/8387

/cc @tangyang9464

JalinWang commented 2 years ago

It seems the current plugin schema is deprecated. Do I need to upload my code(the main part is already done)? FYI: "Traefik Pilot is being deprecated" of https://traefik.io/blog/announcing-traefik-proxy-2-8/

hsluoyz commented 2 years ago

@JalinWang you can make a PR to the traefik upstream.

ddtmachado commented 2 years ago

Hi @JalinWang, the plugin mechanism is not deprecated, just Pilot is being deprecated as we will launch a standalone plugin catalog that will be free to use and access without the requirement for a Pilot token or any other configuration change.

Development cycle of the plugin did not change so you can still follow the same docs.

JalinWang commented 2 years ago

Hi @JalinWang, the plugin mechanism is not deprecated, just Pilot is being deprecated as we will launch a standalone plugin catalog that will be free to use and access without the requirement for a Pilot token or any other configuration change.

Development cycle of the plugin did not change so you can still follow the same docs.

Thanks a lot for informing me. ❤ I kept on testing my code and it works well locally. However, it fails when loaded into traefik. Now it is narrowed down to a Yaegi-related issue after many attempts. Issue: https://github.com/traefik/yaegi/issues/1426 I'll appreciate it a lot if any help here.

image