Skip to content

Commit 3badcac

Browse files
authored
Merge pull request #4 from ing-bank/feature/update-ip-policy-matcher
Update servicedef and policy for new IpCidrMatchers
2 parents 34537ce + 9f53326 commit 3badcac

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

airlock-dev-apache-ranger/resources/policy/ranger-policy-s3.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929
"conditions": [
3030
{
31-
"type": "cidr",
31+
"type": "cidrAllUserIPs",
3232
"values": [
3333
"*"
3434
]
@@ -67,7 +67,7 @@
6767
"groups": [],
6868
"conditions": [
6969
{
70-
"type": "cidr",
70+
"type": "cidrAnyUserIPs",
7171
"values": [
7272
"1.2.3.4/32"
7373
]

airlock-dev-apache-ranger/resources/servicedef/ranger-servicedef-s3.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,18 @@
103103
[
104104
{
105105
"itemId": 1,
106-
"name": "cidr",
107-
"label": "IP address within cidr range?",
108-
"description": "Ip address within cidr range?",
109-
"evaluator": "com.ing.wbaa.ranger.plugin.conditionevaluator.IpCidrMatcher",
106+
"name": "cidrAllUserIPs",
107+
"label": "All user IP addresses within any cidr range?",
108+
"description": "All user IP addresses within any cidr range?",
109+
"evaluator": "com.ing.wbaa.ranger.plugin.conditionevaluator.AllIpCidrMatcher",
110+
"evaluatorOptions": {}
111+
},
112+
{
113+
"itemId": 2,
114+
"name": "cidrAnyUserIPs",
115+
"label": "Any user IP address within any cidr range?",
116+
"description": "Any user IP address within any cidr range?",
117+
"evaluator": "com.ing.wbaa.ranger.plugin.conditionevaluator.AnyIpCidrMatcher",
110118
"evaluatorOptions": {}
111119
}
112120
]

0 commit comments

Comments
 (0)