[jira] [Created] (RANGER-4533) REST API to retrieve service-headers, with optional prefix-filter

2023-11-16 Thread Madhan Neethiraj (Jira)
Madhan Neethiraj created RANGER-4533:


 Summary: REST API to retrieve service-headers, with optional 
prefix-filter
 Key: RANGER-4533
 URL: https://issues.apache.org/jira/browse/RANGER-4533
 Project: Ranger
  Issue Type: Improvement
  Components: Ranger
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj


To support UI scenarios involving user selecting a service, a light-weight REST 
API that returns only minimal details of services like, {{{ id, name, type }}} 
will be useful. Support to return only services having name starts with a given 
input will help in lookup as user types in UI.



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


Re: Request for adding as contributor

2023-11-16 Thread Selvamohan Neethiraj

Hello,

Thank you for your interest in contributing to Apache Ranger. You now 
have contributor access.


Welcome to Apache Ranger.

Thanks,
Selva-
Apache Ranger PMC

On 11/17/23 2:36 AM, Suja S wrote:

Hello Team,

I would like to contribute to Apache Ranger project. Could you please add
me as a contributor to the project.

Email id: sujas...@gmail.com
JIRA id: suja


Thanks
Suja



Request for adding as contributor

2023-11-16 Thread Suja S
Hello Team,

I would like to contribute to Apache Ranger project. Could you please add
me as a contributor to the project.

Email id: sujas...@gmail.com
JIRA id: suja


Thanks
Suja


[jira] [Updated] (RANGER-4532) Optimize policy listing loader after session timeout and Audit Admin session ID modal loader

2023-11-16 Thread Mugdha Varadkar (Jira)


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

Mugdha Varadkar updated RANGER-4532:

Description: 
Optimize policy listing  loader after session timeout and Audit Admin session 
ID modal loader.

Current behaviour  :-
1) After session timeout, if we navigate to policy listing page then "Something 
went wrong page is seen" for fraction of seconds.
2) In Audit admin session Id modal, the loader is not in sync.

Improvising the loader logic in both above the scenarios. 

  was:
Optimize policy listing  loader after session timeout and  Audit Admin session 
ID modal loader.

Current behaviour  :-
1)After session timeout, if we navigate to policy listing page then "Something 
went wrong page" is seen before going to login page.
2)In Audit admin session Id modal, the loader is not in sync.

Improvise a loader in both the scenarios. 
1)Add a loader in policy page.
2)Sync the loader in audit session Id modal




> Optimize policy listing  loader after session timeout  and  Audit Admin 
> session ID modal loader
> ---
>
> Key: RANGER-4532
> URL: https://issues.apache.org/jira/browse/RANGER-4532
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Brijesh Bhalala
>Assignee: Brijesh Bhalala
>Priority: Major
>  Labels: ranger-react
> Fix For: 3.0.0
>
>
> Optimize policy listing  loader after session timeout and Audit Admin session 
> ID modal loader.
> Current behaviour  :-
> 1) After session timeout, if we navigate to policy listing page then 
> "Something went wrong page is seen" for fraction of seconds.
> 2) In Audit admin session Id modal, the loader is not in sync.
> Improvising the loader logic in both above the scenarios. 



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


[jira] [Updated] (RANGER-4532) Optimize policy listing loader after session timeout and Audit Admin session ID modal loader

2023-11-16 Thread Brijesh Bhalala (Jira)


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

Brijesh Bhalala updated RANGER-4532:

Description: 
Optimize policy listing  loader after session timeout and  Audit Admin session 
ID modal loader.

Current behaviour  :-
1)After session timeout, if we navigate to policy listing page then "Something 
went wrong page" is seen before going to login page.
2)In Audit admin session Id modal, the loader is not in sync.

Improvise a loader in both the scenarios. 
1)Add a loader in policy page.
2)Sync the loader in audit session Id modal



  was:
Optimize policy listing  loader after session timeout and  Audit Admin session 
ID modal loader.

Current behaviour  :-
1)After session timeout, if we navigate to policy listing page then "Something 
went wrong page is seen".
2)In Audit admin session Id modal, the loader is not in sync.

Improvise a loader in both the scenarios. 




> Optimize policy listing  loader after session timeout  and  Audit Admin 
> session ID modal loader
> ---
>
> Key: RANGER-4532
> URL: https://issues.apache.org/jira/browse/RANGER-4532
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Brijesh Bhalala
>Assignee: Brijesh Bhalala
>Priority: Major
>  Labels: ranger-react
> Fix For: 3.0.0
>
>
> Optimize policy listing  loader after session timeout and  Audit Admin 
> session ID modal loader.
> Current behaviour  :-
> 1)After session timeout, if we navigate to policy listing page then 
> "Something went wrong page" is seen before going to login page.
> 2)In Audit admin session Id modal, the loader is not in sync.
> Improvise a loader in both the scenarios. 
> 1)Add a loader in policy page.
> 2)Sync the loader in audit session Id modal



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


[jira] [Updated] (RANGER-4532) Optimize policy listing loader after session timeout and Audit Admin session ID modal loader

2023-11-16 Thread Brijesh Bhalala (Jira)


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

Brijesh Bhalala updated RANGER-4532:

Fix Version/s: 3.0.0

> Optimize policy listing  loader after session timeout  and  Audit Admin 
> session ID modal loader
> ---
>
> Key: RANGER-4532
> URL: https://issues.apache.org/jira/browse/RANGER-4532
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Brijesh Bhalala
>Assignee: Brijesh Bhalala
>Priority: Major
>  Labels: ranger-react
> Fix For: 3.0.0
>
>
> Optimize policy listing  loader after session timeout and  Audit Admin 
> session ID modal loader.
> Current behaviour  :-
> 1)After session timeout, if we navigate to policy listing page then 
> "Something went wrong page is seen".
> 2)In Audit admin session Id modal, the loader is not in sync.
> Improvise a loader in both the scenarios. 



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


[jira] [Updated] (RANGER-4532) Optimize policy listing loader after session timeout and Audit Admin session ID modal loader

2023-11-16 Thread Brijesh Bhalala (Jira)


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

Brijesh Bhalala updated RANGER-4532:

Labels: ranger-react  (was: )

> Optimize policy listing  loader after session timeout  and  Audit Admin 
> session ID modal loader
> ---
>
> Key: RANGER-4532
> URL: https://issues.apache.org/jira/browse/RANGER-4532
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Brijesh Bhalala
>Assignee: Brijesh Bhalala
>Priority: Major
>  Labels: ranger-react
>
> Optimize policy listing  loader after session timeout and  Audit Admin 
> session ID modal loader.
> Current behaviour  :-
> 1)After session timeout, if we navigate to policy listing page then 
> "Something went wrong page is seen".
> 2)In Audit admin session Id modal, the loader is not in sync.
> Improvise a loader in both the scenarios. 



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


[jira] [Created] (RANGER-4532) Optimize policy listing loader after session timeout and Audit Admin session ID modal loader

2023-11-16 Thread Brijesh Bhalala (Jira)
Brijesh Bhalala created RANGER-4532:
---

 Summary: Optimize policy listing  loader after session timeout  
and  Audit Admin session ID modal loader
 Key: RANGER-4532
 URL: https://issues.apache.org/jira/browse/RANGER-4532
 Project: Ranger
  Issue Type: Improvement
  Components: Ranger
Reporter: Brijesh Bhalala
Assignee: Brijesh Bhalala


Optimize policy listing  loader after session timeout and  Audit Admin session 
ID modal loader.

Current behaviour  :-
1)After session timeout, if we navigate to policy listing page then "Something 
went wrong page is seen".
2)In Audit admin session Id modal, the loader is not in sync.

Improvise a loader in both the scenarios. 





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


Re: Review Request 74696: RANGER-4360 : Error page 'Go back' button not redirecting to the right page.

2023-11-16 Thread Mugdha Varadkar

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


Ship it!




Ship It!

- Mugdha Varadkar


On Nov. 17, 2023, 6:16 a.m., Dhaval Rajpara wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74696/
> ---
> 
> (Updated Nov. 17, 2023, 6:16 a.m.)
> 
> 
> Review request for ranger, Brijesh Bhalala, Dhaval Shah, Dineshkumar Yadav, 
> Kishor Gollapalliwar, Madhan Neethiraj, Mehul Parikh, Mugdha Varadkar, 
> Pradeep Agrawal, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-4360
> https://issues.apache.org/jira/browse/RANGER-4360
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> On error page Go back button not work properly
> 
> 
> Diffs
> -
> 
>   security-admin/src/main/webapp/react-webapp/src/utils/XAUtils.js 93629855c 
>   security-admin/src/main/webapp/react-webapp/src/utils/fetchAPI.js fbdd91737 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogs.jsx
>  c189c0a1b 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AdminLogs.jsx
>  6575dae24 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AuditLayout.jsx
>  0537496f3 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/LoginSessionsLogs.jsx
>  28d2bdb3e 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/PluginStatusLogs.jsx
>  cf4727514 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/PluginsLog.jsx
>  55caa90bd 
>   
> security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/UserSync.jsx 
> 0abe30017 
>   
> security-admin/src/main/webapp/react-webapp/src/views/Encryption/KeyManager.jsx
>  98ea88280 
>   security-admin/src/main/webapp/react-webapp/src/views/ErrorPage.jsx 
> 9e99e5077 
>   security-admin/src/main/webapp/react-webapp/src/views/Home.jsx 3dee1d086 
>   security-admin/src/main/webapp/react-webapp/src/views/Layout.jsx 49edc2861 
>   
> security-admin/src/main/webapp/react-webapp/src/views/PermissionsModule/Permissions.jsx
>  730d40103 
>   
> security-admin/src/main/webapp/react-webapp/src/views/PolicyListing/AddUpdatePolicyForm.jsx
>  90595f1b8 
>   
> security-admin/src/main/webapp/react-webapp/src/views/PolicyListing/PolicyListing.jsx
>  c1752c252 
>   
> security-admin/src/main/webapp/react-webapp/src/views/PolicyListing/PolicyListingTabView.jsx
>  44d9f1da9 
>   
> security-admin/src/main/webapp/react-webapp/src/views/Reports/UserAccessLayout.jsx
>  e3d09c51e 
>   
> security-admin/src/main/webapp/react-webapp/src/views/SecurityZone/SecurityZoneForm.jsx
>  d97dcf041 
>   
> security-admin/src/main/webapp/react-webapp/src/views/SecurityZone/ZoneListing.jsx
>  e672611dd 
>   
> security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceDefinitions.jsx
>  0b2f46bec 
>   
> security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceForm.jsx
>  2df0c4d63 
>   security-admin/src/main/webapp/react-webapp/src/views/SideBar/SideBar.jsx 
> e0ad55d59 
>   
> security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/UserGroupRoleListing.jsx
>  bd829636e 
>   
> security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/groups_details/GroupListing.jsx
>  332a3940d 
>   
> security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/role_details/RoleListing.jsx
>  8caecf058 
>   
> security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserListing.jsx
>  dee4b196d 
> 
> 
> Diff: https://reviews.apache.org/r/74696/diff/2/
> 
> 
> Testing
> ---
> 
> Tested changes on a cluster setup with Ranger Admin build with React JS code 
> base.
> 
> 
> Verfied these Error page 'Go back' button redirecting to the right page on 
> all module properly.
> 
> 
> Successful completion of build command :
> mvn clean compile package
> 
> 
> Thanks,
> 
> Dhaval Rajpara
> 
>



Re: Review Request 74696: RANGER-4360 : Error page 'Go back' button not redirecting to the right page.

2023-11-16 Thread Dhaval Rajpara

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

(Updated Nov. 17, 2023, 6:16 a.m.)


Review request for ranger, Brijesh Bhalala, Dhaval Shah, Dineshkumar Yadav, 
Kishor Gollapalliwar, Madhan Neethiraj, Mehul Parikh, Mugdha Varadkar, Pradeep 
Agrawal, and Velmurugan Periasamy.


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


Repository: ranger


Description
---

On error page Go back button not work properly


Diffs
-

  security-admin/src/main/webapp/react-webapp/src/utils/XAUtils.js 93629855c 
  security-admin/src/main/webapp/react-webapp/src/utils/fetchAPI.js fbdd91737 
  
security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogs.jsx 
c189c0a1b 
  
security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AdminLogs.jsx 
6575dae24 
  
security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AuditLayout.jsx
 0537496f3 
  
security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/LoginSessionsLogs.jsx
 28d2bdb3e 
  
security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/PluginStatusLogs.jsx
 cf4727514 
  
security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/PluginsLog.jsx 
55caa90bd 
  security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/UserSync.jsx 
0abe30017 
  
security-admin/src/main/webapp/react-webapp/src/views/Encryption/KeyManager.jsx 
98ea88280 
  security-admin/src/main/webapp/react-webapp/src/views/ErrorPage.jsx 9e99e5077 
  security-admin/src/main/webapp/react-webapp/src/views/Home.jsx 3dee1d086 
  security-admin/src/main/webapp/react-webapp/src/views/Layout.jsx 49edc2861 
  
security-admin/src/main/webapp/react-webapp/src/views/PermissionsModule/Permissions.jsx
 730d40103 
  
security-admin/src/main/webapp/react-webapp/src/views/PolicyListing/AddUpdatePolicyForm.jsx
 90595f1b8 
  
security-admin/src/main/webapp/react-webapp/src/views/PolicyListing/PolicyListing.jsx
 c1752c252 
  
security-admin/src/main/webapp/react-webapp/src/views/PolicyListing/PolicyListingTabView.jsx
 44d9f1da9 
  
security-admin/src/main/webapp/react-webapp/src/views/Reports/UserAccessLayout.jsx
 e3d09c51e 
  
security-admin/src/main/webapp/react-webapp/src/views/SecurityZone/SecurityZoneForm.jsx
 d97dcf041 
  
security-admin/src/main/webapp/react-webapp/src/views/SecurityZone/ZoneListing.jsx
 e672611dd 
  
security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceDefinitions.jsx
 0b2f46bec 
  
security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceForm.jsx
 2df0c4d63 
  security-admin/src/main/webapp/react-webapp/src/views/SideBar/SideBar.jsx 
e0ad55d59 
  
security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/UserGroupRoleListing.jsx
 bd829636e 
  
security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/groups_details/GroupListing.jsx
 332a3940d 
  
security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/role_details/RoleListing.jsx
 8caecf058 
  
security-admin/src/main/webapp/react-webapp/src/views/UserGroupRoleListing/users_details/UserListing.jsx
 dee4b196d 


Diff: https://reviews.apache.org/r/74696/diff/2/


Testing (updated)
---

Tested changes on a cluster setup with Ranger Admin build with React JS code 
base.


Verfied these Error page 'Go back' button redirecting to the right page on all 
module properly.


Successful completion of build command :
mvn clean compile package


Thanks,

Dhaval Rajpara



Re: Review Request 74625: RANGER-4438: Read JAVA_OPTS in ranger db setup python script

2023-11-16 Thread Pradeep Agrawal


> On Oct. 13, 2023, 9:36 a.m., bhavik patel wrote:
> > Can you kindly add for ranger-kms?

Please review the updated patch


- Pradeep


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


On Oct. 25, 2023, 10:10 a.m., Pradeep Agrawal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74625/
> ---
> 
> (Updated Oct. 25, 2023, 10:10 a.m.)
> 
> 
> Review request for ranger, Abhishek  Kumar, bhavik patel, Dhaval Shah, 
> Dineshkumar Yadav, Kishor Gollapalliwar, Abhay Kulkarni, Madhan Neethiraj, 
> Mehul Parikh, Ramesh Mani, Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-4438
> https://issues.apache.org/jira/browse/RANGER-4438
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> **Problem Statement:** Currently db_setup.py file does not accepts or add 
> JAVA_OPTS options in java commands executed from db_setup.py and 
> changepasswordutil.py file. In certain environment user may need these 
> options to execute the java commands successfully.
> 
> **Proposed Solution:** 
> In the proposed patch, db_setup.py and changepasswordutil.py file can read 
> JAVA_OPTS from environment variable and pass that to java class run command 
> being executed from the same file.
> Alternatively user can provide the same in install.propeties via java_opts 
> property. setup.sh shall export the java_opts value as JAVA_OPTS environement 
> variable.
> 
> 
> Diffs
> -
> 
>   kms/scripts/db_setup.py d21a6ac75 
>   kms/scripts/install.properties 0e5da3c75 
>   kms/scripts/setup.sh f723e09bb 
>   security-admin/scripts/changepasswordutil.py e45dab643 
>   security-admin/scripts/db_setup.py 24502f4fb 
>   security-admin/scripts/install.properties b8e864e9a 
>   security-admin/scripts/setup.sh 750455f08 
> 
> 
> Diff: https://reviews.apache.org/r/74625/diff/2/
> 
> 
> Testing
> ---
> 
> Steps:
> 1. Exported a JAVA_OPTS option '-Xms1g' by running the command export 
> JAVA_OPTS='-Xms1g' on the console.
> 2. Added debug statement in db_setup.py file to print java class run command 
> which are usually executed when db_setup.py is called.
> 2. Executed the setup.sh file
> 3. setup.sh command executed succesfully and can see debug logs with added 
> JAVA_OPTS '-Xms1g'
> 
> 
> Thanks,
> 
> Pradeep Agrawal
> 
>



