credentials/tls: default GRPC_ENFORCE_ALPN_ENABLED to true#7535
credentials/tls: default GRPC_ENFORCE_ALPN_ENABLED to true#7535arjan-bal merged 3 commits intogrpc:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7535 +/- ##
==========================================
- Coverage 81.91% 81.75% -0.17%
==========================================
Files 361 361
Lines 27825 27825
==========================================
- Hits 22794 22748 -46
- Misses 3841 3869 +28
- Partials 1190 1208 +18
|
|
Let's wait a few weeks for this since we have a lot of other semi-risky things in flight right now. |
|
Waiting to fix internal users before submitting this PR. |
|
Small note on the release note:
Is the last sentence correct? Shouldn't it just read "The environment variable to revert this behavior will be removed in an upcoming release."? |
You're correct. It was a copy/paste error. Updated the release note |
CRDB at v1.68.0 fails to communicate with CRDB at v1.56.3 due to this check. This is strange, since CRDB uses gRPC throughout, and in both v1.56.3 and v1.68.0 uses `tls.NewConfig` which ensures that `NextProtos` always contains `h2`. gRPC introduced this check in grpc#7535. See: cockroachdb/cockroach#136278 (comment)
Related issue: #434
RELEASE NOTES:
GRPC_ENFORCE_ALPN_ENABLEDtofalse(case insensitive). Please file a bug if you encounter any issues with this behaviour. The environment variable to revert this behaviour will be removed in an upcoming release.