[ 
https://issues.apache.org/jira/browse/KAFKA-8423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16849908#comment-16849908
 ] 

Ewen Cheslack-Postava commented on KAFKA-8423:
----------------------------------------------

[~htewari] The warning is actually coming from the paramiko library, so in a 
sense we're two levels removed from the actual source of the problem. This is, 
indeed an issue in ducktape in that the dependency on paramiko would need to be 
updated there, but checking the most recent released version of paramiko atm 
(2.4.2), 
[https://github.com/paramiko/paramiko/blob/2.4.2/paramiko/kex_ecdh_nist.py#L39] 
indicates paramiko is still using the same methods and hasn't updated. To fix 
this we might need to contribute patch upstream to paramiko, wait for them to 
release, then update the paramiko dependency in ducktape, release ducktape, and 
finally update the ducktape dependency here in Kafka.

> Update ducktape to not use deprecated APIs
> ------------------------------------------
>
>                 Key: KAFKA-8423
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8423
>             Project: Kafka
>          Issue Type: Improvement
>          Components: system tests
>    Affects Versions: 2.3.0
>            Reporter: Matthias J. Sax
>            Assignee: Hardik Tewari
>            Priority: Major
>
> Running system tests locally, I see the following warnings:
> {code:java}
> /usr/local/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:39: 
> CryptographyDeprecationWarning: encode_point has been deprecated on 
> EllipticCurvePublicNumbers and will be removed in a future version. Please 
> use EllipticCurvePublicKey.public_bytes to obtain both compressed and 
> uncompressed point encoding.
> m.add_string(self.Q_C.public_numbers().encode_point())
> /usr/local/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:94: 
> CryptographyDeprecationWarning: Support for unsafe construction of public 
> numbers from encoded data will be removed in a future version. Please use 
> EllipticCurvePublicKey.from_encoded_point
> self.curve, Q_S_bytes
> /usr/local/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:109: 
> CryptographyDeprecationWarning: encode_point has been deprecated on 
> EllipticCurvePublicNumbers and will be removed in a future version. Please 
> use EllipticCurvePublicKey.public_bytes to obtain both compressed and 
> uncompressed point encoding.
> hm.add_string(self.Q_C.public_numbers().encode_point())
> {code}
> We should update the code to not use deprecated APIs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to