Skip to content

web: user-agent can be non-ASCII#8723

Open
jsha wants to merge 1 commit intomainfrom
filter-user-agent
Open

web: user-agent can be non-ASCII#8723
jsha wants to merge 1 commit intomainfrom
filter-user-agent

Conversation

@jsha
Copy link
Copy Markdown
Contributor

@jsha jsha commented Apr 20, 2026

We send the user-agent header through grpc as metadata. grpc-go by default validates metadata values as printable ASCII. We can override that assumption by naming our header with "-bin".

For a transition period, send and accept both header names. After deploy, we'll remove the old one.

Also, trim the User-Agent to a max size before logging, and add a unittest for the max size.

We send the user-agent header through grpc as metadata. grpc-go by default
validates metadata values as printable ASCII. We can override that assumption by
naming our header with "-bin".

For a transition period, send and accept both header names. After deploy, we'll
remove the old one.
@jsha jsha marked this pull request as ready for review April 20, 2026 23:47
@jsha jsha requested a review from a team as a code owner April 20, 2026 23:47
@jsha jsha requested a review from aarongable April 20, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant