gateway-api: use targetRef instead of selector for auth/authz gateway… (#14157)

* gateway-api: use targetRef instead of selector for auth/authz gateway refs

* regen

* fix yaml

* regen
This commit is contained in:
Frank Budinsky 2023-11-15 10:57:05 -05:00 committed by GitHub
parent c83b7f4434
commit 83bae38f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 100 additions and 80 deletions

View File

@ -377,19 +377,20 @@ metadata:
name: productpage-viewer
namespace: default
spec:
selector:
matchLabels:
istio.io/gateway-name: bookinfo-productpage
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/default/sa/sleep
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
to:
- operation:
methods: ["GET"]
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: bookinfo-productpage
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/default/sa/sleep
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
to:
- operation:
methods: ["GET"]
EOF
{{< /text >}}

View File

@ -241,19 +241,20 @@ metadata:
name: productpage-viewer
namespace: default
spec:
selector:
matchLabels:
istio.io/gateway-name: bookinfo-productpage
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/default/sa/sleep
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
to:
- operation:
methods: ["GET"]
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: bookinfo-productpage
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/default/sa/sleep
- cluster.local/$GATEWAY_SERVICE_ACCOUNT
to:
- operation:
methods: ["GET"]
EOF
}

View File

@ -405,9 +405,10 @@ metadata:
name: "jwt-example"
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
jwtRules:
- issuer: "testing@secure.istio.io"
jwksUri: "{{< github_file >}}/security/tools/jwt/samples/jwks.json"
@ -519,9 +520,10 @@ metadata:
name: "frontend-ingress"
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:
@ -583,9 +585,10 @@ metadata:
name: "frontend-ingress"
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:

View File

@ -310,9 +310,10 @@ metadata:
name: "jwt-example"
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
jwtRules:
- issuer: "testing@secure.istio.io"
jwksUri: "https://raw.githubusercontent.com/istio/istio/master/security/tools/jwt/samples/jwks.json"
@ -397,9 +398,10 @@ metadata:
name: "frontend-ingress"
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:
@ -446,9 +448,10 @@ metadata:
name: "frontend-ingress"
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:

View File

@ -365,9 +365,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -386,9 +387,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -513,9 +515,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -534,9 +537,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -620,9 +624,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:
@ -641,9 +646,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:

View File

@ -201,9 +201,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -220,9 +221,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -317,9 +319,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -336,9 +339,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: ALLOW
rules:
- from:
@ -401,9 +405,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from:
@ -420,9 +425,10 @@ metadata:
name: ingress-policy
namespace: foo
spec:
selector:
matchLabels:
istio.io/gateway-name: httpbin-gateway
targetRef:
kind: Gateway
group: gateway.networking.k8s.io
name: httpbin-gateway
action: DENY
rules:
- from: