[jira] [Commented] (RANGER-4511) Enable Parallel Compilation for Multiple Modules in Ranger

2023-12-19 Thread caijialiang (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17798850#comment-17798850
 ] 

caijialiang commented on RANGER-4511:
-

[~bhavikpatel] Could you help review this pr?

> Enable Parallel Compilation for Multiple Modules in Ranger
> --
>
> Key: RANGER-4511
> URL: https://issues.apache.org/jira/browse/RANGER-4511
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: caijialiang
>Assignee: caijialiang
>Priority: Major
> Attachments: image-2023-11-03-11-15-50-593.png, 
> patch1-RANGER-4511.diff
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> "Due to incorrect dependency settings in the distro module, Ranger cannot 
> utilize multicore concurrent compilation. As a result, compiling Ranger is 
> very slow each time, as all modules can only be compiled serially.
> With this patch, Ranger can be compiled in parallel, greatly speeding up the 
> process. Compilation can now be completed in just a few minutes.
> !image-2023-11-03-11-15-50-593.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (RANGER-4619) Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer

2023-12-19 Thread Ramesh Mani (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ramesh Mani updated RANGER-4619:

Summary: Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer  (was: Fix 
NPE in the SHOW GRANT API of RangerHiveAuthorizer.)

> Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer
> -
>
> Key: RANGER-4619
> URL: https://issues.apache.org/jira/browse/RANGER-4619
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Affects Versions: 3.0.0
>Reporter: Ramesh Mani
>Assignee: Ramesh Mani
>Priority: Minor
>
>  When hive plugin  is not initialized, SHOW GRANT [principal_specification] 
> ON (ALL | [TABLE] table_or_view_name) command will result in NPE.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (RANGER-4619) Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer.

2023-12-19 Thread Ramesh Mani (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ramesh Mani reassigned RANGER-4619:
---

Assignee: Ramesh Mani

> Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer.
> --
>
> Key: RANGER-4619
> URL: https://issues.apache.org/jira/browse/RANGER-4619
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Affects Versions: 3.0.0
>Reporter: Ramesh Mani
>Assignee: Ramesh Mani
>Priority: Minor
>
>  When hive plugin  is not initialized, SHOW GRANT [principal_specification] 
> ON (ALL | [TABLE] table_or_view_name) command will result in NPE.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (RANGER-4619) Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer.

2023-12-19 Thread Ramesh Mani (Jira)
Ramesh Mani created RANGER-4619:
---

 Summary: Fix NPE in the SHOW GRANT API of RangerHiveAuthorizer.
 Key: RANGER-4619
 URL: https://issues.apache.org/jira/browse/RANGER-4619
 Project: Ranger
  Issue Type: Bug
  Components: Ranger
Affects Versions: 3.0.0
Reporter: Ramesh Mani


 When hive plugin  is not initialized, SHOW GRANT [principal_specification] ON 
(ALL | [TABLE] table_or_view_name) command will result in NPE.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


Re: Review Request 74798: RANGER-4617: Need to add ACL principal details in dataset summary API

2023-12-19 Thread Madhan Neethiraj

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74798/#review226066
---


Ship it!




Ship It!

- Madhan Neethiraj


On Dec. 19, 2023, 9:53 a.m., Prashant Satam wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74798/
> ---
> 
> (Updated Dec. 19, 2023, 9:53 a.m.)
> 
> 
> Review request for ranger, Akshay Tupe, Anand Nadar, Ankita Sinha, Madhan 
> Neethiraj, Monika Kachhadiya, Siddhesh Phatak, Subhrat Chaudhary, and Vanita 
> Ubale.
> 
> 
> Bugs: RANGER-4617
> https://issues.apache.org/jira/browse/RANGER-4617
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> Currently in dataset-summary API we have a field 
> "principalsCount" which gives details of principal in dataset policy ,Also 
> adding field "aclPrincipalsCount" which will give details of principals in 
> dataset ACL will also be helpful for getting more information for a dataset
> 
> 
> Diffs
> -
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/model/RangerGds.java 
> d10a70f23 
>   security-admin/src/main/java/org/apache/ranger/biz/GdsDBStore.java 
> bf348e4ed 
> 
> 
> Diff: https://reviews.apache.org/r/74798/diff/1/
> 
> 
> Testing
> ---
> 
> 1)create user,group,role
> 2)Create a dataset and add the above principals in Dataset-ACL
> 3)get the dataset by service/gds/dataset/summary API in field 
> "aclPrincipalsCount" you will get count of above added principals in 
> datasetSummary
> 
> Request ===> service/gds/dataset/summary/
> Response ==>
> {
> "startIndex": 0,
> "pageSize": 1,
> "totalCount": 9,
> "resultSize": 1,
> "sortType": "asc",
> "sortBy": "datasetId",
> "queryTimeMS": 1702979335915,
> "list": [
> {
> "id": 1,
> "guid": "bbfe0bb4-94c8-49e1-8a2a-2c2997839b2f",
> "isEnabled": true,
> "createdBy": "Admin",
> "updatedBy": "Admin",
> "createTime": 169942971,
> "updateTime": 1700740815000,
> "version": 2,
> "name": "Test_GDS_Dataset112",
> "description": "This is GDS description",
> "permissionForCaller": "ADMIN",
> "principalsCount": {
> "ROLE": 0,
> "GROUP": 0,
> "USER": 0
> },
> "aclPrincipalsCount": {
> "ROLE": 0,
> "GROUP": 0,
> "USER": 2
> },
> "projectsCount": 1,
> "totalResourceCount": 1,
> "dataShares": [
> {
> "id": 1,
> "guid": "604513a0-2c69-40c4-8ea8-ccecadf47888",
> "isEnabled": true,
> "createdBy": "Admin",
> "updatedBy": "Admin",
> "createTime": 1699352449000,
> "updateTime": 1702453784000,
> "version": 7,
> "dataShareId": 1,
> "dataShareName": "RangerDataShare22",
> "serviceId": 1,
> "serviceName": "Ranger_hive",
> "zoneId": 2,
> "zoneName": "Test-Zone-1",
> "resourceCount": 1,
> "shareStatus": "ACTIVE",
> "approver": "admin"
> }
> ]
> }
> ],
> "listSize": 1
> }
> 
> 
> Thanks,
> 
> Prashant Satam
> 
>



Re: Review Request 74799: RANGER-4618: Need to add displayName field in zoneSummary Object

2023-12-19 Thread Madhan Neethiraj

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74799/#review226065
---


Ship it!




Ship It!

- Madhan Neethiraj


On Dec. 19, 2023, 10:26 a.m., Prashant Satam wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74799/
> ---
> 
> (Updated Dec. 19, 2023, 10:26 a.m.)
> 
> 
> Review request for ranger, Akshay Tupe, Anand Nadar, Ankita Sinha, Madhan 
> Neethiraj, Monika Kachhadiya, Subhrat Chaudhary, and Vanita Ubale.
> 
> 
> Bugs: RANGER-4618
> https://issues.apache.org/jira/browse/RANGER-4618
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> In the zoneSummary Object services section we have name field to display 
> serviceName but it will be helpful if we add displayName field also to the 
> same
> 
> 
> Diffs
> -
> 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/model/RangerSecurityZone.java
>  4ea6cdee6 
>   security-admin/src/main/java/org/apache/ranger/biz/SecurityZoneDBStore.java 
> 422dd0fe5 
> 
> 
> Diff: https://reviews.apache.org/r/74799/diff/1/
> 
> 
> Testing
> ---
> 
> 1)create a securityZone by adding a service to it 
> 2)get securityZone by (/service/zones/summary/) you will get displayName 
> field in zoneSummaryList
> 
> Request > /service/zones/summary
> 
> Response ==> 
> {
> "startIndex": 0,
> "pageSize": 1,
> "totalCount": 5,
> "resultSize": 1,
> "sortType": null,
> "sortBy": null,
> "queryTimeMS": 1702981470678,
> "list": [
> {
> "id": 2,
> "isEnabled": true,
> "createdBy": "Admin",
> "updatedBy": "Admin",
> "createTime": 1699352435000,
> "updateTime": 1701843223000,
> "name": "Test-Zone-1",
> "description": "ZZ",
> "totalResourceCount": 1,
> "adminCount": {
> "GROUP": 0,
> "ROLE": 1,
> "USER": 2
> },
> "auditorCount": {
> "GROUP": 0,
> "ROLE": 0,
> "USER": 1
> },
> "services": [
> {
> "id": 1,
> "name": "Ranger_hive",
> "type": "hive",
> "displayName": "Ranger_hive_DISPLAY",
> "resourceCount": 1
> }
> ]
> }
> ],
> "listSize": 1
> }
> 
> 
> Thanks,
> 
> Prashant Satam
> 
>



Re: [PR] Update trino-plugin to be compatible with the latest Trino SPI (version 433) [ranger]

2023-12-19 Thread via GitHub


leeyh0216 commented on PR #290:
URL: https://github.com/apache/ranger/pull/290#issuecomment-1862864010

   Hello, @okayhooni 
   
   Although we are not doing Ranger Contributing, we are using the same 
upgraded version of Trino internally.
   
   How did you test these changes?
   I remember that Trino Dependency built with JDK 17 could not be used on the 
Ranger Admin side (built with JDK8), so I was curious how you got it running. 
(In our case, Ranger Admin was also built based on JDK 17.)
   Additionally, there doesn't seem to be any code modification for 
`ranger-trino-plugin-shim`, but I think it needs to be modified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[jira] [Updated] (RANGER-4502) Getting Error to load backbone.js latest UI.

2023-12-19 Thread Dhaval Rajpara (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dhaval Rajpara updated RANGER-4502:
---
Fix Version/s: 3.0.0

> Getting Error to load  backbone.js latest UI.
> -
>
> Key: RANGER-4502
> URL: https://issues.apache.org/jira/browse/RANGER-4502
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: Dhaval Rajpara
>Assignee: Dhaval Rajpara
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: 0001-RANGER-4502.patch
>
>
> Step to reproduce:
> 1) Login to ranger admin UI
> 2) go to the profile drop-down
> 3) Click on Switch to latest UI
> Result in "NO services found" page displayed. But we have services present in 
> Backbone Classic UI. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (RANGER-4502) Getting Error to load backbone.js latest UI.

2023-12-19 Thread Dhaval Rajpara (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17798593#comment-17798593
 ] 

Dhaval Rajpara commented on RANGER-4502:


Code Committed to [Apache 
Master|https://github.com/apache/ranger/commit/913d737890df43b58ee31de400aa32e9d3d2d08d]
 branch.


> Getting Error to load  backbone.js latest UI.
> -
>
> Key: RANGER-4502
> URL: https://issues.apache.org/jira/browse/RANGER-4502
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: Dhaval Rajpara
>Assignee: Dhaval Rajpara
>Priority: Major
> Attachments: 0001-RANGER-4502.patch
>
>
> Step to reproduce:
> 1) Login to ranger admin UI
> 2) go to the profile drop-down
> 3) Click on Switch to latest UI
> Result in "NO services found" page displayed. But we have services present in 
> Backbone Classic UI. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


Review Request 74799: RANGER-4618: Need to add displayName field in zoneSummary Object

2023-12-19 Thread Prashant Satam

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74799/
---

Review request for ranger, Akshay Tupe, Anand Nadar, Ankita Sinha, Madhan 
Neethiraj, Monika Kachhadiya, Subhrat Chaudhary, and Vanita Ubale.


Bugs: RANGER-4618
https://issues.apache.org/jira/browse/RANGER-4618


Repository: ranger


Description
---

In the zoneSummary Object services section we have name field to display 
serviceName but it will be helpful if we add displayName field also to the same


Diffs
-

  
agents-common/src/main/java/org/apache/ranger/plugin/model/RangerSecurityZone.java
 4ea6cdee6 
  security-admin/src/main/java/org/apache/ranger/biz/SecurityZoneDBStore.java 
422dd0fe5 


Diff: https://reviews.apache.org/r/74799/diff/1/


Testing
---

1)create a securityZone by adding a service to it 
2)get securityZone by (/service/zones/summary/) you will get displayName field 
in zoneSummaryList

Request > /service/zones/summary

