• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Logflare / logflare / 0be38c1a79a9d1a48536280723b4249f890492c9
80%

Build:
DEFAULT BRANCH: main
Ran 21 May 2026 02:00PM UTC
Jobs 1
Files 475
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 May 2026 01:46PM UTC coverage: 80.399% (-0.05%) from 80.45%
0be38c1a79a9d1a48536280723b4249f890492c9

push

github

web-flow
fix: verify Stripe webhook signatures to prevent forged billing events (#3423)

* fix: verify Stripe webhook signatures using Stripe.WebhookPlug

- Add Stripe.WebhookPlug to the endpoint before Plug.Parsers so raw
  body bytes are available for HMAC-SHA256 signature verification
- Move billing event logic from StripeController into a new
  LogflareWeb.StripeWebhookHandler that implements Stripe.WebhookHandler
- Remove the now-redundant /webhooks/stripe router route
- Read the webhook secret from STRIPE_WEBHOOK_SECRET env var at runtime
- Update tests to sign requests with a test secret and assert against
  WebhookPlug response semantics (400 on bad/missing signature)

Closes PRODSEC-35

Co-authored-by: Brian Cullen <brianshan@gmail.com>

62 of 70 new or added lines in 6 files covered. (88.57%)

8 existing lines in 1 file now uncovered.

12646 of 15729 relevant lines covered (80.4%)

3755.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
91.67
lib/logflare_web/stripe_webhook_handler.ex
1
49.09
1.01% lib/logflare/application.ex
1
96.88
-1.02% lib/logflare/billing.ex
1
66.67
-33.33% lib/logflare_web/endpoint.ex
1
83.33
lib/logflare_web/plugs/stripe_webhook.ex

Coverage Regressions

Lines Coverage ∆ File
8
54.17
-33.33% lib/logflare/backends/consolidated_sup_worker.ex
Jobs
ID Job ID Ran Files Coverage
1 0be38c1a79a9d1a48536280723b4249f890492c9.1 21 May 2026 02:00PM UTC 475
80.4
GitHub Action Run
Source Files on build 0be38c1a79a9d1a48536280723b4249f890492c9
  • Tree
  • List 475
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0be38c1a on github
  • Prev Build on main (#71BD0C4C...)
  • Next Build on main (#6658D948...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc