TCPIngress is a Kong custom resource used to route TCP connections to backend services through the ingress layer. It is useful when applications need non-HTTP exposure, such as database or cache traffic, and the team must map external ports to specific service ports in the cluster.
What TCPIngress Is Responsible For
TCPIngress is the Kubernetes-layer routing object that lets a platform expose non-HTTP TCP traffic through Kong and send it to the right backend service. The practical job is to translate an external listener, usually a port, into a specific in-cluster destination without forcing the application to speak HTTP.
That makes it a traffic-shaping and exposure control, not an application protocol feature. It is typically used where the service is already listening on TCP, such as databases, caches, or other long-lived socket-based services, and where operators need a clean ingress path rather than a direct node or pod exposure.
How TCP Routing Differs From HTTP Ingress
TCPIngress exists because HTTP ingress rules are not sufficient for raw TCP transport. HTTP routing can inspect hosts, paths, and headers; TCP routing usually cannot, so the decision is made earlier and more simply, based on listener and port mapping.
That difference matters operationally. With TCP, the ingress layer is usually making a coarse routing decision, then forwarding the connection unchanged to the backend. The upside is broad protocol support. The trade-off is that the platform has less visibility into application semantics, so controls must come from network policy, backend hardening, and careful port exposure rather than from URL-level filtering.
For teams designing Kubernetes networking, the key question is not “Can Kong route it?” but “Should this workload be reachable on a TCP port at all, and from where?”
Security Implications of TCP Exposure
TCPIngress can narrow exposure by centralising access through a managed ingress layer, but it can also widen the attack surface if teams publish backend ports too broadly or assume the ingress object itself provides application security. A TCP route that is meant for an internal dependency can become an externally reachable service if routing, service selection, or network boundaries are misconfigured.
Because TCP traffic is often stateful and less inspectable than HTTP, weak segmentation is easier to miss. That makes the surrounding controls, such as network policy, service permissions, backend authentication, and transport encryption, especially important when the ingress layer is used to front sensitive systems.
For a broader control lens on access, configuration, and identity-bearing secrets that often sit behind these services, the NIST SP 800-53 Rev 5 Security and Privacy Controls remains a strong baseline, and Kong-style routing should be treated as one layer within that control set.
Where TCPIngress Fits in Platform Operations
TCPIngress is most useful when platform teams need a standard way to publish non-HTTP workloads without bypassing the cluster ingress path. It is a routing construct, but in practice it also becomes part of service ownership, because the port mapping defines who can reach a backend, from which entry point, and under what network assumptions.
That is why TCPIngress often sits alongside broader service exposure and supply-chain decisions. If the backend is a database, cache, or other shared platform service, the routing rule should be reviewed as part of the service's trust boundary, not as a standalone network convenience.
Where the deployment model depends on non-human workload access or secret-bearing backend connections, the operational pattern overlaps with the issues covered in SPIFFE workload identity specification and with secret-handling guidance in OWASP Cheat Sheet Series, especially when backend authentication is not provided by the ingress object itself.
What Practitioners Should Verify Before Using It
Common misunderstanding: TCPIngress does not make a TCP service secure by itself. It only defines how traffic is forwarded. If the backend service lacks authentication, encryption, or source restrictions, the ingress rule can simply make insecure exposure easier to reach.
Governance implication: Teams should treat each TCP route as an approved exposure path with an owner, a port, a backend service, and a reviewable purpose. That is especially important where the same cluster hosts multiple stateful services and port mappings can be copied or reused without re-evaluating risk.
Why practitioners should care: TCP exposure is often less visible than HTTP exposure, which makes drift, undocumented listeners, and accidental publication easier to miss. A clear inventory of TCPIngress objects helps distinguish intended service entry points from accidental ones, and that is a basic prerequisite for reliable operations.
For implementation context on non-HTTP service exposure and ingress-side route design, OWASP API Security Top 10 is useful mainly as a reminder that exposed interfaces need explicit control, even when the transport is not HTTP.
Practitioner takeaway: Use TCPIngress as a routing tool, but validate it as an exposure decision, because the security posture is determined by the backend controls and network boundaries around it.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC — Identity Management, Authentication and Access Control | TCPIngress governs who can reach a backend service through a published port. |
| Recommendation — Restrict TCPIngress routes to approved access paths and enforce least-privilege exposure. | ||
| CIS Controls v8 | Control 4 — Secure Configuration of Enterprise Assets and Software | TCPIngress is a configuration object that materially changes service exposure. |
| Control 6 — Access Control Management | Port-to-service mapping determines which systems are reachable and by whom. | |
| Control 8 — Audit Log Management | TCPIngress changes should be visible because they alter external exposure paths. | |
| Recommendation — Review TCPIngress objects as configuration assets and remove unnecessary published ports. Limit TCPIngress reachability to authorized users, networks, and service consumers. Log and review TCPIngress creation and modification events for unauthorized exposure changes. | ||
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org