-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Add support for TCP traffic permissions
- Loading branch information
1 parent
29a4aa2
commit b16a591
Showing
15 changed files
with
356 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
{} | ||
{ | ||
"name": "envoy.filters.network.rbac", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.filters.network.rbac.v3.RBAC", | ||
"rules": { | ||
"policies": { | ||
"consul-intentions-layer4": { | ||
"permissions": [ | ||
{ | ||
"any": true | ||
} | ||
], | ||
"principals": [ | ||
{ | ||
"authenticated": { | ||
"principalName": { | ||
"safeRegex": { | ||
"googleRe2": {}, | ||
"regex": "^spiffe://test.consul/ns/default/dc/[^/]+/svc/web$" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"statPrefix": "connect_authz" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"filters": [ | ||
{ | ||
"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": [ | ||
{ | ||
"any": true | ||
} | ||
], | ||
"principals": [ | ||
{ | ||
"authenticated": { | ||
"principalName": { | ||
"safeRegex": { | ||
"googleRe2": {}, | ||
"regex": "^spiffe://test.consul/ns/default/dc/[^/]+/svc/web$" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"statPrefix": "connect_authz" | ||
} | ||
}, | ||
{ | ||
"name": "envoy.filters.network.rbac", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.filters.network.rbac.v3.RBAC", | ||
"rules": {}, | ||
"statPrefix": "connect_authz" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.