Response ==> 
{
"startIndex": 0,
"pageSize": 1,
"totalCount": 5,
"resultSize": 1,
"sortType": null,
"sortBy": null,
"queryTimeMS": 1702981470678,
"list": [
{
"id": 2,
"isEnabled": true,
"createdBy": "Admin",
"updatedBy": "Admin",
"createTime": 1699352435000,
"updateTime": 1701843223000,
"name": "Test-Zone-1",
"description": "ZZ",
"totalResourceCount": 1,
"adminCount": {
"GROUP": 0,
"ROLE": 1,
"USER": 2
},
"auditorCount": {
"GROUP": 0,
"ROLE": 0,
"USER": 1
},
"services": [
{
"id": 1,
"name": "Ranger_hive",
"type": "hive",
"displayName": "Ranger_hive_DISPLAY",
"resourceCount": 1
}
]
}
],
"listSize": 1
}


Thanks,

Prashant Satam



Re: Review Request 74753: RANGER-4521: All records not displayed on Admin Audits UI when filtered using session ID

2023-12-19 Thread Rakesh Gupta


> On Dec. 19, 2023, 6:30 a.m., Kishor Gollapalliwar wrote:
> > security-admin/src/main/java/org/apache/ranger/service/XTrxLogService.java
> > Lines 154 (patched)
> > 
> >
> > What will happen if session is null ?

if session is null, we will get all transaction log


- Rakesh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74753/#review226062
---


On Dec. 19, 2023, 9:57 a.m., Rakesh Gupta wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74753/
> ---
> 
> (Updated Dec. 19, 2023, 9:57 a.m.)
> 
> 
> Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay 
> Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, 
> sanket shelar, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-4521
> https://issues.apache.org/jira/browse/RANGER-4521
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> Some audit entries for keyadmin user are missing when filtered using 
> sessionID or Audit Type = Ranger Policy. Also when moved to next page most 
> audit entries are missing
> 
> (Audits for import and export are shown, audit corresponding to policy crud 
> operation is missing for keyadmin user)
> 
> 
> Diffs
> -
> 
>   security-admin/src/main/java/org/apache/ranger/service/XTrxLogService.java 
> 9d9e0bbc0 
> 
> 
> Diff: https://reviews.apache.org/r/74753/diff/5/
> 
> 
> Testing
> ---
> 
> Tested All audits are displayed properly with filter and without filter for 
> admin and keyadmin user.
> 
> 
> Thanks,
> 
> Rakesh Gupta
> 
>



[jira] [Resolved] (RANGER-4467) User Agent info not logged under "Login sessions" when login fails

2023-12-19 Thread Rakesh Gupta (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh Gupta resolved RANGER-4467.
--
Resolution: Fixed

> User Agent info not logged under "Login sessions" when login fails
> --
>
> Key: RANGER-4467
> URL: https://issues.apache.org/jira/browse/RANGER-4467
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: suja s
>Assignee: Rakesh Gupta
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: 0001-RANGER-4467.patch
>
>
> STEPS TO REPRODUCE:
> Provide wrong uname or password on Ranger admin UI so that login fails
> Verify login sessions under Audits page
> CURRENT BEHAVIOUR:
> User Agent info is missing when login fails
> EXPECTED BEHAVIOUR:
> User Agent info should be displayed
> IMPACT:
> User Agent info missing when login fails. Its good to display this detail as 
> it helps in knowing how the login was tried in case of failed login attempts



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (RANGER-4521) All records not displayed on Admin Audits UI when filtered using session ID

2023-12-19 Thread Rakesh Gupta (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh Gupta updated RANGER-4521:
-
Attachment: 0005-RANGER-4521.patch

> All records not displayed on Admin Audits UI when filtered using session ID
> ---
>
> Key: RANGER-4521
> URL: https://issues.apache.org/jira/browse/RANGER-4521
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: suja s
>Assignee: Rakesh Gupta
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: 0005-RANGER-4521.patch
>
>
> STEPS TO REPRODUCE:
> Login as keyadmin user to Ranger Admin UI.
> Add a ranger kms policy by doing a json import.
> Navigate to Admin Audits on UI
> Click on the session ID corresponding to policy import and select "Show 
> Actions" so that audits related to specific sessionID are displayed
> CURRENT BEHAVIOUR:
> Some audit entries are missing when filtered using sessionID
> (Audots for import and export are shown, audit corresponding to policy create 
> is missing)
> EXPECTED BEHAVIOUR:
> All audits corresponding to filtered sessionID should be displayed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (RANGER-4618) Need to add displayName field in zoneSummary Object

2023-12-19 Thread Prashant Satam (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prashant Satam updated RANGER-4618:
---
Description: In the zoneSummary Object services section we have name field 
to display serviceName but it will be helpful if we add displayName field also 
to the same 

> Need to add displayName field in zoneSummary Object
> ---
>
> Key: RANGER-4618
> URL: https://issues.apache.org/jira/browse/RANGER-4618
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: Prashant Satam
>Assignee: Prashant Satam
>Priority: Major
>
> In the zoneSummary Object services section we have name field to display 
> serviceName but it will be helpful if we add displayName field also to the 
> same 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (RANGER-4521) All records not displayed on Admin Audits UI when filtered using session ID

2023-12-19 Thread Rakesh Gupta (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh Gupta updated RANGER-4521:
-
Attachment: (was: 0004-RANGER-4521.patch)

> All records not displayed on Admin Audits UI when filtered using session ID
> ---
>
> Key: RANGER-4521
> URL: https://issues.apache.org/jira/browse/RANGER-4521
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: suja s
>Assignee: Rakesh Gupta
>Priority: Major
> Fix For: 3.0.0
>
>
> STEPS TO REPRODUCE:
> Login as keyadmin user to Ranger Admin UI.
> Add a ranger kms policy by doing a json import.
> Navigate to Admin Audits on UI
> Click on the session ID corresponding to policy import and select "Show 
> Actions" so that audits related to specific sessionID are displayed
> CURRENT BEHAVIOUR:
> Some audit entries are missing when filtered using sessionID
> (Audots for import and export are shown, audit corresponding to policy create 
> is missing)
> EXPECTED BEHAVIOUR:
> All audits corresponding to filtered sessionID should be displayed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


Re: Review Request 74753: RANGER-4521: All records not displayed on Admin Audits UI when filtered using session ID

2023-12-19 Thread Rakesh Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74753/
---

(Updated Dec. 19, 2023, 9:57 a.m.)


Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay 
Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, sanket 
shelar, Sailaja Polavarapu, and Velmurugan Periasamy.


Changes
---

Review comment handles


Bugs: RANGER-4521
https://issues.apache.org/jira/browse/RANGER-4521


Repository: ranger


Description
---

Some audit entries for keyadmin user are missing when filtered using sessionID 
or Audit Type = Ranger Policy. Also when moved to next page most audit entries 
are missing

(Audits for import and export are shown, audit corresponding to policy crud 
operation is missing for keyadmin user)


Diffs (updated)
-

  security-admin/src/main/java/org/apache/ranger/service/XTrxLogService.java 
9d9e0bbc0 


Diff: https://reviews.apache.org/r/74753/diff/5/

Changes: https://reviews.apache.org/r/74753/diff/4-5/


Testing
---

Tested All audits are displayed properly with filter and without filter for 
admin and keyadmin user.


Thanks,

Rakesh Gupta



[jira] [Created] (RANGER-4618) Need to add displayName field in zoneSummary Object

2023-12-19 Thread Prashant Satam (Jira)
Prashant Satam created RANGER-4618:
--

 Summary: Need to add displayName field in zoneSummary Object
 Key: RANGER-4618
 URL: https://issues.apache.org/jira/browse/RANGER-4618
 Project: Ranger
  Issue Type: Bug
  Components: Ranger
Reporter: Prashant Satam






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (RANGER-4618) Need to add displayName field in zoneSummary Object

2023-12-19 Thread Prashant Satam (Jira)


 [ 
https://issues.apache.org/jira/browse/RANGER-4618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prashant Satam reassigned RANGER-4618:
--

Assignee: Prashant Satam

> Need to add displayName field in zoneSummary Object
> ---
>
> Key: RANGER-4618
> URL: https://issues.apache.org/jira/browse/RANGER-4618
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: Prashant Satam
>Assignee: Prashant Satam
>Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (RANGER-4467) User Agent info not logged under "Login sessions" when login fails

2023-12-19 Thread Kishor Gollapalliwar (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17798517#comment-17798517
 ] 

Kishor Gollapalliwar commented on RANGER-4467:
--

commit: 
https://github.com/apache/ranger/commit/5cfe87313bbd67af20f3c8b68f60f0af08e7d73c

> User Agent info not logged under "Login sessions" when login fails
> --
>
> Key: RANGER-4467
> URL: https://issues.apache.org/jira/browse/RANGER-4467
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: suja s
>Assignee: Rakesh Gupta
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: 0001-RANGER-4467.patch
>
>
> STEPS TO REPRODUCE:
> Provide wrong uname or password on Ranger admin UI so that login fails
> Verify login sessions under Audits page
> CURRENT BEHAVIOUR:
> User Agent info is missing when login fails
> EXPECTED BEHAVIOUR:
> User Agent info should be displayed
> IMPACT:
> User Agent info missing when login fails. Its good to display this detail as 
> it helps in knowing how the login was tried in case of failed login attempts



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


Review Request 74798: RANGER-4617: Need to add ACL principal details in dataset summary API

2023-12-19 Thread Prashant Satam

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74798/
---

Review request for ranger, Akshay Tupe, Anand Nadar, Ankita Sinha, Madhan 
Neethiraj, Monika Kachhadiya, Siddhesh Phatak, Subhrat Chaudhary, and Vanita 
Ubale.


Bugs: RANGER-4617
https://issues.apache.org/jira/browse/RANGER-4617


Repository: ranger


Description
---

Currently in dataset-summary API we have a field 
"principalsCount" which gives details of principal in dataset policy ,Also 
adding field "aclPrincipalsCount" which will give details of principals in 
dataset ACL will also be helpful for getting more information for a dataset


Diffs
-

  agents-common/src/main/java/org/apache/ranger/plugin/model/RangerGds.java 
d10a70f23 
  security-admin/src/main/java/org/apache/ranger/biz/GdsDBStore.java bf348e4ed 


Diff: https://reviews.apache.org/r/74798/diff/1/


Testing
---

1)create user,group,role
2)Create a dataset and add the above principals in Dataset-ACL
3)get the dataset by service/gds/dataset/summary API in field 
"aclPrincipalsCount" you will get count of above added principals in 
datasetSummary

Request ===> service/gds/dataset/summary/
Response ==>
{
"startIndex": 0,
"pageSize": 1,
"totalCount": 9,
"resultSize": 1,
"sortType": "asc",
"sortBy": "datasetId",
"queryTimeMS": 1702979335915,
"list": [
{
"id": 1,
"guid": "bbfe0bb4-94c8-49e1-8a2a-2c2997839b2f",
"isEnabled": true,
"createdBy": "Admin",
"updatedBy": "Admin",
"createTime": 169942971,
"updateTime": 1700740815000,
"version": 2,
"name": "Test_GDS_Dataset112",
"description": "This is GDS description",
"permissionForCaller": "ADMIN",
"principalsCount": {
"ROLE": 0,
"GROUP": 0,
"USER": 0
},
"aclPrincipalsCount": {
"ROLE": 0,
"GROUP": 0,
"USER": 2
},
"projectsCount": 1,
"totalResourceCount": 1,
"dataShares": [
{
"id": 1,
"guid": "604513a0-2c69-40c4-8ea8-ccecadf47888",
"isEnabled": true,
"createdBy": "Admin",
"updatedBy": "Admin",
"createTime": 1699352449000,
"updateTime": 1702453784000,
"version": 7,
"dataShareId": 1,
"dataShareName": "RangerDataShare22",
"serviceId": 1,
"serviceName": "Ranger_hive",
"zoneId": 2,
"zoneName": "Test-Zone-1",
"resourceCount": 1,
"shareStatus": "ACTIVE",
"approver": "admin"
}
]
}
],
"listSize": 1
}


Thanks,

Prashant Satam