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

feat(ip-restriction): Add TCP support #10243

Closed
wants to merge 1 commit into from
Closed

feat(ip-restriction): Add TCP support #10243

wants to merge 1 commit into from

Conversation

scrudge
Copy link
Contributor

@scrudge scrudge commented Feb 6, 2023

Summary

This change adds TCP support to the ip-restriction plugin by implementing the Stream module's preread function.

When a TCP connection is rejected due to IP restriction rules, a JSON error response is written to the stream and the connection is closed.

Full changelog

  • Add protocols to schema: "tcp", "tls", "grpc", "grpcs"
  • Implement preread function
  • Make handler logic generic to be shared by HTTP and TCP

Issue reference

Fix #6679

@merusso
Copy link

merusso commented Feb 18, 2023

Why was this closed?

curiositycasualty pushed a commit that referenced this pull request Oct 15, 2024
Bumps [@kong/runtime-groups-api-client](https://github.com/Kong/khcp/tree/HEAD/packages/khcp-api-client) from 0.1.2137 to 0.1.2154.
- [Commits](https://github.com/Kong/khcp/commits/HEAD/packages/khcp-api-client)

---
updated-dependencies:
- dependency-name: "@kong/runtime-groups-api-client"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hayk <[email protected]>
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.

IP Restriction at TCP Level.
2 participants