Repository navigation
fix(docker): pass --all-snapshot to stripe listen and pin stripe-cli - #764
Merged
Merged
Conversation
Recent stripe-cli releases refuse to start `stripe listen` without an
event selection flag ("must specify events to forward using --events,
--all-snapshot, or --all-thin"). With the image on :latest, the
stripe-webhook container crash-looped, never emitted a whsec_ signing
secret, and the frontend Playwright CI timed out waiting for it.
--all-snapshot restores the previous forward-all-events behaviour.
Pin the image so future CLI releases can't silently break local dev/CI.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
stripe-webhookservice usesstripe/stripe-cli:latest. Newer stripe-cli releases (verified on v1.51.1 through v1.53.1) exit immediately fromstripe listenunless an event selection flag is given:So the container crash-loops and never prints the
whsec_…webhook signing secret. The frontend Playwright CI checks out this repo'smaster, waits forwhsec_in.env.local, and fails withERROR: Stripe webhook secret not found after 60s(e.g. podkrepi-bg/frontend#2220). Localdocker compose up stripe-webhookis affected the same way.Fix
--all-snapshottostripe listen, restoring the previous forward-all-snapshot-events behaviour.stripe/stripe-cli:v1.53.1so future CLI releases can't silently break dev/CI.Verification
stripe listen --api-key … --forward-to …on v1.53.1 → reproduces the error above.--all-snapshotadded → gets past validation to "Getting ready..." (needs a real key to get awhsec_).docker compose configvalidates.🤖 Generated with Claude Code