Skip to content

Commit 43697d6

Browse files
authored
Merge pull request #268 from steviecoaster/gh247
(#247) Enable packageHashValidation feature
2 parents ff4cfc0 + 5eeeff1 commit 43697d6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Start-C4bSetup.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ try {
140140

141141
# Set Choco Server Chocolatey Configuration
142142
Invoke-Choco feature enable --name="'excludeChocolateyPackagesDuringUpgradeAll'"
143+
Invoke-Choco feature enable --name="'usePackageHashValidation'"
143144

144145
# Convert license to a "choco-license" package, and install it locally to test
145146
Write-Host "Creating a 'chocolatey-license' package, and testing install." -ForegroundColor Green

scripts/ClientSetup.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ choco feature enable --name="'useBackgroundServiceWithNonAdministratorsOnly'"
145145
choco feature enable --name="'allowBackgroundServiceUninstallsFromUserInstallsOnly'"
146146
choco config set --name="'backgroundServiceAllowedCommands'" --value="'install,upgrade,uninstall'"
147147

148+
# Enable Package Hash Validation (Good security practice)
149+
choco feature enable --name="'usePackageHashValidation'"
150+
148151
# CCM Check-in Configuration
149152
choco config set CentralManagementServiceUrl "https://${hostName}:24020/ChocolateyManagementService"
150153
if ($ClientSalt) {

0 commit comments

Comments
 (0)