[jira] [Commented] (RANGER-4438) Read JAVA_OPTS in ranger db setup python script

2023-11-16 Thread Pradeep Agrawal (Jira)


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

Pradeep Agrawal commented on RANGER-4438:
-

[~bpatel] : Please review the updated RR: https://reviews.apache.org/r/74625/

> Read JAVA_OPTS in ranger db setup python script
> ---
>
> Key: RANGER-4438
> URL: https://issues.apache.org/jira/browse/RANGER-4438
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Affects Versions: 3.0.0
>Reporter: Pradeep Agrawal
>Assignee: Pradeep Agrawal
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: 0001-RANGER-4438.patch
>
>




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


[jira] [Updated] (RANGER-4531) update GdsPolicyEngine with methods to find datasets/projects for principals

2023-11-16 Thread Madhan Neethiraj (Jira)


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

Madhan Neethiraj updated RANGER-4531:
-
Attachment: RANGER-4531.patch

> update GdsPolicyEngine with methods to find datasets/projects for principals
> 
>
> Key: RANGER-4531
> URL: https://issues.apache.org/jira/browse/RANGER-4531
> Project: Ranger
>  Issue Type: Sub-task
>  Components: plugins
>Reporter: Madhan Neethiraj
>Assignee: Madhan Neethiraj
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: RANGER-4531.patch
>
>
> GdsPolicyEngine should provide APIs to find datasets and projects having 
> policies for given principals (users/groups/roles).



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


Review Request 74742: RANGER-4531: updated GdsPolicyEngine with methods to find datasets/projects for a given principal

2023-11-16 Thread Madhan Neethiraj

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

Review request for ranger, Anand Nadar, Abhay Kulkarni, Mehul Parikh, Monika 
Kachhadiya, Pradeep Agrawal, Ramesh Mani, and Subhrat Chaudhary.


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


Repository: ranger


Description
---

- added following methods in GdsPolicyEngine:
-- getDatasetsForPrincipals(): get datasets for given principals
-- getProjectsForPrincipals(): get projects for given principals
-- getDatasetResources(): get resources in a dataset
-- getProjectResources(): get resources in a project
-- getDataShareResources(): get resources in a dataShare


Diffs
-

  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsDataShareEvaluator.java
 4936a86ed 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsDatasetEvaluator.java
 aa9fbea7c 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsDipEvaluator.java
 a5256ca4c 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsDshidEvaluator.java
 c32f22b27 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsPolicyEngine.java
 337134fe4 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsProjectEvaluator.java
 17a86163b 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsSharedResourceEvaluator.java
 726331271 
  
agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerPolicyEvaluator.java
 2856ccc6b 
  
agents-common/src/test/java/org/apache/ranger/plugin/policyengine/gds/TestGdsPolicyEngine.java
 9d1560562 
  agents-common/src/test/resources/policyengine/gds/gds_info_hive.json 
34fcc6290 
  
agents-common/src/test/resources/policyengine/gds/test_gds_policy_engine_hive.json
 2ab93bde6 


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


Testing
---

- added unit tests to validate APIs
- verified that all existing tests pass successfully


Thanks,

Madhan Neethiraj



[jira] [Created] (RANGER-4531) update GdsPolicyEngine with methods to find datasets/projects for principals

2023-11-16 Thread Madhan Neethiraj (Jira)
Madhan Neethiraj created RANGER-4531:


 Summary: update GdsPolicyEngine with methods to find 
