-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
506dc73
commit da78254
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
nav_order: 5 | ||
permalink: docs/security | ||
--- | ||
|
||
# Security | ||
|
||
AnyPackage is an extensible package management interface. | ||
Logic in the package provider is usually limited to structuring calls to the package manager. | ||
This presents some security considerations as package provider, package manager, and packages must be trusted by the user. | ||
|
||
## Definitions | ||
|
||
* AnyPackage - PowerShell module and API for user interaction with package providers. | ||
* Package Provider - An implementation of the AnyPackage API shipped in a PowerShell module. | ||
* Package Manager - The package lifecycle logic for example: WinGet, Chocolatey, Scoop, APT, DNF, etc. | ||
|
||
## Package Providers | ||
|
||
Only import trusted package providers. | ||
|
||
AnyPackage project package providers are signed. | ||
Third party created package providers may not be signed. | ||
PowerShell [execution policies](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies) provide controls to prohibit unsigned modules from being imported. | ||
|
||
## Packages | ||
|
||
Only install packages from trusted sources. | ||
|
||
AnyPackage itself does not perform any validation checks on packages returned by the package provider. | ||
AnyPackage relies on the package manager to perform those checks. | ||
Refer to each package manager documentation for policies on package validation. | ||
An example is the [Chocolatey community repository](https://docs.chocolatey.org/en-us/information/security/#security-for-the-community-package-repository). |