istio / api

API definitions for the Istio project
Apache License 2.0
455 stars 550 forks source link

Service Attachment Type Missing From PolicyTargetReference Documentation #3198

Open danehans opened 4 months ago

danehans commented 4 months ago

Bug description The PolicyTargetReference API docs do not include a Service resource as a supported attachment type even though this type is reference in the Ambient Getting Started guide.

Affected product area (please put an X in all that apply)

[ ] Configuration Infrastructure [X] Docs [ ] Installation [ ] Networking [ ] Performance and Scalability [ ] Policies and Telemetry [ ] Security [ ] Test and Release [ ] User Experience

Expected behavior The ability to reference a Service in an auth policy but according to the API docs only a Gateway is supported.

Steps to reproduce the bug Use the example provided in https://istio.io/latest/docs/reference/config/security/authorization-policy/

Version (include the output of istioctl version --remote and kubectl version) 1.22

How was Istio installed? istioctl install --set profile=ambient --skip-confirmation

Environment where bug was observed (cloud vendor, OS, etc) kind cluster

Additionally, please consider attaching a cluster state archive by attaching the dump file to this issue.