Error in VMware Cloud Foundation Automation 9.x: "This method is disabled for security reasons. 'Command' is deprecated and will be removed in future release"
search cancel

Error in VMware Cloud Foundation Automation 9.x: "This method is disabled for security reasons. 'Command' is deprecated and will be removed in future release"

book

Article ID: 458352

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

In VMware Cloud Foundation Automation (VCFA) 9.x, executing local system commands on the Orchestrator server application via workflows using the JavaScript script engine fails with the following error:

This method is disabled for security reasons. 'Command' is deprecated and will be removed in future release
 
Approvals for activities using the deprecated Command interface are also marked with a red exclamation mark, even if approval was correctly granted.

Environment

VMware Cloud Foundation Automation (VCFA) 9.x

Cause

Usage of the Command interface in JavaScript was disabled for security reasons. The Command method has been deprecated and removed from the product to prevent potential security vulnerabilities.

Resolution

This issue is tentatively planned to be fixed in release VMware Cloud Foundation (VCF) 9.1.2.

 

The Command method is deprecated and was removed from VMware Cloud Foundation Automation due to potential security issues. 

The method has now been added back but can be disabled if needed.

The permanent solution is to alter workflows so that they are not directly running commands via javascript, if at all possible.