router
router copied to clipboard
external Router extensions, e.g. via simple HTTP request/response format
Support external Router extensions (e.g. via a simple HTTP request/response format), so you can do any custom authn/n (or other processing) using an external network service (e.g. a sidecar in your k8s Pod, in the same availability zone as your router or anywhere on the network). External network extensions could be configured via the router.yaml.
This would allow you to create an external extension for the router in any language or framework that supports HTTP, or even to directly add an external Router extension handler to existing bespoke services that your Gateway or monograph might already be talking to today for things like authn/z. Going direct to an existing service would have extremely minimal performance overhead vs. what is otherwise done in a Gateway or monograph server today to integrate with bespoke services.
See related feedback in this community post
Related:
- https://github.com/apollographql/router/pull/1694