2021-07-15 15:09:00 +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": {
|
|
|
|
"action": "DENY",
|
|
|
|
"policies": {
|
|
|
|
"consul-intentions-layer4": {
|
|
|
|
"permissions": [
|
2021-07-15 15:09:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"any": true
|
2021-07-15 15:09:00 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"principals": [
|
2021-07-15 15:09:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"googleRe2": {},
|
|
|
|
"regex": "^spiffe://test.consul/ns/default/dc/[^/]+/svc/web$"
|
2021-07-15 15:09:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"andIds": {
|
|
|
|
"ids": [
|
2021-07-15 15:09:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"googleRe2": {},
|
|
|
|
"regex": "^spiffe://test.consul/ns/default/dc/[^/]+/svc/[^/]+$"
|
2021-07-15 15:09:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"notId": {
|
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"googleRe2": {},
|
|
|
|
"regex": "^spiffe://test.consul/ns/default/dc/[^/]+/svc/web$"
|
2021-07-15 15:09:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"statPrefix": "connect_authz"
|
2021-07-15 15:09:00 +00:00
|
|
|
}
|
|
|
|
}
|