-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Update negative test case for TLS SNI
The current SNI denied test sends request to cilium.io with serverNames as one.one.one.one, and expects TLS error. However, cilium.io might not be as reliable compared to one.one.one.one, hence causes timeout issue (e.g. 28) instead of expected SSL error code (e.g. 35) as observed in the issue #37381. This commit is to reverse the test to use one.one.one.one as external target, however, new CNP client-egress-tls-sni-other will only allow serverNames with ExternalOtherTarget (defaults to cilium.io). Relates: #37122, #37381 Signed-off-by: Tam Mach <tam.mach@cilium.io>
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
17 changes: 17 additions & 0 deletions
17
cilium-cli/connectivity/builder/manifests/client-egress-tls-sni-other.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Same as client-egress-tls-sni.yaml but with external other target server name | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: "client-egress-tls-sni-other" | ||
specs: | ||
- description: "TLS SNI policy with ExternalOtherTarget" | ||
endpointSelector: | ||
matchLabels: | ||
kind: client | ||
egress: | ||
- toPorts: | ||
- ports: | ||
- port: "443" | ||
protocol: "TCP" | ||
serverNames: | ||
- "{{trimSuffix .ExternalOtherTarget "."}}" |