omi icon indicating copy to clipboard operation
omi copied to clipboard

Bounty proposal: normalize marketplace reviewer UID configuration consistently

Open PlayerBC opened this issue 2 months ago • 0 comments

Would you fund US$10, payable privately via PayPal after acceptance and merge, for fixing inconsistent parsing of MARKETPLACE_APP_REVIEWERS and adding focused regression coverage?

At commit 06c307aab1391324d83197ffd4ef898d1a793768, three backend paths split the comma-separated secret without trimming entries:

  • backend/utils/apps.py builds MarketplaceAppReviewUIDs at import time.
  • backend/routers/users.py independently checks the subscription snapshot.
  • backend/utils/subscription.py independently checks transcription allowance.

With a conventional value such as reviewer-a, reviewer-b, the latter UID becomes ' reviewer-b', so that reviewer silently misses app-review access and the unlimited reviewer subscription/allowance. A trailing newline from secret materialization has the same effect. Empty entries are also retained.

I propose one small shared parser that trims UIDs, drops blank entries, and supplies the same membership decision to all three call sites. Compact existing values remain unchanged.

Focused exact-expression validation across six cases: current behavior 3 pass / 3 fail; candidate 6 pass / 0 fail. The cases cover a single UID, a compact list, spaces after commas, a trailing newline, blank entries, and a missing variable. I have not run the full backend suite, deployment secret integration, or a live reviewer account; those would be required before merge.

I found no matching open issue or pull request after searches for the environment key plus whitespace/spacing terms. No reward or assignment is assumed. Please confirm the scope and reward before I prepare the repository-integrated patch.

PlayerBC avatar Sep 09 '26 01:09 PlayerBC