Expose ALPN configuration and negotiated protocol for TLS clients#6220
Open
MauScheff wants to merge 8 commits intounisonweb:trunkfrom
Open
Expose ALPN configuration and negotiated protocol for TLS clients#6220MauScheff wants to merge 8 commits intounisonweb:trunkfrom
MauScheff wants to merge 8 commits intounisonweb:trunkfrom
Conversation
b9d2f24 to
fb7c8dc
Compare
Member
|
is it possible that you could also add |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
What does this change accomplish and why?
Tls.ClientConfig.alpn.setTls.negotiatedProtocolthe handshake or inspect the negotiated protocol afterwards.
protocol from a TLS connection.
Include "before and after" examples if appropriate. (You can copy/paste screenshots directly into this
editor.)
List any Github issues that this PR closes, in [closing-issues-using-keywords](https://help.github.com/
en/enterprise/2.16/user/github/managing-your-work-on-github/closing-issues-using-keywords) format.
Implementation approach and notes
This adds two builtins through the existing TLS runtime path:
Tls.ClientConfig.alpn.setupdates the underlying Haskelltlsclient hooks to advertise the provided ALPNprotocol list.
Tls.negotiatedProtocolexposes the negotiated application protocol from the TLS context.The change updates:
unison-runtimeparser-typecheckerInteresting/controversial decisions
I split this into two small pieces of surface area:
The second is not strictly required for configuration, but it makes the behavior much easier to observe and
validate.
Test coverage
Have you included tests (which could be a transcript) for this change, or is it somehow covered by
existing tests?
appear after
builtins.merge.Would you recommend improving the test coverage (either as part of this PR or as a separate issue) or do
you think it’s adequate?
If you only tested by hand, because that's all that's practical to do for this change, mention that.
Include screenshots.
Loose ends
Final checklist
make it descriptive of the change itself, which may be different from the initial motivation to make the
change.
.cabalfiles, make sure thepackage.yamlfiles are up-to-date instead.