Merged
Conversation
TCP probes test raw socket connectivity to a host:port, filling the gap for non-HTTP services like databases and caches. Uses stdlib socket.create_connection — no new dependencies. Adds CLI command, runner integration, unit tests, E2E test manifest, K8s example, SOC2 boundary protection example, and documentation.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Deploying netchecks-docs with
|
| Latest commit: |
32a4bf5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://58987338.netchecks-docs.pages.dev |
| Branch Preview URL: | https://feat-tcp-probe.netchecks-docs.pages.dev |
Pull Request Test Coverage Report for Build 22689564324Details
💛 - Coveralls |
Validates that Cilium network policies actually enforce TCP egress restrictions. Applies a policy allowing only port 443 to the K8s API, then asserts that allowed connections succeed and blocked ports are dropped — testing real policy enforcement, not just reachability.
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.
Summary
type: tcpprobe that tests raw TCP socket connectivity to host:portsocket.create_connection— no new dependenciesconnected(bool) anderror(string/null) in probe dataChanges
netcheck/checks/tcp.py— new TCP check modulenetcheck/runner.py— TCP dispatch case + default validation rulenetcheck/cli.py—netcheck tcpCLI commandtcp-job.yaml) + test fileoperator/examples/default-k8s/tcp.yaml)Test plan
netcheck tcp,netcheck tcp --host localhost --port 1)