Skip to content

fix(docker): pass --all-snapshot to stripe listen and pin stripe-cli - #764

Merged
imilchev merged 1 commit into
masterfrom
fix/stripe-cli-listen-events
Oct 9, 2026
Merged

imilchev merged 1 commit into
masterfrom
fix/stripe-cli-listen-events

Conversation

@imilchev

@imilchev imilchev commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Problem

The stripe-webhook service uses stripe/stripe-cli:latest. Newer stripe-cli releases (verified on v1.51.1 through v1.53.1) exit immediately from stripe listen unless an event selection flag is given:

must specify events to forward using --events, --all-snapshot, or --all-thin

So the container crash-loops and never prints the whsec_… webhook signing secret. The frontend Playwright CI checks out this repo's master, waits for whsec_ in .env.local, and fails with ERROR: Stripe webhook secret not found after 60s (e.g. podkrepi-bg/frontend#2220). Local docker compose up stripe-webhook is affected the same way.

Fix

  • Add --all-snapshot to stripe listen, restoring the previous forward-all-snapshot-events behaviour.
  • Pin the image to stripe/stripe-cli:v1.53.1 so future CLI releases can't silently break dev/CI.

Verification

🤖 Generated with Claude Code

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>
@imilchev
imilchev merged commit e035ac8 into master Oct 9, 2026
8 checks passed
@imilchev
imilchev deleted the fix/stripe-cli-listen-events branch October 9, 2026 10:18
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