microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.42k stars 2.59k forks source link

Azure resource group deployment v2 task shows warnings #14536

Open trolleyboy opened 3 years ago

trolleyboy commented 3 years ago

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: AzureResourceGroupDeploymentV2

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Issue Description

[Include task name(s), screenshots and any other relevant details] Warnings showing during deployments:

##[warning]Resource file has already set to: D:\a\_tasks\AzureResourceGroupDeployment_94a74903-f93f-4075-884f-dc11f34058b4\2.184.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json

and

(node:1252) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

The task does complete successfully.

emilpeder commented 3 years ago

Just input: We see the same thing. Seems to be a consequence of moving from version 2.182.0 to 2.184.0 of the task.

bishal-pdMSFT commented 3 years ago

@ddivanshu can you please take a look here

alfhj commented 3 years ago

Any update? This doesn't seem to affect the pipelines, but it creates some clutter. Related issue: #14284

ddivanshu commented 3 years ago

Since this is warning and not affecting pipeline behavior, we are not currently prioritising it. However based upon code changes , fix does n't seems to be too hard.Will be resolving it somewhere in April.

DavidAtTfL commented 3 years ago

@ddivanshu thank you for the update and the prognosis!

Although as you say this doesn't affect pipeline behaviour, it definitely affects developer behaviour! Our pipelines are drowning in false alarms and it has already become the cases the our teams just ignore warnings on pipelines now ("oh that's just another bug with the task"). False warnings are more than a nuisance.

All this to really just ask for an update 😄. Thanks for looking into it.

alfhj commented 3 years ago

@DavidAtTfL for the time being, this task does not produce these warnings: AzureResourceManagerTemplateDeploymentV3

SebastianSchuetze commented 2 years ago

@ddivanshu any update on the fix?

Jernik commented 2 years ago

We are still seeing this warning in our pipelines using the AzureResourceGroupDeployment@2 task. Is there any update for resolution?

simonvane commented 2 years ago

Hi @ddivanshu, is there any update on this. In March you mentioned you'd be fixing it in April and it's now October but the warning still occurs.

@DavidAtTfL explained the consequence of the warning very well:

Although as you say this doesn't affect pipeline behaviour, it definitely affects developer behaviour! Our pipelines are drowning in false alarms and it has already become the cases the our teams just ignore warnings on pipelines now ("oh that's just another bug with the task"). False warnings are more than a nuisance.

I am here spending time researching to see if this is an issue and I know that other developers have done too (then forgotten the outcome, hence I'm looking now).

Thanks, @alfhj for the suggestion to update to v3, very helpful. That's going to take some time, unfortunately. We have a lot of pipelines affected by this.

Nick-Griffiths commented 2 years ago

Hi @ddivanshu, my team are having the same problems with these warnings - can you please confirm when this issue will be fixed?

craigforr commented 2 years ago

We are seeing this in our Linux pipeline jobs as well:

##[warning]Resource file has already set to: /home/vsts/work/_tasks/AzureResourceGroupDeployment_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/2.192.1/node_modules/azure-pipelines-tasks-azure-arm-rest-v2/module.json

Pool:

Pool: Azure Pipelines
Image: ubuntu-latest
Agent: Hosted Agent

Task:

Task         : Azure resource group deployment
Description  : Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines
Version      : 2.192.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment

I can provide additional information if desired.

Stevonix commented 2 years ago

Hi,

we are facing the same problems. Even after updating to V3 the deprication warning is still there.

Please fix this.

regards Stefan

Task         : ARM template deployment
Description  : Deploy an Azure Resource Manager (ARM) template to all the deployment scopes
Version      : 3.198.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment
ARM Service Connection deployment scope - Subscription
Checking if the following resource group exists: xxxx.
Resource group exists: true.
Creating deployment parameters.
(node:7140) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Starting template validation.
Deployment name is XXXXX
Template deployment validation was completed successfully.
ericvruder commented 2 years ago

Having the same issue here as well, any news?

==============================================================================
Task         : Azure resource group deployment
Description  : Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines
Version      : 2.198.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment
==============================================================================
##[warning]Resource file has already set to: D:\a\_tasks\AzureResourceGroupDeployment_94a74903-f93f-4075-884f-dc11f34058b4\2.198.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
Checking if the following resource group exists: test.
Resource group exists: true.
Creating deployment parameters.
The detected encoding for file 'D:\a\1\Test\azuredeploy.json' is 'utf-8'
(node:4888) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Starting template validation
CameronDwyer commented 1 year ago

6 months further on and this warning is still causing wasted time for development teams. Would love to see it progressed.

==============================================================================
Task         : Azure resource group deployment
Description  : Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines
Version      : 2.198.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment
==============================================================================
##[warning]Resource file has already set to: /home/vsts/work/_tasks/AzureResourceGroupDeployment_94a74903-f93f-4075-884f-dc11f34058b4/2.198.0/node_modules/azure-pipelines-tasks-azure-arm-rest-v2/module.json
meizenga commented 1 year ago

Issue still exists in v3.209.0:

==============================================================================
Task         : ARM template deployment
Description  : Deploy an Azure Resource Manager (ARM) template to all the deployment scopes
Version      : 3.209.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment
==============================================================================
(node:4528) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
mattleibow commented 1 year ago

I am sure this is going to increase the security risk with all these fake warnings hiding the real warnings:

image

timmkrause commented 1 year ago

They don't care about us anymore. GitHub all the things...

Move or be left behind.

hilari0n commented 1 year ago

A similar issue is also happening for other types of tasks, e.g. Azure KeyVault (#17127), Gradle (#13916, which also mentions, that NuGet Authentication task is also affected).

What might help this issue being addressed with more priority, is all interested people up-voting the issue. Which means clicking the "thumbs-up" on the original post (not posting a "+1" or "me too" comment). The Gradle issue mentioned above, has 15 votes and seems to be addressed. This one has only 5 at the moment.

pwrmiller commented 1 year ago

PipAuthenticate is also affected.

uchitha commented 1 year ago

Bump+. We use this under a template task and its status is returned as unsuccessful causing issues and mis understandings. Appreciate a fix or workaround soon.

MmAtBosch commented 1 year ago

Any update after two years?

ianpurvis1976 commented 1 year ago

2years 4 months and still not closed?

ArturAdam commented 10 months ago

+1

yo1-markenstein commented 8 months ago

:tumbleweed:

billpieper commented 6 months ago

+1

v-caxian commented 5 months ago

+1

chadbaldwin commented 3 months ago

+1 Still an issue with v3 of this Task.

https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureResourceManagerTemplateDeploymentV3/operations/FileEncoding.ts#L20-L32

fmad commented 1 week ago

Any news on this? 3 years seems a tad too much, even for a non-priority task. Yes, it is just a warning but why do we need this cluttering our pipelines? This is what we get - we can't even SEE the actual stages and what's happening until we scroll the page down. EVERY. SINGLE. TIME. It is really annoying, even if it does not stop or break the actual build. This is using Kubernetes@1 v. 1.241.5

image