Launch vault server in separate fork of cmd.exe
Some checks failed
Test / tests (darwin-amd64) (push) Successful in 20s
Test / tests (linux-amd64) (push) Successful in 28s
Run Gosec / tests (push) Successful in 53s
Test / tests (linux-arm64) (push) Successful in 3m2s
Test / tests (windows-amd64) (push) Failing after 4m38s

This commit is contained in:
2025-09-09 15:59:49 +02:00
parent 8b866752ee
commit aaabf0bd37

View File

@@ -8,16 +8,15 @@ $vaultArgs = @(
"-dev",
"-dev-tls",
"-dev-root-token-id=root",
"-dev-listen-address=127.0.0.1:8200"
"-dev-listen-address=127.0.0.1:8200",
">>",
"vault-logs/stdout.log",
"2>>",
"vault-logs/stderr.log"
)
Write-Output "✅ Starting Vault server..."
$process = Start-Process -FilePath ".\vault.exe" `
-ArgumentList $vaultArgs `
-PassThru `
-NoNewWindow `
-RedirectStandardOutput "vault-logs/stdout.log" `
-RedirectStandardError "vault-logs/stderr.log"
$process = Start-Process -FilePath "cmd.exe" -ArgumentList "/c start `"Vault Server`" /B .\vault.exe $vaultArgs" -
$vaultPid = $process.Id
Write-Output "✅ Vault process started with PID: $vaultPid"