-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure cli 2.45.0 - CryptographyDeprecationWarning: Blowfish has been deprecated #25406
Comments
route to CXP team |
I've downgraded the azure cli version to 2.44.1 and the certificate is uploaded successfully, so it seems to be an issue with azure cli 2.45.0 |
'--only-show-errors' option doesn't block this warning. As a result, PS script fails with error. |
May be you should check also if this is causing the issue in #25443 |
The only thing which unblocked me was editing the file
After saving this This is workaround, and I'd not recommend using it on Production. |
If you're on Windows, you will find the file here : "C:\Users\YOURUSERNAME.Azure\cliextensions\azure-cli-ml\paramiko" |
Problem also occurs on other az web subcommands, like a simple: /usr/local/Cellar/azure-cli/2.45.0/libexec/lib/python3.10/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated |
Seems to be an issue across all az webapp commands. Investigating this and will follow up. |
Engineering identified the issued and opened a PR with a fix |
While @tjackadams was able to get past the issue by downgrading the azure cli version to 2.44.1, I am wondering how can do something similar on AzDevOps (cloud) using microsoft hosted agents? |
@rahulbhansali2111 According to the software inventory the latest win and ubuntu agents have version 2.44.1 of azure cli installed https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md |
We are having the same issue on the windows-2022 agent using the AzureCLI@2 task in Azure DevOps.
The inline script runs perfectly fine, and then the task fails right at the very end with this error.
Is there any known workaround or ETA? |
@seanke A temporary fix would be to change That will ignore the error (and any others) until the real fix goes into place, then you can revert the change. |
Any idea when it might be released? |
Latest would be beginning of March with the release of version 2.46.0. Will need to follow up and see if this can go out earlier with a potential patch version. |
@seligj95 … a 2.45.1 patch release would be great 🤫 |
It looks like the DevOps-hosted agents all got updated to 2.45.0 and we are now seeing this issue in our pipelines. Is there a way to specify the Azure CLI version for hosted agents? |
This is not a practical solution
So please rollback the agent upgrade or release a hot-fix for AzCLI. |
/opt/az/lib/python3.10/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated Our pipeline have started failing as well. Please provide a hotfix or a better workaround. |
If it helps anyone using azcli@2 task :
|
I would not recommend doing this, since other critical errors that need to be dealt with will be ignored and the pipeline is not idempotent anymore. Why is this issue closed when no solution or clear communication has been provided? The update failed quality assurance tests and it's unacceptable to expect us to add unsanitary code to cover this fuck up. Since the update introduces breaking changes, it should be rolled back. Even adding additional scripts to revert the version should not be accepted as a workaround. No one is able to do that for thousands of pipelines. Ignoring error handling completely is a disastrous recommendation. |
We apologize for the issues here. I've attempted to get a patch release with the fix applied but that doesn't look like it will happen. This issue was automatically closed when the linked PR with the fix was completed. This fix will go out with the next CLI release on March 7. |
Lot of Azure pipelines are failing because of this issue and even Azure cloud shell has this issue. Could you please re-consider patching this to existing release?
|
Same error here when I tried to use: |
So strange that this isn't cosndiered a breaking change or worthy enough for a hotfix. Lots of pipelines and tools broken (even in cloudshell) but there's no sense of urgency. |
Please update to the latest CLI version 2.46.0. This has been fixed. |
The When I can expect to see these changes rolled to the |
Hello, /usr/bin/az --version ##[error]WARNING: Readonly attribute name will be ignored in class <class 'azure.mgmt.resource.locks.v2016_09_01.models._models_py3.ManagementLockObject'> |
The topic of using |
Related command
az webapp config ssl upload
Describe the bug
We receive the following error in the devops agent task logs when executing this command
As a result, the pipeline task fails and the certificate is not uploaded.
To Reproduce
Open a terminal and login with managed identity
run the certificate upload command
Expected behavior
The certificate to be uploaded successfully.
Environment summary
Additional context
Doesn't seem to be an issue with az cli 2.44.1
Possibly related paramiko/paramiko#2038
The text was updated successfully, but these errors were encountered: