-
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
auto-set ALPN when using GetConfigForClient #7709
Comments
@howardjohn could you clarify what did you expect and what did you see instead? We currently by default Enforce ALPN so clients and servers will now reject TLS connections that don't support ALPN. However, this can be disabled by setting the environment variable GRPC_ENFORCE_ALPN_ENABLED to false (case insensitive) |
When i setup a gRPC server with something like If I instead pass A server can workaround this by manually setting |
@howardjohn you are correct. We need to do the same modifications to config returned by |
The fix is expected be released as part of |
Use case(s) - what problem will this feature solve?
In grpc-go v67, the client will reject servers not advertising ALPN=h2.
Typically, gRPC will automatically set this on the tls.Config passed in on the serverside. However, when GetConfigForClient is used, it will not.
Proposed Solution
Make GetConfigForClient usage automatically set
alpn=h2
Alternatives Considered
Additional Context
Previous issue, stale-closed: #5814. Likely not a priority since it didn't hurt most users until the client's started denying
Popular projects broken by this:
grpc-go >= 1.67.0
withALPN
disabled siderolabs/talos#9463The text was updated successfully, but these errors were encountered: