Files
tailscale/cmd/k8s-operator/e2e/acl.hujson
BeckyPauley b3766d4fea cmd/k8s-operator/e2e: add 4via6 egress tests (#21854)
Add end-to-end tests for egress to a 4via6 target (an address behind a
subnet router advertising a 4via6 route). Tests include:

- TestConnector4via6Egress/HAEgress: egress to an in-cluster Connector
subnet router. Test requires a dual stack cluster.

- TestHostSubnetRouter4via6Egress/HAEgress: egress to a subnet router that
runs on the test host as a tsnet node. Use RegisterFallbackTCPHandler to
mock the backend response without requiring forwarding on to a backend node
(for test simplicity).

Also update end-to-end test acl for 4via6 routes, and install a dedicated
ProxyClass to accept routes.

Updates tailscale/corp#45732

Signed-off-by: Becky Pauley <[email protected]>
2026-10-27 16:41:10 +00:00

42 lines
1.1 KiB
Plaintext

// To run the e2e tests against a tailnet, ensure its access controls are a
// superset of the following:
{
"tagOwners": {
"tag:k8s-operator": [],
"tag:k8s": ["tag:k8s-operator"],
"tag:k8s-recorder": ["tag:k8s-operator"],
},
"autoApprovers": {
// Could be relaxed if we coordinated with the cluster config, but this
// wide subnet maximises compatibility for most clusters.
"routes": {
"10.0.0.0/8": ["tag:k8s"],
// Tailscale 4via6 range, so dynamically-computed 4via6 subnet routes
// advertised by Connectors in the e2e tests are auto-approved.
"fd7a:115c:a1e0:b1a::/64": ["tag:k8s"],
},
"services": {
"tag:k8s": ["tag:k8s"],
},
},
"grants": [
{
"src": ["tag:k8s"],
"dst": ["tag:k8s", "tag:k8s-operator"],
"ip": ["tcp:80", "tcp:443"],
"app": {
"tailscale.com/cap/kubernetes": [{
"impersonate": {
"groups": ["ts:e2e-test-proxy"],
},
}],
},
},
{
// Allow egress proxies to reach 4via6 targets.
"src": ["tag:k8s"],
"dst": ["fd7a:115c:a1e0:b1a::/64"],
"ip": ["tcp:80", "tcp:443"],
},
],
}