Powershell script signing

Dear Checkmk community,

the Windows Agent runs PowerShell scripts with the parameter -ExecutionPolicy Bypass.

Is there a way to change this behavior? Specifically, how can we conveniently sign all PowerShell scripts used by the agent?

Additionally, is it possible to download all scripts used by the agent, sign them, and upload them again so that the signed scripts can be distributed via Agent Bakery?

Thank you in advance.
Martin

Due to security policies we are also in need of signed powershell scripts. At least all shipped plugins should be signed by default for not getting in trouble using "AllSigned " as execution policy. Downloading all shipped plugins, signing and reupload them is not practical. What happens if you need support using those “modified” plugins?

Checkmk Support told us, there will be an solution in Checkmk 2.5 but still waiting

I have to agree. We’re having the same problems because of the powershell security policies we’re being forced to use.

Hello @MartinS and others,

Thank you for reporting this.

We have this on our radar and are working on this.
We will report back here with updates.

Best regards
Hartmut

Hello again,

short intermediate update:

There is an implementation for this now - Werk #19211: Deploy signed PowerShell plugins with Windows agent

The team is working on also delivering this for 2.5.0

We will ping you, once there is an update for 2.5

Sunny Greetings

Hartmut

Good Morning,

the Werk should be delivered with 2.5.0p8 today or tomorrow

Sunny Greetings

Hartmut

Has anyone already installed the update and had any success with it? The server has been updated, and the agents have been baked and deployed. The PS1 plugins in the Agent directory are version 2.5.0p8, but the PowerShell signatures are still missing in the scripts. Did I miss something here, or is there a bug?

Are you referring to the plugins or local scripts? I’ve updated and all of the powershell scripts under plugins are signed but the local ones that I have created myself are not signed.

The plugins included in CheckMK. It’s really strange, when I download this from the server, the signature is there. The same plugin that ends up on the hosts via the Bakery doesn’t have a PowerShell signature:

Checkmk 2.5.0p9 Pro using the Checkmk HW Appliance. If relevant.