Azure-pipelines-tasks: Warning into builds pipelines: Use Cipheriv for counter mode of aes-256-ctr

Created on 15 Jan 2020  路  32Comments  路  Source: microsoft/azure-pipelines-tasks

Issue Description

We faced next warning into all our builds pipelines:

Tasks: Install an Apple provisioning profile, Xcode, PowerShell, Command Line, Shell Script ...

image

Previous issue has not yet been fixed: https://github.com/microsoft/azure-pipelines-tasks/issues/9783

Environment

Server - Azure Pipelines
Agent - Hosted on MacOS/Ubuntu/VS2017/VS2019

Task logs

==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.151.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:776) Warning: Use Cipheriv for counter mode of aes-256-ctr
Generating script.

Release bug

Most helpful comment

@damccorm, @alexander-smolyakov: Hi guys. I'm sorry for tagging, but may I ask about the progress of this issue? It seems that the original problem is fixed in a few tasks, but still happens in "AppCenterDistribute@3" task. This is severe to our organization as we use the tasks in many pipelines :(

All 32 comments

Hi, We have faced with the same issue recently. It looks like it was not reproducing for a long time but returned back a week ago.

@leantk - this is probably an issue with the old task-lib which used a function node has since deprecated, it should be fixable by consuming a newer version of the task-lib

Hi @damccorm, we're seeing a similar issue. We have updated our agents to the latest version (2.164.6), but are still seeing this issue. When you say "consuming a newer version of the task-lib," how do we go about doing that?

Hey @sgerace - that's something the task itself would need to do, its not an agent fix. The task-lib is in reference to the node library we provide which is used by most of our first party tasks. It used to use a cipher algorithm built into node for storing local variables/secrets. That library was deprecated and replaced by the cipheriv algorithm, which is what's leading to this warning.

So the easiest way for this problem to be solved is for any tasks that use the old task-lib (and have this warning appear) to update to use the newest version of the task-lib that we've published (which is currently version 2.9.3)

Currently, in our YAML file we are doing something like this:

    - script: npm ci
      displayName: 'Install node modules'

Which produces the following output:

Screen Shot 2020-01-23 at 10 16 45 AM

I guess my question is how do we update this task to "to use the newest version of the task-lib"? Is it something like this?

- task: [email protected]
  inputs:
    script: npm ci
    displayName: 'Install node modules'

(if so, is there any way to simply always use the latest without specifying a specific version). OR, does it involve actually installing something on the agents?

The cmdline task needs to be updated on our end - we've actually done the work for this in that task specifically, it should roll out over the next few weeks. No action should be required on your end.

Ahh, gotcha, that makes sense. Thanks!

Confirming (as expected) that this occurs Tue. Jan 28 15:05:26 PST 2020 for PythonScript@0...

PythonScriptTask_output

Hi @damccorm ,
I am running a python script in tasks, I am getting this warning from last two weeks.
Screen Shot 2020-01-30 at 10 28 28 AM
Do I need to update my task-lib to use newest version or wait for cmdline task changes to roll out?

Upgrading Azure DevOps GitVersion task on windows-latest hosted build agent from version 4 to 5 removed the warning as well as reduced task execution time from 1m 11 secs to 6 secs.

Same problem here.

What's not working?

Most of the tasks (native or not) in build or release jobs display Use Cipheriv for counter mode of aes-256-ctr

Azure DevOps Type and Version

Azure DevOps 2019 Update 1 on-premises

Agent Version and Platform

2.165.0 Windows and MacOs

This message wasn't diplayed with the agent versions 2.140.0, 2.141.0 or 2.155.1

@leantk any update ?

We have updated most of the tasks including the mentioned PythonScript, Powershell, and Shell. The changes are rolling out now and we are continuing to update the other tasks

I'll compose a list of what is left and add it here this week so it can be tracked

@leantk Great !

Thanks for the update.

@leantk @Fizcko

Guys,
When can we expect this changes. Today also the release to appcenter is failing with not found error. Is there anything we need to do from our end. We had success using the task
2020-03-12T01:57:53.3980673Z ##[section]Starting: Android - Store
2020-03-12T01:57:53.4076928Z ==============================================================================
2020-03-12T01:57:53.4077242Z Task : App Center distribute
2020-03-12T01:57:53.4077548Z Description : Distribute app builds to testers and users via Visual Studio App Center
2020-03-12T01:57:53.4077847Z Version : 3.159.0
2020-03-12T01:57:53.4078051Z Author : Microsoft Corporation
2020-03-12T01:57:53.4078375Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/app-center-distribute
2020-03-12T01:57:53.4078932Z ==============================================================================
2020-03-11T13:33:13.9458318Z (node:1236) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-03-11T13:33:14.3263434Z ##[error]"{\"message\":\"Not found. Context ID: 5485d4fb-7ac0-42dd-8eea-089590675539\",\"statusCode\":404,\"code\":\"Not Found\"}"
http response code: 404

Please confirm.

@vravindranath can you open up a separate issue? The error you're seeing is different from the warnings

I'm also seeing this on the node task (locally hosted agent on windows server)

Starting: Npm

Task         : npm
Description  : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Azure Artifacts.
Version      : 1.169.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/npm

SYSTEMVSSCONNECTION exists true
(node:7436) Warning: Use Cipheriv for counter mode of aes-256-ctr

I am getting this error on self-hosted Ubuntu Linux agent
Build error.txt

I made a separate issue to track this update for all the tasks that call to us:
https://github.com/microsoft/build-task-team/issues/144

Reassigning to Release for Docker task updates. NPM needs updated as well

I made a separate issue to track this update for all the tasks that call to us:
microsoft/build-task-team#144

Dead link! Any news on this subject?

What is the current news about this issue? We are also receiving these. No blocking issues so far, but warnings are a signal something is not good and is a sign for something worse in the future.

Please do provide some feedback on this.

Also getting this on the AzureRmWebAppDeployment@3 task

Is there any progress on this?
Also getting this on the AppCenterDistribute@3 task

2020-09-29T13:43:43.1833800Z ##[section]Starting: Deploy /Users/runner/work/r1/a/{repo_name}/drop/{app_name}.ipa to Visual Studio App Center
2020-09-29T13:43:43.1844620Z ==============================================================================
2020-09-29T13:43:43.1845020Z Task         : App Center distribute
2020-09-29T13:43:43.1845400Z Description  : Distribute app builds to testers and users via Visual Studio App Center
2020-09-29T13:43:43.1845740Z Version      : 3.173.0
2020-09-29T13:43:43.1846000Z Author       : Microsoft Corporation
2020-09-29T13:43:43.1846410Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/app-center-distribute
2020-09-29T13:43:43.1846860Z ==============================================================================
2020-09-29T13:43:44.1702000Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1703260Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1718550Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1719560Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1720310Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1721040Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1721840Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1722570Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1723280Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1724160Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1724930Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1726390Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1727210Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1727940Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1728740Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1729490Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1730210Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1731010Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1731750Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1732470Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1733270Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:44.1734000Z (node:794) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-09-29T13:43:50.1875910Z ##[section]Finishing: Deploy /Users/runner/work/r1/a/_{repo_name}/drop/{app_name}.ipa to Visual Studio App Center

The tasks returns as successful but no bulid is send to App Center

I'm seeing this on the AppCenterDistribute@3 task version 3.173 as well, only it's also failing with a time out too.

Edit - looks like this task has been printing this out for a long time (month+ at least going back through my pipeline history). Appcenter is returning 502 but imagine it's unrelated to that printout, might just be a blip appcenter side

I encounter the same issue as @asg-trifork (with App Center distribute task, version 3, in Release pipeline). Although it shows as a warning, it's critically an error to me because the app is not distributed to AppCenter as promised.

@damccorm, @alexander-smolyakov: Hi guys. I'm sorry for tagging, but may I ask about the progress of this issue? It seems that the original problem is fixed in a few tasks, but still happens in "AppCenterDistribute@3" task. This is severe to our organization as we use the tasks in many pipelines :(

We are getting the same warning on Azure Build Pipeline while running Ghost Inspector Extension. Any update on this?
image

Hello,

I have the same issue using Ansible Extension:

2020-11-12T08:56:44.5866532Z (node:21928) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-11-12T08:56:44.5868036Z (node:21928) Warning: Use Cipheriv for counter mode of aes-256-ctr
[..]
2020-11-12T08:56:44.5887078Z (node:21928) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-11-12T08:56:44.5888122Z (node:21928) Warning: Use Cipheriv for counter mode of aes-256-ctr

The output is showing up as failed even if the ansible return is success.

Here to report the same issue using App Center Distribute, Task Version 3.*

Was this page helpful?
0 / 5 - 0 ratings