49 lines
2.5 KiB
Plaintext
49 lines
2.5 KiB
Plaintext
{
|
|
"name": "envoy.filters.network.rbac",
|
|
"config": {
|
|
"rules": {
|
|
"policies": {
|
|
"consul-intentions": {
|
|
"permissions": [
|
|
{
|
|
"any": true
|
|
}
|
|
],
|
|
"principals": [
|
|
{
|
|
"and_ids": {
|
|
"ids": [
|
|
{
|
|
"authenticated": {
|
|
"principal_name": {
|
|
"safe_regex": {
|
|
"google_re2": {
|
|
},
|
|
"regex": "^spiffe://[^/]+/ns/default/dc/[^/]+/svc/[^/]+$"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"not_id": {
|
|
"authenticated": {
|
|
"principal_name": {
|
|
"safe_regex": {
|
|
"google_re2": {
|
|
},
|
|
"regex": "^spiffe://[^/]+/ns/default/dc/[^/]+/svc/web$"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"stat_prefix": "connect_authz"
|
|
}
|
|
} |