Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry.DotNet.Auto.psm1 script digitally signed error #2779

Open
arfffus opened this issue Jul 26, 2023 · 4 comments
Open

OpenTelemetry.DotNet.Auto.psm1 script digitally signed error #2779

arfffus opened this issue Jul 26, 2023 · 4 comments
Milestone

Comments

@arfffus
Copy link

arfffus commented Jul 26, 2023

Bug Report

Seems that OpenTelemetry.DotNet.Auto.psm1 script is not signed

Symptom

I used Windows PowerShell (5.1 version as recommended) to execute the script and make auto instrumentation my Windows service. But PowerShell raised an exception on Import-Module command: "Import-Module : File ...\OpenTelemetry.DotNet.Auto.psm1 cannot be loaded. The file ..\OpenTelemetry.DotNet.Auto.psm1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170."
So I was forced to change PowerShell execution policy to "unrestricted" value for execute that command but it's security violence (Of course I turned it back after execution).

Could you please sign OpenTelemetry.DotNet.Auto.psm1 script and add to documentation a warning about this issue for same future cases.

Thank you in advance!

Runtime environment:

Steps to reproduce the behavior:

Just try to reproduce instructions from manual for PowerShell module (Windows): https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation#powershell-module-windows. The exception is raised on "Import-Module $download_path" command.

@Kielek
Copy link
Contributor

Kielek commented Jul 26, 2023

For now, OpenTelemetry does not have possibility to sign anything (nor scripts, nor libraries).
Postponing to post-1.0.0

@Kielek Kielek added this to the post-1.0.0 milestone Jul 26, 2023
@arfffus
Copy link
Author

arfffus commented Jul 28, 2023

Got it, thank you.

@pellared
Copy link
Member

pellared commented Aug 9, 2023

I created #2821

@pellared
Copy link
Member

Related to open-telemetry/community#1672.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants