gRFC L7: Go Metadata API Change

122 views
Skip to first unread message

Doug Fawley

unread,
May 5, 2017, 12:14:03 PM5/5/17
to grpc.io
Discussion for https://github.com/grpc/proposal/pull/25 to change the Go Metadata API in a breaking way for security reasons.

We propose to remove the FromContext and NewContext functions from the metadata package.  These functions imply a context only has one set of metadata, but gRPC must distinguish between incoming (server received) and outgoing (client sending) metadata to avoid accidental forwarding.

This is a breaking change, and will require all users using metadata to inspect their code and update it appropriately.

Reply all
Reply to author
Forward
0 new messages