Commit Graph
81 Commits
Author SHA1 Message Date
Andrew 6d23f72def Fixing regression in DSC (#20268) 2023-09-12 18:45:24 -07:00
Andrew cc3b6fb9da Disable broken macOS CI job, which is unused (#17221) 2022-05-16 10:27:18 -07:00
Andrew e8c85a175b Merged PR 20274: Fix Generate checksum file for packages build failure - v7.1.7 (#17219)
Fix Generate checksum file for packages build failure
2022-05-04 15:33:31 -07:00
AndrewandTravis Plunk c3b7e10fd0 Merged PR 20126: Fix for partial PowerShell module search paths, that can be resolved to CWD locations (#17231)
The problem is .NET will return empty strings for special folders that don't exist in some accounts (like System account), and the module path code appends path locations without first checking if the root path is non-empty.  This results in partial paths in the PSModulePath list, which are then interpreted by .NET file APIs as rooted in the current working directory.  And this in turn can allow low privilege users to drop modules in locations that higher privilege accounts will load from, thus gaining escalated privilege code execution.

These changes detect this non-rooted condition and prevents partial paths from being included in search lists.

Cherry picked from !17201

Co-authored-by: Travis Plunk <tplunk@microsoft.com>
2022-05-01 13:04:58 +05:00
Andrewandtravis plunk 956c2efc3e Mark Microsoft.Management.Infrastructure.Runtime.Win as a developer dependency to hide in notice file (#17230)
Co-authored-by: travis plunk <github@ez13.net>
2022-04-29 18:40:59 +00:00
Andrew 5d7b8b95ec Fixed package names verification to support multi-digit versions (#17220)
Fixed package names verification to support multi-digit versions.

Currently "Validate RPM package names" release step is failing because of version "7.0.10" in these examples:
WARNING: powershell-7.0.10-1.centos.8.x86_64.rpm is not a valid package name
WARNING: powershell-7.0.10-1.rhel.7.x86_64.rpm is not a valid package name
WARNING: powershell-lts-7.0.10-1.centos.8.x86_64.rpm is not a valid package name
WARNING: powershell-lts-7.0.10-1.rhel.7.x86_64.rpm is not a valid package name
2022-04-29 00:30:08 +00:00
Andrew 83edc101ed MakeNameObscurerTelemetryInitializer internal (#17214)
Making NameObscurerTelemetryInitializer internal
2022-04-28 17:07:25 -07:00
AndrewandDongbo Wang 8fb34e87e5 Updated change logs for v7.0.9 / v7.0.10 / v7.1.6 / v7.1.7 / v7.2.2 / v7.2.3 (#17207)
* Merged PR 19472: Update change log for the v7.2.2 release

Update change log for the v7.2.2 release

* Merged PR 20440: Changelog for v7.2.3

Changelog for 7.2.3

* Update change log for v7.1.6 release

* Merged PR 20441: Changelog for v7.1.7

Changelog for 7.1.7

* Update change log for v7.0.9 release

* Merged PR 20442: Changelog for v7.0.10

Changelog for 7.0.10

* Cleaned merge conflicts in spelling file

* Cleaned conflicts in spelling file

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2022-04-28 11:16:16 -07:00
Andrew f4e38e8fa7 Updated metadata.json and README.md for v7.2.3 and v7.0.10 (#17158) 2022-04-26 20:01:53 -07:00
Andrew 4711eb570e Roll back windows images used in testing to Windows Server 2019 (#16958) 2022-03-04 13:48:42 -08:00
Andrew 1d1e42fd1a Merge branch 'master' into BringChangesFrom730P1 2021-12-16 13:45:37 -08:00
Andrew Menagarishvili c8f32fc52c Merged PR 18465: Changelog for v7.3.0-preview.1
Changelog for v7.3.0-preview.1
2021-12-16 13:40:38 -08:00
Andrew Menagarishvili 3f1c03d494 Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
Cherry picked from !18333

Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Andrew 083df00354 Updated README.md and metadata.json for v7.3.0-preview.1 release (#16627) 2021-12-16 12:12:09 -08:00
Andrew 6b06625cc6 Updating changelog for 7.2.1 (#16616) 2021-12-14 15:20:13 -08:00
Andrew d4bad46e61 Updated README.md and metadata.json for 7.2.1 release (#16586) 2021-12-14 10:40:09 -08:00
Andrew 7bebf442af Disabled Yarn cache in markdown.yml (#16599) 2021-12-10 16:24:44 -08:00
Andrew a5f283537a Removed old not-used-anymore docker-based tests for PS release packages (#16224) 2021-10-15 10:46:36 -07:00
Andrew 6e73c2d4f6 Remove PSDesiredStateConfiguration v2.0.5 module (#15536)
* No longer include module with PS releases

* Updated assets/wix/files.wxs

* Moving tests out of the ps repo

* Debug 1

* Debug 2
2021-06-09 12:15:46 -07:00
Andrew 8d017d8a75 Move cross platform DSC code to a subsystem (#15127) 2021-05-20 17:06:59 -07:00
Andrew ae772462a5 Fix NullReferenceException in DSC ClearCache() (#15373) 2021-05-12 13:30:43 -07:00
Andrew e0a4855976 Fix the build when using PSDesiredStateConfiguration module from PS Gallery (#15355) 2021-05-05 15:37:06 -07:00
Andrew e0b5414f21 Fixing broken Experimental Feature list in powershell.config.json (#14858) 2021-02-22 12:41:03 -08:00
Andrew 39509a93b9 Fix Bootstrap step in Windows daily test runs (#14820) 2021-02-17 10:56:37 -08:00
Andrew 8e3c3e04f8 Cross-platform updates to DSC code in PowerShell (#13399) 2021-02-02 14:47:53 -08:00
Andrew ef187d94f3 Updated README and metadata.json for PowerShell v7.1.1 release (#14606) 2021-01-15 15:55:04 -08:00
Andrew a7ce7883ce Added missing changelog for v7.1.0-preview.2 (#12665) 2020-05-19 09:16:11 +05:00
Andrew Menagarishvili 01d3788712 Merged PR 11571: Change log for v7-1-0-preview-3 and a missing preview-2 change log
Preview-3 change log was generated by `Get-ChangeLog -LastReleaseTag 'v7.1.0-preview.2' -ThisReleaseTag 'v7.1.0-preview.3'`
Preview-2 change log was copy-pasted from Gihub's  `tags/v7.1.0-preview.2`
2020-05-18 23:36:18 +00:00
Andrew 0c695376b7 Fix WinCompat module loading to treat Core edition modules higher priority (#12269) 2020-04-16 16:57:55 -07:00
Andrew 14487bf85d Make GetWindowsPowerShellModulePath compatible with multiple PS installations (#12280)
Add additional check for each component of PSModulePath (that is set for WinPS process) - if it is has pwsh.exe in the parent directory, then it is considered another PS Core installation and this location is also filtered out.
2020-04-14 11:08:01 +05:00
Andrew 704b0e74ed Miscellaneous minor updates to WinCompat (#11980)
* Filter PSModulePath when starting PS 5.1. Removing PS-Core-specific paths from PSModulePath of WinCompat process (Windows PS).
* Make implicit WinCompat respect NoClobber and Scope parameters
* Add ErrorAction.Ignore when searching for WinPSCompatSession
2020-03-10 11:31:44 +05:00
Andrew 268afbdb4d Fix MSIX packaging to determine if a Preview release by inspecting the semantic version string (#11991) 2020-03-05 10:59:51 -08:00
Andrew d2cb3c3636 Sync current directory in WinCompat remote session (#11809) 2020-02-11 11:44:30 -08:00
Andrew 43c88a4ff1 Add WinCompat deny list support using a setting in powershell.… (#11726) 2020-02-04 16:33:26 -08:00
Andrew 1cb5f8e943 Mark System32-PSModulePath test as pending (#11576) 2020-01-14 08:39:02 -08:00
Andrew ea48e07c48 Added setting to disable implicit WinPS module loading (#11332) 2020-01-03 10:32:00 -08:00
Andrew 0c46e3e71d Added WindowsPS version check for WinCompat (#11148) 2019-12-10 10:40:13 -08:00
Andrew f8a321ae2b Fix error-reporting in some WinCompat scenarios (#11259) 2019-12-09 15:20:40 -08:00
Andrew e487e10356 Disable the autoloading of modules that define JobSourceAdapter (#11194) 2019-11-26 10:43:35 -08:00
Andrew b218e6f6cc Support using non-compatible Windows PowerShell modules in PowerShell Core (#10973) 2019-11-18 10:44:55 -08:00
Andrew b67e2e347e Updating links in README.md and metadata.json for Preview.5 (#10854) 2019-10-23 12:12:18 -07:00
Andrew Menagarishvili e5a023714b Merged PR 10314: Updated release date in the changelog
Updated release date in the changelog
2019-10-23 16:50:58 +00:00
Andrew Menagarishvili a9ef4b7bf9 Merged PR 10307: Changelog for v7-0-0-preview-5
Changelog for v7-0-0-preview-5
2019-10-22 23:16:52 +00:00
Andrew Menagarishvili 327dfd7e07 Merged PR 10295: Updating PackageReference for PS SDK to preview.5
Updating PackageReference for PS SDK to preview.5
2019-10-21 19:26:13 +00:00
Andrew Menagarishvili 34f1992505 Merged PR 10023: Changelog for v7-0-0-preview-4 2019-09-18 21:58:29 +00:00
Andrew ed29ad1506 Adding PSCore group policy definitions (#10468) 2019-09-12 13:41:59 -07:00
Andrew e3e37a8e35 Merge pull request #9528 from SteveL-MSFT/login-shell
Add support for `-l` to pwsh so that it is compatible with POSIX shell expectations
2019-05-07 11:55:45 -07:00
Andrew 095be4655e Return correct casing of filesystem path during normalization (#9250)
* return correct casing of filesystem path during normalization

* handle UNC case

* handle case to add trailing separator back

* add support for NTFS streams syntax

* add case-sensitive test

* only apply correct casing to directories

* handle 8.3 path syntax

* fix short path processing
2019-04-23 13:31:43 -07:00
Andrew cec4557932 moved fxdependent-dotnetsdk-latest/Dockerfile (#8738) 2019-01-28 15:54:58 -08:00
Andrew 7085d88453 Package validation tests updates (#8714) 2019-01-22 17:38:14 -08:00
Andrew 3bf8d34f58 Package validation tests updates (#8714) 2019-01-22 17:09:39 -08:00
Andrew a1299cd6d4 Adding yml for Windows Release builds (#8374) 2018-12-07 10:59:27 -08:00
Andrew Menagarishvili 42cfa2c0b1 Merged PR 5863: Lowering Pester module version to avoid test infra failures on some Linux systems
Without this change package validation tests fail during Pester module import on some Linux systems.
2018-11-15 21:26:11 +00:00
Andrew 3597d58432 Adding yml for Linux builds (#8168)
As part of improving the build process, the UI build pipeline for Linux Builds was converted to a yml-based pipeline.
2018-11-05 10:35:53 -08:00
Andrew d098e6fd02 Adding fxdependent PS package tests (#7830) 2018-10-18 15:28:43 -07:00
Andrew bc5fe72096 Updating test gallery URL in PackageManagement tests (#7879) 2018-09-27 14:23:10 -07:00
Andrew e725a030d7 Updating ModulePath.Tests for fxdependent package (#7772) 2018-09-17 13:22:00 -07:00
Andrew d1991936c3 Updates to Docker package tests (#7667) 2018-09-05 14:06:10 -07:00
Andrew dba6fc2921 Updates to Docker package tests (#7667) 2018-09-04 10:03:32 -07:00
Andrew d04fef469b Merge Third Party Notices and License updates (#7203)
* Merge Third Party Notices

* Use capital J for 'json'
2018-06-29 11:46:19 -07:00
Andrew e0ee13c699 Updates to fedora27 and kalilinux dockerfiles (#6819)
This PR addresses 2 issues:

fedora27 dockerfiles were missing compat-openssl10 prerequisite that on Linux-based Docker hosts produced error No usable version of the libssl was found during Restore-PSPester.
kalilinux PS package validation is failing because of open issue #5413 , so disabling this config for now.
2018-05-07 13:02:01 -07:00
Andrew 0e8665dfc0 Updated Docker package tests, fixed error on opensuse42 (#6783)
This PR addresses minor issues with PS-package docker tests.

Historically rpm package version string was different from other packages, however, this is no longer the case, so updating tests to account for that (to simplify things - removing RPM-version parameter from dockerfiles because it is no longer used).
Configs that use 'linux-x64.tar.gz' (currently only "opensuse42.2") are failing, so fixing that in the script.
2018-05-01 10:38:43 -07:00
Andrew 9a061457f4 Update Dockerfile test to use ubuntu 17.10 as the base image (#6503) 2018-03-28 09:32:54 -07:00
Andrew acf0dcdc6d Docker package test fix and updates (#6169) 2018-02-22 11:05:07 -08:00
Andrew dc6fe2af29 Update Raspbian installation instructions to create pwsh symlink (#6122)
* Update Raspbian installation instructions to create pwsh symlink
2018-02-09 14:00:29 -08:00
Andrew 92e140ad97 Update the installation doc for Raspberry-Pi about supported devices (#5773) 2018-01-08 18:09:00 -08:00
Andrew 45a2a19abd Update the installation doc for Raspberry-Pi about supported devices (#5773) 2018-01-08 12:21:32 -08:00
Andrew 690e968509 Update the docker based release package tests (#5692) 2017-12-19 11:21:40 -08:00
Andrew 57a4cfcac6 Update the docker based release package tests (#5692) 2017-12-15 13:59:12 -08:00
Andrew 06d3114763 Automation for PS package validation using Docker containers (#5401)
This automation is used for basic validation of PS packages during a release;
Covered configs:

ubuntu14.04
ubuntu16.04
ubuntu17.04
debian.8
debian.9
centos7
fedora25
fedora26
kalilinux
opensuse42.2
During the process Docker files are filled out and executed with Docker build;
During the build PS packages are downloaded onto Docker containers, installed and selected Pester tests from PowerShell Github repo are executed.
2017-11-13 10:25:09 -08:00
Andrew e0af4d96d8 Add example of how to create a .net core cmdlet with Visual Studio (#5096) 2017-10-23 09:35:28 -07:00
Andrew deaa7c9375 Trace-Command tests for code coverage (#4288)
Added tests for Trace-Command that increase code coverage to 80%~85% per class.
2017-09-01 09:08:17 -07:00
Andrew 0b7451bda3 Tests for New-WinEvent (#4384)
* New-WinEvent tests

* PR feedback

* PR feedback 2

* PR feedback 3

* PR feedback 4

* PR feedback 5
2017-08-07 14:24:12 -07:00
Andrew 99236b18bb Make ResourceManagerCache check for alternative resource paths (#4139) 2017-08-04 15:39:26 -07:00
Andrew ecefb50d0d Fixing Import-Module on Linux for special cases of NestedModules/RootModule path format (#4010)
* IPMO fix for some cases of NestedModules/RootModule path syntax

* Added tests for #3693 fix

* Updated tests
2017-06-28 16:35:33 -07:00
Andrew e2e07b1830 Change New-ModuleManifest encoding to UTF8NoBOM on non-Windows platforms (#3940)
* Change New-ModuleManifest encoding to UTF8NoBOM

* Addressed PR feedback

* Fixed test for Travis CI

* Updated tests
2017-06-27 12:48:25 -07:00
Andrew 28ec9a3511 Fix Import-Module to honor 'ScriptsToProcess' when '-Version' is specified (#3897) 2017-06-05 14:19:03 -07:00
Andrew e70e410741 Installation docs update for Debian 8 and RHEL 7 (#3709)
* Debian8 update

* RHEL7 update

* Main page update

* Fixed 'MD024 Multiple headers with the same content'

* Update linux.md

Added explicit text about compatibility of Ubuntu14.04 pkg on Debian8 to avoid confusion about URLs

* Update linux.md
2017-05-09 13:18:01 -07:00
Andrew c0aafdb3d0 Fixing a bug related to ModuleSpec syntax in RequiredModules (#3594)
This fixes issue #2607.
'RequiredModules' is a field in module manifest that can reference other modules using ModuleSpecification format.
The basic version of this format (just module name) was working fine, however, there was a problem when a more detailed version of the format was used (the one that uses module versions or/and GUIDs).
During module import, there is a check for cyclic references through 'RequiredModules' field. The bug was in this check for cyclic references, related to comparison rules for ModuleSpecification objects - as a result, the code was incorrectly reporting 'cyclic reference' error in cases when there was none.
Also, added tests for different ModuleSpecification formats and a test for error when there is actually a cyclic reference.
2017-04-30 17:58:44 -07:00
Andrew 03b00e6522 Updated tags of automounted drives tests (#3290)
Two updates with this PR:
- reclassified automounted drives tests to be 'Feature' instead of 'CI' because this is more accurate;
- fixed failures in tests setup caused by "subst.exe" native utility having problems running as child process of powershell process tree run under "runas.exe /trustlevel:0x20000" (in Start-UnelevatedProcess in build.psm1).
2017-03-08 16:34:39 -08:00
Andrew 1d1cffd0c5 Auto-mounted file system drives correctly created when mounted inside a module (#3034)
Fixes #2442
2017-03-06 16:26:06 -08:00