Skip to content
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

xds: Ignore application_protocols field for now #4115

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

easwars
Copy link
Contributor

@easwars easwars commented Dec 16, 2020

No description provided.

@easwars
Copy link
Contributor Author

easwars commented Dec 16, 2020

There seems to be ongoing discussions about what exactly would be sent down in this field by the control plane. So, all three languages have decided to not check this field for now, and once the discussions yield some decisions we will go ahead and implement required checks.

fcs := lis.GetFilterChains()
if n := len(fcs); n != 1 {
return nil, fmt.Errorf("xds: filter chains count in LDS response does not match expected. Got %d, want 1", n)
}
fc := fcs[0]
aps := fc.GetFilterChainMatch().GetApplicationProtocols()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought: would it make sense to leave a comment here?
Thinking probably no? Since there are plenty fields that we don't check. And when a decision is made, we will come back and add the required check anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bug is open where the discussion is happening. So, once the decision is made, I think all three languages will come back and implement the decision. So, I'm ok not adding a comment here. Thanks.

@easwars easwars merged commit 644d506 into grpc:master Dec 16, 2020
@easwars easwars deleted the managed_mtls branch December 16, 2020 22:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants