Skip to content
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

Added package for supporting traffic redirection #173

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

Ganeshrockz
Copy link
Contributor

Changes proposed in this PR:

  • Adds the redirecttraffic package that will support traffic redirection for transparent proxying requests in ECS.
  • Makes use of the iptables Consul SDK to configure the rules
  • Most of the exclusion scenarios are covered in detail in the RFC.

How I've tested this PR:

CI

How I expect reviewers to test this PR:

👀

Checklist:

  • Tests added
  • CHANGELOG entry added n/a

@Ganeshrockz Ganeshrockz requested review from a team and johnlanda and removed request for a team September 13, 2023 10:36
@Ganeshrockz Ganeshrockz temporarily deployed to dockerhub/hashicorpdev September 13, 2023 10:58 — with GitHub Actions Inactive
@Ganeshrockz Ganeshrockz requested a review from cthain September 13, 2023 11:40
@Ganeshrockz Ganeshrockz temporarily deployed to dockerhub/hashicorpdev September 13, 2023 11:52 — with GitHub Actions Inactive
@Ganeshrockz Ganeshrockz merged commit a7657d7 into ganeshrockz/t-proxy Sep 14, 2023
@Ganeshrockz Ganeshrockz deleted the net-5563/redirection-package branch September 14, 2023 05:25
Ganeshrockz added a commit that referenced this pull request Jan 18, 2024
* Schema to support Tproxy (#171)

* Add support to add Consul dataplane as a nameserver (#170)

* Add support to add Consul dataplane as a nameserver

* Fix comment

* Pass DNS parameters to dataplane config JSON (#172)

* Added package for supporting traffic redirection (#173)

* Added package for supporting traffic redirection

* Address comments

* Invoke traffic redirection modules from control plane (#174)

* Exclude control-plane health check port from traffic redirection (#175)

* Exclude control-plane health check port

* Add missed comment

* Update internal/redirecttraffic/redirect_traffic.go

Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>

---------

Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>

* Fix tests

* Add health sync UID as part of traffic redirection

* Add minor logs

* Fix everything

* Refactor

* Fix tests

* Try fix tests

* Change ACL bootstrap logic

* Bring back parallel tests

* Add more guard rails for ACLs

* ACL fix

* Add CHANGELOG

---------

Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants