You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please sign any .ps1 scripts in this repository #8814
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)?
Know that it comes from Microsoft and has not been tampered with.
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.
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.
Reacted by Rain Sallow (/u/ta11ow) and Christoph Bergmeister
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.
Activity
iSazonov commentedon Feb 2, 2019
Perhaps Travis Plunk (@TravisEz13) could address the question.
TravisEz13 commentedon Feb 2, 2019
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)?
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?
iSazonov commentedon Feb 3, 2019
One scenario is an enterprise where environment is locked with AppLocker (allow run only signed apps and scripts)
TravisEz13 commentedon Feb 3, 2019
Ilya (@iSazonov) That would be scenario 2. Windows Defender Application Control (formerly Device guard) is similar.
SteveL-MSFT commentedon Feb 4, 2019
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.
iSazonov commentedon Feb 5, 2019
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
microsoft-github-policy-service commentedon Oct 4, 2023
This issue has been marked as by-design and has not had any activity for 1 day. It has been closed for housekeeping purposes.