• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

raystack / frontier / 19490803875 / 1
38%
main: 38%

Build:
Build:
LAST BUILD BRANCH: perf/optimize-release-caching
DEFAULT BRANCH: main
Ran 19 Nov 2025 05:27AM UTC
Files 316
Run time 12s
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

19 Nov 2025 05:23AM UTC coverage: 37.606% (-0.01%) from 37.617%
19490803875.1

Pull #1294

github

whoAbhishekSah
fix(billing): improve security and error handling for ListSubscriptions

Security fixes:
- Always infer billing_id from org_id, ignore billing_id from request
- Prevents users from accessing other orgs' billing data by passing arbitrary billing_id

Error handling improvements:
- Only return empty subscriptions list for ErrNotFound (no billing account)
- Return proper errors for ErrInvalidUUID and database errors
- Add detailed error logging for debugging

Authorization changes:
- Keep ensureSubscriptionBelongToOrg checks for Get/Update/Cancel/Change subscription RPCs
- Remove ensureBillingAccountBelongToOrg check from ListSubscriptions (handled by inference)

Tested: curl call works correctly, returns empty list for orgs without billing accounts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Pull Request #1294: refactor(billing): infer billing_id from org_id in subscription RPCs

15636 of 41579 relevant lines covered (37.61%)

10.5 hits per line

Source Files on job 19490803875.1
  • Tree
  • List 316
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19490803875
  • 1bd5869e on github
  • Prev Job for on billing_id_simplification_subscription (#19456755801.1)
  • Delete
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