Eric Haberkorn 7ce6ebaeb3
Handle Traffic Permissions With Empty Sources Properly (#19024)
Fix issues with empty sources

* Validate that each permission on traffic permissions resources has at least one source.
* Don't construct RBAC policies when there aren't any principals. This resulted in Envoy rejecting xDS updates with a validation error.

```
error=
  | rpc error: code = Internal desc = Error adding/updating listener(s) public_listener: Proto constraint validation failed (RBACValidationError.Rules: embedded message failed validation | caused by RBACValidationError.Policies[consul-intentions-layer4-1]: embedded message failed validation | caused by PolicyValidationError.Principals: value must contain at least 1 item(s)): rules {
```
2023-09-28 15:11:59 -04:00
..
2023-08-11 09:12:13 -04:00
2023-09-05 13:34:44 -07:00
2023-09-20 15:50:06 -06:00
2023-08-25 12:47:20 -04:00
2023-08-11 09:12:13 -04:00
2023-09-21 14:25:12 -04:00
2023-09-20 15:50:06 -06:00
2023-08-11 09:12:13 -04:00
2023-09-20 15:50:06 -06:00
2023-08-11 09:12:13 -04:00
2023-09-20 15:50:06 -06:00
2023-09-20 15:50:06 -06:00
2023-09-20 15:50:06 -06:00
2023-08-11 09:12:13 -04:00
2023-09-20 15:50:06 -06:00
2023-08-11 09:12:13 -04:00