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 not implement when run "proxy" with --filter JWT:jwt.so:jwt.json #84

Closed
zloss opened this issue Jun 27, 2018 · 2 comments
Closed

Comments

@zloss
Copy link

zloss commented Jun 27, 2018

when I run "./proxy --addr=0.0.0.0:80 --addr-rpc=0.0.0.0:9091
--filter JWT:jwt.so:jwt.json
--addr-store=etcd://127.0.0.1:2379 --namespace=product"
I got an error like " plugin not implemented".
After googling the issue, I found that "golang/go#19569"
plugin: requires CGO_ENABLED=1
but in the release.sh , CGO_ENABLED was set to 0 by default.

@zhangxu19830126
Copy link
Member

zhangxu19830126 commented Jun 27, 2018

If you want to use custom filter, you need to build gateway by your self. Because:

  1. when build a go project using cgo, you can found that the binary depends on gcc and some .so files if you using ldd to check, it was unfriendly to containerization.
  2. you must be sure the env of gateway compile, plugin compile and the docker images are same.
  3. the release.sh is used for build docker images.

@zloss
Copy link
Author

zloss commented Jun 27, 2018

Thanks fr reply. Maybe I should pack the JWT plugin as an internal filter , then I can build the proxy without CGO.

@zloss zloss closed this as completed Jun 27, 2018
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

2 participants