Skip to content

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

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

14 commits merged into
mainfrom
fix/secret-stdin-hang

Conversation

@ghost

@ghost ghost commented Jan 23, 2026

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..."

@ghost
ghost merged commit 3cafb31 into main Jan 23, 2026
4 checks passed
This pull request was closed.
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