Skip to content

Please sign any .ps1 scripts in this repository #8814

Closed

Description

@kilasuit

You currently have a script for helping install PowerShell as per https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell.ps1

This script is not signed - could you please sign this and others if you are sharing them to be used in production environments by users :-)

Activity

  1. added
    Issue-Question
    on Feb 2, 2019
  2. added
    Issue-Enhancement
    WG-Maintainers-Build
    and removed
    Issue-Question
    on Feb 2, 2019
  3. iSazonov commented on Feb 2, 2019

    @iSazonov
    Collaborator

    Perhaps Travis Plunk (@TravisEz13) could address the question.

  4. TravisEz13 commented on Feb 2, 2019

    @TravisEz13
    Member

    I'm assuming you are asking to sign with a Microsoft Certificate. I'd have to investigate any other option.

    What is the goal for us signing it (there are different certificates with different amounts of engineering work on our part for each scenario)?

    1. Know that it comes from Microsoft and has not been tampered with.
    2. The First option plus knowing it is safe (secure, even in device guard or AppLocker scenarios) to use.

    It would be impractical to sign scripts that are simply checked into the repo and under development. Anything we sign falls under additional requirements that sample code we have in the repo.

    To solve this, we would have to create a release mechanism such as releasing it as a script on the gallery.

    Steve Lee (@SteveL-MSFT) Can you give feedback?

  5. iSazonov commented on Feb 3, 2019

    @iSazonov
    Collaborator

    One scenario is an enterprise where environment is locked with AppLocker (allow run only signed apps and scripts)

  6. TravisEz13 commented on Feb 3, 2019

    @TravisEz13
    Member

    Ilya (@iSazonov) That would be scenario 2. Windows Defender Application Control (formerly Device guard) is similar.

  7. SteveL-MSFT commented on Feb 4, 2019

    @SteveL-MSFT
    Member

    The scripts are (hopefully) a temporary problem on Windows (we're looking at different options). On Linux, and macOS, I believe it's easy enough to install using apt/yum/brew. In the interim, we could sign the install-powershell.ps1 script and publish to PSGallery.

  8. iSazonov commented on Feb 5, 2019

    @iSazonov
    Collaborator

    We have a request to have Update-PowerShell cmdlet. We could replace install-powershell.ps1 with the cmdlet which could download a signed manifest from persistent link and use the manifest to download new PowerShell version or updates.

    And we have PowerShell/PowerShell-RFC#97

  9. added
    Resolution-By Design
    on Oct 2, 2023
  10. microsoft-github-policy-service commented on Oct 4, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as by-design and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-By DesignWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions