more rbac
This commit is contained in:
16
envoy.yaml
16
envoy.yaml
@@ -64,18 +64,30 @@ static_resources:
|
||||
rules:
|
||||
action: ALLOW
|
||||
policies:
|
||||
"test_policy":
|
||||
"ubuntu-policy":
|
||||
permissions:
|
||||
- and_rules:
|
||||
rules:
|
||||
- header:
|
||||
name: ":path"
|
||||
string_match:
|
||||
prefix: "/dev-test"
|
||||
prefix: "/john-ubuntu"
|
||||
principals:
|
||||
- authenticated:
|
||||
principal_name:
|
||||
exact: "spiffe://john-stream.com/ubuntu"
|
||||
"p14-policy":
|
||||
permissions:
|
||||
- and_rules:
|
||||
rules:
|
||||
- header:
|
||||
name: ":path"
|
||||
string_match:
|
||||
prefix: "/john-p14s"
|
||||
principals:
|
||||
- authenticated:
|
||||
principal_name:
|
||||
exact: "spiffe://john-stream.com/john-p14s"
|
||||
# --8<-- [end:rbac]
|
||||
- name: envoy.filters.http.router
|
||||
typed_config:
|
||||
|
||||
Reference in New Issue
Block a user