-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74674/
-----------------------------------------------------------
Review request for ranger, Anand Nadar, Ankita Sinha, Madhan Neethiraj, Monika
Kachhadiya, and Subhrat Chaudhary.
Bugs: RANGER-4475
https://issues.apache.org/jira/browse/RANGER-4475
Repository: ranger
Description
-------
In Security-Zone summary API the RANGER-ADMIN should have access for all
Security-Zones
API ===> (service/zones/summary)
Diffs
-----
security-admin/src/main/java/org/apache/ranger/biz/SecurityZoneDBStore.java
77b89f1fb
Diff: https://reviews.apache.org/r/74674/diff/1/
Testing
-------
1)Create a Security-Zone (don't add public to the Admin/Auditor groups while
creating the zone)
2)create a user with ADMIN role
3)Get all zones list by API ===> (service/zones/summary) using the created
ADMIN user
RESPONSE==================>
{
"startIndex": 0,
"pageSize": 1,
"totalCount": 3,
"resultSize": 1,
"sortType": null,
"sortBy": null,
"queryTimeMS": 1697453632943,
"list": [
{
"id": 2,
"isEnabled": true,
"createdBy": "Admin",
"updatedBy": "Admin",
"createTime": 1697192551000,
"updateTime": 1697192551000,
"name": "Test-Zone-1",
"description": "Test-Zone-1",
"totalResourceCount": 1,
"adminCount": {
"GROUP": 1,
"ROLE": 0,
"USER": 2
},
"auditorCount": {
"GROUP": 1,
"ROLE": 0,
"USER": 1
},
"services": [
{
"id": 1,
"name": "Ranger_hive",
"type": "hive",
"resourceCount": 1
}
]
}
],
"listSize": 1
}
Thanks,
Prashant Satam