-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code that relies on gRPC metadata formatting should be fixed #18303
Comments
One trivial fix would be forcing the Go builtin formatting for the raw, underlying return fmt.Sprint(map[string][]string(md)) |
Thanks @dfawley for raising this ticket. We should raise it long time ago. Please read clarification below In case anyone gets confused.
|
It's exactly the reason why #18303 (comment) can resolve this issue. |
@mohamedawnallah Please update changelog for both 3.5 and 3.4. thx |
@ahrtr Sounds good! Updated the change log for releases |
Thanks. Actually one PR should be good, there is no need to raise two separate PRs to update changelog. But not a big problem, so I won't insist on it. |
Thanks for the clarification! Combining into a single PR makes sense. I'll follow that approach in the future. Thanks for the flexibility on this one! |
All done! Thanks @mohamedawnallah and @dfawley |
Thank you for the quick fixes! |
Bug report criteria
What happened?
This code:
etcd/client/v3/watch.go
Lines 1038 to 1043 in 21e5876
expects consistent ordering from gRPC as well as expecting all metadata to be included.
However, metadata can contain PII, so we would like to change gRPC's behavior to not print any potential PII. grpc/grpc-go#7395
What did you expect to happen?
Code correctness to not rely upon gRPC's
metadata.MD.String
method.How can we reproduce it (as minimally and precisely as possible)?
Look at the code.
Anything else we need to know?
No response
Etcd version (please run commands below)
master
Etcd configuration (command line flags or environment variables)
No response
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: