News for hackers. Stuff that matters.
Re:Why Segment Chose Go, gRPC, and Envoy to Build Their New ... by ipsin on Saturday December 15, 2018 @08:52AM (#18688374)
I'm curious how you're doing authorization in Envoy. Is it a JWT-based httpfilter?
Re:Why Segment Chose Go, gRPC, and Envoy to Build Their New ... by nzoschke on Saturday December 15, 2018 @01:12PM (#18689547)
OP here.

We use the envoy authz filter.

For every incoming request envoy first calls out to a custom auth check service with all the request metadata like path and http headers.

The auth service can return a “fail” response which indicates to not forward the original request any further. Or it can return a “pass” response plus data to add to the original request headers.

Docs here:

https://www.envoyproxy.io/docs/envoy/latest/configuration/ht...

Re:Why Segment Chose Go, gRPC, and Envoy to Build Their New ... by buckhx on Saturday December 15, 2018 @09:16AM (#18688455)
Can't speak for OP, but we have a similar stack and use middleware on the actual services since they need to decide which permissions are needed instead of centralized auth at the gateway level.
Re:Why Segment Chose Go, gRPC, and Envoy to Build Their New ... by SirMonkey on Saturday December 15, 2018 @01:24PM (#18689604)
The funny thing with envoy is that you can take the source of the authz service and build your own auth-mechanism for other protocols. We are doing that for MQTT