Skip to content

Add comprehensive PowerShell test harness#50

Merged
jgowdy-godaddy merged 1 commit intomainfrom
feat/test-harness
Apr 17, 2026
Merged

Add comprehensive PowerShell test harness#50
jgowdy-godaddy merged 1 commit intomainfrom
feat/test-harness

Conversation

@jgowdy-godaddy
Copy link
Copy Markdown
Contributor

Summary

Adds tests/Test-EnclaveApps.ps1 — a comprehensive test harness that covers:

  • App filtering: .\Test-EnclaveApps.ps1 sshenc awsenc or test all installed apps
  • Auto-detection: skips apps that aren't installed
  • Distinct fingerprint check: creates two keys and verifies different fingerprints (would have caught the bridge label bug)
  • ECIES TPM roundtrip: encrypt + decrypt via both awsenc and sso-jwt bridges
  • sshenc extended: agent, SSH to GitHub, gitenc signed commit + GitHub verification, install/uninstall
  • WSL bridge tests: key lifecycle via TPM bridge on all 4 distros, no keyring
  • Interactive keyring tests: -Interactive flag with "press any key" prompt before password dialogs
  • Pre-test cleanup: deletes stale keys + pub files before each test

Tests all installed enclave apps across Windows + WSL environments:
- Auto-detects installed apps, skips missing ones
- Accepts app list: .\Test-EnclaveApps.ps1 sshenc awsenc
- Two-key distinct fingerprint check (catches label bugs)
- ECIES encrypt+decrypt TPM roundtrip
- sshenc agent, SSH to GitHub, gitenc signed commit
- WSL bridge tests (no keyring required)
- Interactive keyring tests with -Interactive flag
- Pre-test cleanup of stale keys and pub files
@jgowdy-godaddy jgowdy-godaddy merged commit 7b931b1 into main Apr 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant