Skip to content

fix: secret update hanging due to missing stdin input - #2

Merged
NormallyGaussian merged 14 commits into
mainfrom
fix/secret-stdin-hang
Jan 23, 2026
Merged

fix: secret update hanging due to missing stdin input#2
NormallyGaussian merged 14 commits into
mainfrom
fix/secret-stdin-hang

Conversation

@NormallyGaussian

Copy link
Copy Markdown

Summary

  • Fix parallel-cli enrich deploy --system bigquery hanging when updating an existing secret

Problem

When the secret parallel-api-key already exists, the code called _run_command() with gcloud secrets versions add --data-file=-, but --data-file=- expects input from stdin. Since _run_command() doesn't provide stdin input, gcloud hangs indefinitely waiting for the API key.

Solution

Use subprocess.Popen with communicate(input=api_key) for the update case, same as the create case already does.

Test plan

  • Run parallel-cli enrich deploy --system bigquery --project=<project> --api-key=<key> when secret already exists
  • Verify it no longer hangs at "Creating secret for API key..."

@NormallyGaussian
NormallyGaussian merged commit 3cafb31 into main Jan 23, 2026
4 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.

2 participants