Egress tunnel capture + agent identity#338
Draft
Nina Polshakova (npolshakova) wants to merge 1 commit into
Draft
Egress tunnel capture + agent identity#338Nina Polshakova (npolshakova) wants to merge 1 commit into
Nina Polshakova (npolshakova) wants to merge 1 commit into
Conversation
Signed-off-by: npolshakova <nina.polshakova@solo.io>
Comment on lines
+35
to
+36
| egressCaptureHTTPPort = uint16(15001) | ||
| egressCaptureHTTPSPort = uint16(15002) |
There was a problem hiding this comment.
Why do you need to capture HTTP vs HTTPS separately? A single listener could handle both and since SO_ORIGINAL_DST is used anyway to lookup the original port in deriveConnectAuthority.
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.
POC for #126
Based on design discussed in https://docs.google.com/document/d/1KmpIFu2gnqy9gp95wASgIo_vkJ_dA1DZckV8upET6bs/edit?usp=sharing
Summary:
This is a proof of concept egress capture path for actors. It introduces a reusable
internal/egresscapturepackage that:Hostor TLS SNI, and opens a CONNECT-style tunnel to a configured PEP address.The gVisor and microvm runtimes wire this into actor network setup by redirecting actor HTTP/HTTPS egress traffic to local capture ports. Agentgateway is used as the receiving proxy to prove that captured actor traffic reaches the tunnel endpoint.
Notes:
x-ate-actor-idx-ate-actor-templatex-ate-actor-template-namespacex-ate-original-destinationx-ate-connect-authority