Go Plugin middleware access

I’m working on a custom auth plugin (auth_check) in Go and I’m wondering if there is any way to access base middleware functions (e.g. to read existing keys, apply policies, etc.) or if those have to be reimplemented in custom plugins? (So far, any way I’ve tried to get access to that info has yielded compile or plugin load issues and I’m trying to figure out if I’m just barking up the wrong tree/this is intentionally disallowed.)

I found this post, but that’s from 8 years ago and seems to be about JS.

Hi! Plugins which are able to override such low level functions not possible, but thats smth we had in backlog. You can read the keys actually, you can see example here custom-plugin-examples/plugins/go-connect-to-redis/ConnectToRedis.go at master · TykTechnologies/custom-plugin-examples · GitHub

If you post some details of your use-case, I can try to help more.

1 Like