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

Max allowed header size too low in Broker Server #21

Open
ankitsultana opened this issue Jun 26, 2019 · 2 comments
Open

Max allowed header size too low in Broker Server #21

ankitsultana opened this issue Jun 26, 2019 · 2 comments

Comments

@ankitsultana
Copy link
Contributor

.addService(ServerInterceptors.intercept(new BrokerImpl(), new AuthorizationHeaderServerInterceptor(), new ClientAddressServerInterceptor()));

I suspect that the maximum header size is too low in the broker server. Currently, while creating the server we are not configuring maxInboundMetadataSize, so it defaults to 8 KB, which I think is too small, since the Kerberos token may exceed the 8 KB limit. (which is being added in the connector side as seen here)

I think it needs to be figured out what the appropriate size should be set to.

@jphalip
Copy link
Collaborator

jphalip commented Nov 22, 2019

Good catch. Do you recommend setting it to a specific value, or should we simply make it configurable?

@ankitsultana
Copy link
Contributor Author

IIRC I doubled it for my use case, however the actual required size wasn't much more than 8 KB— but we can may be make it configurable.

I am not quite sure how long a Kerberos token may be in size. Do you know if there is a spec regarding it? If not, I'd say it's best to make it configurable.

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

No branches or pull requests

2 participants