From 887429a729e1a9ca2756f2f3ff366813923b2d42 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Sun, 22 Mar 2026 08:15:51 -0500 Subject: [PATCH] fix(security): remove hardcoded credentials from debug script Replaced hardcoded PVE host IP and API token in Capture-UploadDiff.ps1 with placeholder values that must be filled in before running. Co-Authored-By: Claude Opus 4.6 (1M context) --- debug/Capture-UploadDiff.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/debug/Capture-UploadDiff.ps1 b/debug/Capture-UploadDiff.ps1 index 55115b6..39068de 100644 --- a/debug/Capture-UploadDiff.ps1 +++ b/debug/Capture-UploadDiff.ps1 @@ -9,8 +9,9 @@ $ErrorActionPreference = 'Stop' $DebugDir = $PSScriptRoot $ProxyPort = 8080 $TestFile = '/tmp/pvetest.iso' -$UploadUri = 'https://172.16.100.205:8006/api2/json/nodes/pve/storage/local/upload' -$AuthHeader = 'PVEAPIToken=root@pam!integration=4c4b598b-fef2-4e6f-8471-316b35ff40c3' +# Replace with your PVE host and API token before running +$UploadUri = 'https://:8006/api2/json/nodes/pve/storage/local/upload' +$AuthHeader = 'PVEAPIToken=@!=' $ModuleDll = '/Users/goodolclint/Source/PSProxmoxVE/src/PSProxmoxVE/bin/Debug/net9.0/PSProxmoxVE.dll' if (-not (Test-Path $TestFile)) { @@ -108,8 +109,9 @@ $env:HTTP_PROXY = "http://localhost:$ProxyPort" try { Import-Module $ModuleDll -Force -ErrorAction Stop - Connect-PveServer -Server 172.16.100.205 -Port 8006 ` - -ApiToken 'root@pam!integration=4c4b598b-fef2-4e6f-8471-316b35ff40c3' ` + # Replace with your PVE host and API token before running + Connect-PveServer -Server '' -Port 8006 ` + -ApiToken '@!=' ` -SkipCertificateCheck Write-Host " Calling Send-PveIso..."