-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Azar Fazel
committed
May 11, 2021
1 parent
7f3178f
commit a5c63b3
Showing
18 changed files
with
154 additions
and
41 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
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
5 changes: 3 additions & 2 deletions
5
src/test/resources/restapi/actiongroup_null_array_element.json
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,3 +1,4 @@ | ||
{ | ||
"allowed_actions": [null] | ||
} | ||
"allowed_actions": [null, "OPENDISTRO_SECURITY_WRITE"] | ||
} | ||
|
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,3 +1,3 @@ | ||
{ | ||
"nodes_dn" : [null] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/restapi/roles_null_array_element_allowed_actions.json
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,9 @@ | ||
{ | ||
"cluster_permissions" : ["cluster:monitor1*"], | ||
"index_permissions" : [{ | ||
"index_patterns" : [ "*" ], | ||
"masked_fields" : [ "abvfg", "*ip_dest*::/[0-9]{1,3}$/::XXX", "*ip_source*::/[0-9]{1,3}$/::XXX::/^[0-9]{1,3}/::***", "customer.name::SHA-512", "/[0-9]{1,3}/::SHA-512" ], | ||
"allowed_actions" : [ "123", null ] | ||
}], | ||
"tenant_permissions" : [ ] | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
"allowed_actions" : [ "123", "indices:data/read/*" ] | ||
} ], | ||
"tenant_permissions" : [ ] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/restapi/roles_null_array_element_index_patterns.json
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,9 @@ | ||
{ | ||
"cluster_permissions" : ["cluster:monitor1*"], | ||
"index_permissions" : [{ | ||
"index_patterns" : [null], | ||
"masked_fields" : [ "abvfg", "*ip_dest*::/[0-9]{1,3}$/::XXX", "*ip_source*::/[0-9]{1,3}$/::XXX::/^[0-9]{1,3}/::***", "customer.name::SHA-512", "/[0-9]{1,3}/::SHA-512" ], | ||
"allowed_actions" : [ "123", "indices:data/read/*" ] | ||
}], | ||
"tenant_permissions" : [ ] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/restapi/roles_null_array_element_index_permissions.json
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,5 @@ | ||
{ | ||
"cluster_permissions" : ["cluster:monitor1*"], | ||
"index_permissions" : [null], | ||
"tenant_permissions" : [ ] | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/restapi/roles_null_array_element_masked_fields.json
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,9 @@ | ||
{ | ||
"cluster_permissions" : ["cluster:monitor1*"], | ||
"index_permissions" : [{ | ||
"index_patterns" : [ "*" ], | ||
"masked_fields" : [ "abvfg", null, "*ip_source*::/[0-9]{1,3}$/::XXX::/^[0-9]{1,3}/::***", "customer.name::SHA-512", "/[0-9]{1,3}/::SHA-512" ], | ||
"allowed_actions" : [ "123", "indices:data/read/*" ] | ||
}], | ||
"tenant_permissions" : [ ] | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/restapi/roles_null_array_element_tenant_permissions.json
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,9 @@ | ||
{ | ||
"cluster_permissions" : ["cluster:monitor1*"], | ||
"index_permissions" : [{ | ||
"index_patterns" : [ "*" ], | ||
"masked_fields" : [ "abvfg", "*ip_dest*::/[0-9]{1,3}$/::XXX", "*ip_source*::/[0-9]{1,3}$/::XXX::/^[0-9]{1,3}/::***", "customer.name::SHA-512", "/[0-9]{1,3}/::SHA-512" ], | ||
"allowed_actions" : [ "123", "indices:data/read/*" ] | ||
}], | ||
"tenant_permissions" : [null] | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/resources/restapi/rolesmapping_null_array_element_backend_roles.json
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,14 @@ | ||
{ | ||
"users": [ | ||
"user1", | ||
"user2" | ||
], | ||
"backend_roles": [ | ||
"captains", | ||
null | ||
], | ||
"hosts": [ | ||
"8.8.8.8", | ||
"8.8.4.4" | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/resources/restapi/rolesmapping_null_array_element_hosts.json
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,14 @@ | ||
{ | ||
"users": [ | ||
"user1", | ||
"user2" | ||
], | ||
"backend_roles": [ | ||
"captains", | ||
"role2" | ||
], | ||
"hosts": [ | ||
null, | ||
"8.8.4.4" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
"hosts": [ | ||
"8.8.8.8" | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"backend_roles": [ | ||
null | ||
] | ||
} | ||
} |