• 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
38%
main: 38%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/ui/validator-13.15.26
DEFAULT BRANCH: main
Ran 19 Nov 2025 05:27AM UTC
Jobs 1
Files 316
Run time 1min
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

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

0 of 18 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

15636 of 41579 relevant lines covered (37.61%)

10.5 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% pkg/server/connect_interceptors/authorization.go
17
15.98
-0.97% internal/api/v1beta1connect/billing_subscription.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% pkg/server/connect_interceptors/authorization.go
Jobs
ID Job ID Ran Files Coverage
1 19490803875.1 19 Nov 2025 05:27AM UTC 316
37.61
GitHub Action Run
Source Files on build 19490803875
  • Tree
  • List 316
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1294
  • PR Base - main (#19456755801)
  • 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