Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

envoy/lds: add support for inbound TCP proxying #2154

Merged
merged 3 commits into from
Dec 8, 2020

Conversation

shashankram
Copy link
Member

Description:
This change adds the plumbing necessary to be able to
proxy indbound TCP traffic for a service. Similar to
the inbound HTTP filter chain, a TCP filter chain
is adder per TCP port exposed on the service. This
is the first change in the series to support TCP traffic.
Subsequent changes will enable enforcing TCP port based
rules as a part of the RBAC policies.

Note that this change will not allow TCP clients to access
TCP based services yet because outbound TCP proxying with
TLS still needs to be implemented. This change does not
affect HTTP traffic.

Part of #1521

Affected area:

  • New Functionality [X]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [X]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [X]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests [ ]
  • CI System [ ]
  • Performance [ ]
  • Other [ ]

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    No

This change adds the plumbing necessary to be able to
proxy indbound TCP traffic for a service. Similar to
the inbound HTTP filter chain, a TCP filter chain
is adder per TCP port exposed on the service. This
is the first change in the series to support TCP traffic.
Subsequent changes will enable enforcing TCP port based
rules as a part of the RBAC policies.

Note that this change will not allow TCP clients to access
TCP based services yet because outbound TCP proxying with
TLS still needs to be implemented. This change does not
affect HTTP traffic.

Part of openservicemesh#1521

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
@shashankram shashankram requested a review from a team as a code owner December 7, 2020 20:59
@codecov-io
Copy link

codecov-io commented Dec 7, 2020

Codecov Report

Merging #2154 (b0da9cd) into main (2831822) will increase coverage by 0.12%.
The diff coverage is 73.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2154      +/-   ##
==========================================
+ Coverage   58.10%   58.23%   +0.12%     
==========================================
  Files         145      145              
  Lines        6075     6127      +52     
==========================================
+ Hits         3530     3568      +38     
- Misses       2542     2556      +14     
  Partials        3        3              
Impacted Files Coverage Δ
pkg/envoy/lds/inmesh.go 71.52% <73.58%> (+0.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2831822...b0da9cd. Read the comment docs.

Copy link
Contributor

@eduser25 eduser25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really nice, I only have one comment over stat name, otherwise lgtm

@shashankram shashankram merged commit c0410a8 into openservicemesh:main Dec 8, 2020
@shashankram shashankram deleted the inbound-tcp-v2 branch December 8, 2020 17:27
michelleN pushed a commit to michelleN/osm that referenced this pull request Dec 8, 2020
This change adds the plumbing necessary to be able to
proxy indbound TCP traffic for a service. Similar to
the inbound HTTP filter chain, a TCP filter chain
is adder per TCP port exposed on the service. This
is the first change in the series to support TCP traffic.
Subsequent changes will enable enforcing TCP port based
rules as a part of the RBAC policies.

Note that this change will not allow TCP clients to access
TCP based services yet because outbound TCP proxying with
TLS still needs to be implemented. This change does not
affect HTTP traffic.

Part of openservicemesh#1521

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants