Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

ci(signing): trust test certificate at machine scope

rcourtman0dd9c92cb845
diff --git a/.github/workflows/signpath-test-signing.yml b/.github/workflows/signpath-test-signing.yml
index a7eb4a1429..41752420c1 100644
--- a/.github/workflows/signpath-test-signing.yml
+++ b/.github/workflows/signpath-test-signing.yml
@@ -202,14 +202,13 @@ jobs:
$trustedStoreNames = @()
try {
foreach ($storeName in @('Root', 'TrustedPublisher')) {
- Write-Host "Adding test signer $thumbprint to CurrentUser/$storeName on the ephemeral runner."
+ Write-Host "Adding test signer $thumbprint to LocalMachine/$storeName on the ephemeral runner."
Invoke-BoundedCertUtil -Arguments @(
- '-user',
'-f',
'-addstore',
$storeName,
$certificatePath
- ) -Description "adding the test signer to CurrentUser/$storeName"
+ ) -Description "adding the test signer to LocalMachine/$storeName"
$trustedStoreNames += $storeName
}
@@ -287,6 +286,7 @@ jobs:
signedArtifactsUploadedAsGitHubArtifact = $false
signingPolicy = 'test-signing'
artifactConfiguration = $env:SIGNPATH_ARTIFACT_CONFIGURATION_SLUG
+ ephemeralTestTrustScope = 'LocalMachine/Root and LocalMachine/TrustedPublisher'
version = $env:TEST_VERSION
sourceSha = $env:GITHUB_SHA
sourceRef = $env:GITHUB_REF
@@ -307,13 +307,12 @@ jobs:
}
finally {
foreach ($storeName in $trustedStoreNames) {
- Write-Host "Removing test signer $thumbprint from CurrentUser/$storeName."
+ Write-Host "Removing test signer $thumbprint from LocalMachine/$storeName."
Invoke-BoundedCertUtil -Arguments @(
- '-user',
'-delstore',
$storeName,
$thumbprint
- ) -Description "removing the test signer from CurrentUser/$storeName"
+ ) -Description "removing the test signer from LocalMachine/$storeName"
}
}
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index a939abaf06..2e17b72e1d 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -534,6 +534,11 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("certutil timed out after 30 seconds", workflow)
self.assertIn("'-addstore'", workflow)
self.assertIn("'-delstore'", workflow)
+ self.assertNotIn("'-user'", workflow)
+ self.assertIn(
+ "ephemeralTestTrustScope = 'LocalMachine/Root and LocalMachine/TrustedPublisher'",
+ workflow,
+ )
self.assertNotIn("X509Store]::new", workflow)
self.assertNotIn("Import-Certificate", workflow)
self.assertIn("path: signpath-test-signing-evidence.json", workflow)