datasets/projects for principals
 Key: RANGER-4531
 URL: https://issues.apache.org/jira/browse/RANGER-4531
 Project: Ranger
  Issue Type: Sub-task
  Components: plugins
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj


GdsPolicyEngine should provide APIs to find datasets and projects having 
policies for given principals (users/groups/roles).



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


Re: Review Request 74741: RANGER-4530: fixed GDS update APIs to not require guid in payload

2023-11-16 Thread Ramesh Mani

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


Ship it!




Ship It!

- Ramesh Mani


On Nov. 16, 2023, 8:10 p.m., Madhan Neethiraj wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74741/
> ---
> 
> (Updated Nov. 16, 2023, 8:10 p.m.)
> 
> 
> Review request for ranger, Anand Nadar, Ankita Sinha, Dhaval Rajpara, Abhay 
> Kulkarni, Mehul Parikh, Monika Kachhadiya, Mugdha Varadkar, Prashant Satam, 
> Ramesh Mani, and Subhrat Chaudhary.
> 
> 
> Bugs: RANGER-4530
> https://issues.apache.org/jira/browse/RANGER-4530
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> - updated APIs to copy GUID value from existing object
> - removed unnecessary annotation from GET API calls: @Consumes({ 
> "application/json" })
> 
> 
> Diffs
> -
> 
>   security-admin/src/main/java/org/apache/ranger/biz/GdsDBStore.java 
> 6390f0547 
>   security-admin/src/main/java/org/apache/ranger/rest/GdsREST.java b1dc9d37d 
> 
> 
> Diff: https://reviews.apache.org/r/74741/diff/1/
> 
> 
> Testing
> ---
> 
> - verified that update calls succeed even when GUID is not provided in the 
> payload
> 
> 
> Thanks,
> 
> Madhan Neethiraj
> 
>



[jira] [Updated] (RANGER-4530) GDS update APIs fail when guid is not included in payload

2023-11-16 Thread Madhan Neethiraj (Jira)


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

Madhan Neethiraj updated RANGER-4530:
-
Attachment: RANGER-4530.patch

> GDS update APIs fail when guid is not included in payload
> -
>
> Key: RANGER-4530
> URL: https://issues.apache.org/jira/browse/RANGER-4530
> Project: Ranger
>  Issue Type: Sub-task
>  Components: Ranger
>Reporter: Madhan Neethiraj
>Assignee: Madhan Neethiraj
>Priority: Major
> Fix For: 3.0.0
>
> Attachments: RANGER-4530.patch
>
>
> GDS APIs to update objects like DataShareInDataset fail if the pay load 
> doesn't include guid. Since update is called for a specific object-id, it 
> shouldn't require guid to be provided.



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


Review Request 74741: RANGER-4530: fixed GDS update APIs to not require guid in payload

2023-11-16 Thread Madhan Neethiraj

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

Review request for ranger, Anand Nadar, Ankita Sinha, Dhaval Rajpara, Abhay 
Kulkarni, Mehul Parikh, Monika Kachhadiya, Mugdha Varadkar, Prashant Satam, 
Ramesh Mani, and Subhrat Chaudhary.


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


Repository: ranger


Description
---

- updated APIs to copy GUID value from existing object
- removed unnecessary annotation from GET API calls: @Consumes({ 
"application/json" })


Diffs
-

  security-admin/src/main/java/org/apache/ranger/biz/GdsDBStore.java 6390f0547 
  security-admin/src/main/java/org/apache/ranger/rest/GdsREST.java b1dc9d37d 


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


Testing
---

- verified that update calls succeed even when GUID is not provided in the 
payload


Thanks,

Madhan Neethiraj



[jira] [Created] (RANGER-4530) GDS update APIs fail when guid is not included in payload

2023-11-16 Thread Madhan Neethiraj (Jira)
Madhan Neethiraj created RANGER-4530:


 Summary: GDS update APIs fail when guid is not included in payload
 Key: RANGER-4530
 URL: https://issues.apache.org/jira/browse/RANGER-4530
 Project: Ranger
  Issue Type: Sub-task
  Components: Ranger
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj


GDS APIs to update objects like DataShareInDataset fail if the pay load doesn't 
include guid. Since update is called for a specific object-id, it shouldn't 
require guid to be provided.



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