-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[tls] Add an extension point for TLS handshaker behavior. #12658
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
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
bc111ba
[tls] SslHandshakerImpl now takes an int argument
ambuc e3e8dbc
[tls] Move ssl_handshaker_impl to its own target
ambuc 5b718f4
SslHandshakerImpl construction is now a method of ContextConfig.
ambuc 779758a
[api] Add custom_listener_handshaker
ambuc 80a4d12
SslHandshakerImpl construction is now pluggable
ambuc a81686e
Add SslHandshakerImplForTest class and new :handshaker_test
ambuc ae2dd4e
[tls] Add requireCertificates() restriction
ambuc de92887
[misc] fix spelling issue
ambuc 11d01e3
[tls] Initialize |len| in handshaker_test.
ambuc cf1ddd0
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc 60d94a5
[tls] Expose connection(), not connectionState().
ambuc e12eadc
[tls] lowercase test helper methods
ambuc 770c5b0
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc 62874c2
[tls] requireCertificates should guard all certificate checks in Serv…
ambuc 399b473
[misc] Rename custom_listener_handshaker to custom_handshaker
ambuc 5637755
[tls] Add HandshakerRequirements struct to enable/disable SSL calls i…
ambuc 3547b6b
[misc] Put SSL_CTX methods in backticks to pass spell check.
ambuc a981e60
[misc] Reword a sentence to pass check_spelling.
ambuc 9263258
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc 90454cc
[tls] Fix build failure for :handshaker_test.
ambuc 355de2e
[tls] Fix release failures in :handshaker_test.
ambuc f976151
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc 23a2685
[tls] Fix clang_tidy failures in :handshaker_test.
ambuc e9442e7
[tls] Redefine HandshakerCapabilities interface.
ambuc 231399e
[tls] Fix typo in handshaker_interface
ambuc 3c4644c
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc f0dfb8b
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc d787de2
[tls] Fix ifdef BORINGSSL_FIPS declaration
ambuc f6d91d6
[tls] s/verifies_certificates/verifies_peer_certificates/g
ambuc 3af7c51
[tls] Collapse sets_timeout and handles_session_tickets into handles_…
ambuc 7df8347
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc a625798
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc 9023817
[misc] Run fix_format.
ambuc c28d2fa
Merge branch 'master' of github.com:envoyproxy/envoy into custom-hand…
ambuc 16e366a
[tls] Better capability-protect cert loading
ambuc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
generated_api_shadow/envoy/extensions/transport_sockets/tls/v3/tls.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
generated_api_shadow/envoy/extensions/transport_sockets/tls/v4alpha/tls.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is way too fine-grained, IMHO (it should be expressed as a list of custom handshaker capabilities, e.g.
provides_certificates,handles_session_resumption,handles_peer_verification, rather than a list of BoringSSL functions to call, otherwise this will be extremely sensitive to any changes).But looking at this now, I think we should move all those configuration settings to the handshaker, otherwise it has no way to learn about them (e.g. which cipher suites it should use, etc.).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it makes sense to move these configurations to the handshaker, since no handshaker object exists during the instantiation of (for example)
ServerContextConfigImpl, which needs to know which of these features it needs to fulfill and which of these features it can leave to the handshaker itself. The current design, which exposes these features as a part of the factory which creates the handshaker, solves that problem.I agree that these permissions are too fine-grained and brittle. On that note, I've renamed this
HandshakerCapabilitiesand reversed the polarity of the booleans; handshaker implementations now get to declare that they have the capability to handle feature Foo natively; otherwise Envoy will handle it as normal. The default implementation obviously has none of these capabilities, and defers to Envoy.I have also renamed and condensed these capabilities somewhat to make them more general. PTAL.