Project

General

Profile

Bug #9193

The PowerShell list-compatible-inputs version should be executed with Bypass ExecutionPolicy

Added by Matthieu CERDA over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
1
Category:
-
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

We currently do execute the inventory signature PS script like this:

"sign_script" string => "C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe -ExecutionPolicy Bypass -File \"C:\Program Files\Rudder\sbin\signature.ps1\" -file";

but list-compatible-inputs is executed like this, since #8553:

"list_compatible_inputs" string => "\& '${ncf_path}\common\10_ncf_internals\list-compatible-inputs.ps1\'";

This second command will not work, as the default Restricted ExecutionPolicy will raise an error due to the file being foreign.

We need to do just like we do with the signature script.

#1

Updated by Matthieu CERDA over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Matthieu CERDA
#2

Updated by Matthieu CERDA over 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Matthieu CERDA to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1048
#3

Updated by Matthieu CERDA over 4 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
#4

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.15 and 3.2.8 which were released today.

Also available in: Atom PDF