Skip to content

az functionapp raises CryptographyDeprecationWarning due to outdated version of paramiko #30299

@olsgaard

Description

@olsgaard

Describe the bug

az uses outdated paramiko 3.4.0. Should use 3.4.1 or newer to avoid "CryptographyDeprecationWarning"

Related command

$ az functionapp list > /dev/null

Errors

/opt/az/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"cipher": algorithms.TripleDES,
/opt/az/lib/python3.12/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"class": algorithms.TripleDES,

Issue script & Debug output

There is too much private data in the debug statement to post here.

Expected behavior

No "CryptographyDeprecationWarning"

Environment Summary

azure-cli 2.66.0

core 2.66.0
telemetry 1.1.0

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Extensions directory '/home/supermads/.azure/cliextensions'

Python (Linux) 3.12.7 (main, Oct 30 2024, 03:55:58) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

You can fix the issue locally by running sudo /opt/az/bin/python3 -m pip install --upgrade paramiko which is probably not a good idea.

Metadata

Metadata

Labels

Auto-AssignAuto assign by botFunctionsaz functionappService AttentionThis issue is responsible by Azure service team.Similar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions