mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
7ce6ebaeb3
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 { ```
22 lines
523 B
Plaintext
22 lines
523 B
Plaintext
{
|
|
"filters": [
|
|
{
|
|
"name": "envoy.filters.network.rbac",
|
|
"typedConfig": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.rbac.v3.RBAC",
|
|
"rules": {
|
|
"action": "DENY"
|
|
},
|
|
"statPrefix": "connect_authz"
|
|
}
|
|
},
|
|
{
|
|
"name": "envoy.filters.network.rbac",
|
|
"typedConfig": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.rbac.v3.RBAC",
|
|
"rules": {},
|
|
"statPrefix": "connect_authz"
|
|
}
|
|
}
|
|
]
|
|
} |