Skip to content

Conversation

@sanjuyadav24
Copy link

🔐 Node 24 Support: Fix Deprecated Crypto APIs for Proxy Authentication

Summary

Updates azure-devops-node-api to support Node.js 24 by replacing deprecated crypto APIs in the _readTaskLibSecrets() method. This is a breaking change that requires azure-pipelines-task-lib v5.2.4+ due to encryption format incompatibility.


🎯 Changes Made

Replaced Deprecated crypto.createDecipher() with crypto.createDecipheriv()

Tasks must update BOTH packages together:

{
  "dependencies": {
    "azure-pipelines-task-lib": "^5.2.4",
    "azure-devops-node-api": "^15.2.0"
  }
}

✅ Testing

Task fails with Node24 upgrade without any changes in task-lib and node-api
image

Task works with updated versions of task-lib and node-api:
https://dev.azure.com/sanjuyadav0415/checkout/_build/results?buildId=5103&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=8e89b867-42fb-5d71-0aab-590696aff14f

@sanjuyadav24 sanjuyadav24 requested a review from a team as a code owner December 24, 2025 12:14
@sanjuyadav24
Copy link
Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants