2022-06-10 21:15:22 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "envoy.filters.network.rbac",
|
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.rbac.v3.RBAC",
|
|
|
|
"rules": {
|
|
|
|
"policies": {
|
|
|
|
"consul-intentions-layer4": {
|
|
|
|
"permissions": [
|
2022-06-10 21:15:22 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"any": true
|
2022-06-10 21:15:22 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"principals": [
|
2022-06-10 21:15:22 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"regex": "^spiffe://test.consul/ns/default/dc/[^/]+/svc/web$"
|
2022-06-10 21:15:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"andIds": {
|
|
|
|
"ids": [
|
2022-06-10 21:15:22 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"regex": "^spiffe://peer1.domain/ap/part1/ns/default/dc/[^/]+/svc/[^/]+$"
|
2022-06-10 21:15:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"notId": {
|
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"regex": "^spiffe://peer1.domain/ap/part1/ns/default/dc/[^/]+/svc/web$"
|
2022-06-10 21:15:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"statPrefix": "connect_authz"
|
2022-06-10 21:15:22 +00:00
|
|
|
}
|
|
|
|
}
|