grpc / grpc-experiments

Experiments and proposals for gRPC features.
1.07k stars 182 forks source link

grpc-zpages: move xsrf protection to envoy proxy #311

Closed zpencer closed 6 years ago

zpencer commented 6 years ago

For requests where the content type begins with "application/grpc-web", envoy will check for a "gdebug-xsrf-token" cookie and header. The values must both exist, be non empty strings, and match. If this is not the case, return with a http 401.

It is the responsibility of the proxy and webapp to cooperate and never make RPCs that it should not make.