You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Selvamohan Neethiraj (Jira)" <ji...@apache.org> on 2023/03/31 06:21:00 UTC
[jira] [Updated] (RANGER-4064) RANGER-3348 introduces bug in python client for SSL enabled clusters
[ https://issues.apache.org/jira/browse/RANGER-4064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Selvamohan Neethiraj updated RANGER-4064:
-----------------------------------------
Fix Version/s: 3.0.0
(was: 2.4.0)
> RANGER-3348 introduces bug in python client for SSL enabled clusters
> --------------------------------------------------------------------
>
> Key: RANGER-4064
> URL: https://issues.apache.org/jira/browse/RANGER-4064
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 2.2.0
> Reporter: Abhishek Kumar
> Assignee: Abhishek Kumar
> Priority: Major
> Fix For: 3.0.0
>
>
> Bug was introduced in RANGER-3348 wherein using the python client on an SSL enabled cluster w/o host verification is no longer possible.
> ranger.session.verify = False # this was used to skip host verification earlier whereas in current code it is not possible to do so.
> >>> from apache_ranger.model.ranger_service import *
> >>> from apache_ranger.client.ranger_client import *
> >>> from apache_ranger.model.ranger_policy import *
> >>> ranger_url = 'someurl'
> >>> ranger_auth = ('admin', 'XXXXXXXXXXXXX')
> >>> from requests_kerberos import HTTPKerberosAuth
> >>> ranger_auth = HTTPKerberosAuth()
> >>> ranger = RangerClient(ranger_url, ranger_auth)
> >>> ranger.
> Display all 123 possibilities? (y or n)
> >>> ranger.session.verify = True
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> AttributeError: 'RangerClient' object has no attribute 'session'
> CC: [~kishor.gollapalliwar]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)