-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
metadata: validate metadata keys and values #4886
Conversation
|
Based on #468 (comment), I'm guessing we also need to change client and server side header sending routines to perform this validation. @Patrick0308 Also, it would be better if a regex is used instead of manually checking every character in the metadata key/value. |
I wouldn't be certain of this. Regexes are probably going to be slower. We'd want to do some performance testing if this is done per-RPC (which it probably should). |
@easwars Yeah, I'll do it. I think regexes are slower than checking every character. But I'm not sure too. |
Looks like we also need this validation in @menghanl it seems to me this validation should just be private to the |
Moving this to a private package sounds good. There's no function does exactly what we want. |
Friendly ping. This is very close to being ready to merge; please let me know if you have any questions or need help with anything. |
@dfawley I'm back. In the last few days, I've been spending Chinese New Year. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the one small formatting nit. Thank you!
@dfawley PTAL |
validate grpc metadata to ensure grpc to follow http standards
close #468
RELEASE NOTES: