2020-08-27 17:20:58 +00:00
|
|
|
{
|
|
|
|
"name": "envoy.filters.network.rbac",
|
2021-02-22 21:00:15 +00:00
|
|
|
"typedConfig": {
|
|
|
|
"@type": "type.googleapis.com/envoy.config.filter.network.rbac.v2.RBAC",
|
|
|
|
"rules": {
|
|
|
|
"policies": {
|
|
|
|
"consul-intentions-layer4": {
|
|
|
|
"permissions": [
|
|
|
|
{
|
|
|
|
"any": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"principals": [
|
|
|
|
{
|
|
|
|
"andIds": {
|
|
|
|
"ids": [
|
|
|
|
{
|
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"googleRe2": {
|
|
|
|
|
|
|
|
},
|
|
|
|
"regex": "^spiffe://[^/]+/ns/default/dc/[^/]+/svc/[^/]+$"
|
|
|
|
}
|
2020-08-27 17:20:58 +00:00
|
|
|
}
|
2021-02-22 21:00:15 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"notId": {
|
|
|
|
"authenticated": {
|
|
|
|
"principalName": {
|
|
|
|
"safeRegex": {
|
|
|
|
"googleRe2": {
|
|
|
|
|
|
|
|
},
|
|
|
|
"regex": "^spiffe://[^/]+/ns/default/dc/[^/]+/svc/web$"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"statPrefix": "connect_authz"
|
|
|
|
}
|
2020-08-27 17:20:58 +00:00
|
|
|
}
|