assisi / assisipy

Python API for the ASSISI|bf project.
Other
0 stars 3 forks source link

Crypto Warning when using deploy or assisirun tools #95

Closed rmm-fcul closed 6 years ago

rmm-fcul commented 7 years ago

Executing deployment toolsuite now emits the following warning for each CASU that is connected to (assisirun) or once per deployment target (deploy):

/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: 
CTR mode needs counter parameter, not IV
  self._cipher = factory.new(key, *args, **kwargs)

It is just a warning right now but it isn't clear whether there are knock-on effects -- and it also creates pollution. I couldn't find any direct calls to ciphers in the assisipy code, but informal probing seems to suggest it is part of the fabric "settings" context manager. I don't know how to catch specific warnings and ignore when they are not directly in user code.

I'm using ubuntu 16.04, assisipy 0.16.0.

dmiklic commented 7 years ago

Thanks for reporting this! According to this post, it is a problem with paramiko (the cryptographic library used by fabric). Looks like it's already solved upstream so I'd just wait for the fix to propagate to the official repos. I'll leave the issue open until that happens.