Context: #193 (comment)
The source field is required currently. An AccessPolicyRule applying to all the agents looks like:
apiVersion: agentic.prototype.x-k8s.io/v0alpha0
kind: XAccessPolicy
metadata:
name: e2e-gateway-extauth-policy
namespace: e2e-test-ns
spec:
targetRefs:
- ...
rules:
- name: ext-authz-rule
source:
type: ServiceAccount
authorization:
type: ExternalAuth
externalAuth:
...
I wonder whether we should make it optional. If the field is optional, An AccessPolicyRule applying to all the agents looks like:
apiVersion: agentic.prototype.x-k8s.io/v0alpha0
kind: XAccessPolicy
metadata:
name: e2e-gateway-extauth-policy
namespace: e2e-test-ns
spec:
targetRefs:
- ...
rules:
- name: ext-authz-rule
authorization:
type: ExternalAuth
externalAuth:
...
cc @guicassolato @LiorLieberman @david-martin
Context: #193 (comment)
The
sourcefield is required currently. An AccessPolicyRule applying to all the agents looks like:I wonder whether we should make it optional. If the field is optional, An AccessPolicyRule applying to all the agents looks like:
cc @guicassolato @LiorLieberman @david-martin