Change in vdsm[master]: client: do not protect requests on client side
ybronhei at redhat.com
ybronhei at redhat.com
Tue Apr 19 10:21:43 UTC 2016
Yaniv Bronhaim has posted comments on this change.
Change subject: client: do not protect requests on client side
......................................................................
Patch Set 1:
(2 comments)
https://gerrit.ovirt.org/#/c/56288/1/lib/vdsm/jsonrpcvdscli.py
File lib/vdsm/jsonrpcvdscli.py:
Line 103: params = self._prepare_args(class_name, method_name, args, kwargs)
Line 104:
Line 105: req = JsonRpcRequest(method, params, reqId=str(uuid4()), protect=False)
Line 106:
Line 107: responses = self._client.call(
the client should unfold the password imo before sending it . is it reasonable to request that?
Line 108: req, timeout=self._timeouts.get(
Line 109: method_name,
Line 110: kwargs.pop('_transport_timeout', self._default_timeout)))
Line 111: if responses:
https://gerrit.ovirt.org/#/c/56288/1/lib/yajsonrpc/__init__.py
File lib/yajsonrpc/__init__.py:
Line 93: "%s request." % method)
Line 94:
Line 95:
Line 96: class JsonRpcRequest(object):
Line 97: def __init__(self, method, params=(), reqId=None, protect=True):
it is called protect_passwords for a reason. what is protect? for jsonrpc I'd assume secure connection..
Line 98: self.method = method
Line 99: if protect:
Line 100: self.params = protect_passwords(params)
Line 101: else:
--
To view, visit https://gerrit.ovirt.org/56288
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I197591fbf0fb42647267b6901998324dd02a8080
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Simone Tiraboschi <stirabos at redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list