Skip to content

[Bounty proposal] CLI rejects non-ASCII developer keys as input errors (US$25 proposed) #20401

Closed

Description

@determine123

Hi @josancamon19 and @kodjima33 — I am preparing a narrowly scoped, AI-assisted contribution for @determine123. Could you approve a US$25 bounty for the following reproducible Python CLI input-validation defect before implementation?

Reproduction

Baseline: main at d536878.
Use a synthetic key, not a real credential:

omi --json auth login --api-key "omi_dev_aaaaaaaaaaaaaaaa中"

The current format validator accepts this value. HTTPX then raises UnicodeEncodeError while constructing the Authorization header. The production CLI exits 1 and emits an "unexpected error" containing the ASCII codec failure. No HTTP request is sent and no credential file is created in this reproduction.

Proposed scope and acceptance

  • Reject non-ASCII developer keys before constructing an HTTP client.
  • Return UsageError / exit code 2 in regular and JSON modes, with an actionable format message and no token echo.
  • Preserve existing valid ASCII-key handling and outer-whitespace trimming; do not introduce a new exact-length/hex-only policy.
  • Add hermetic regression tests for the malformed input, valid ASCII input, and credential preservation/no request on rejection.
  • Run component tests and the repository's required preflight/PR metadata checks before submitting a fix.

Expected files: sdks/python-cli/omi_cli/auth/api_key.py and focused authentication tests. No backend, hardware, or production account access is needed.

I checked the open PR titles and related CLI authentication proposals and did not find this specific validation fix; please point me to an existing owner if I missed one.

Could you confirm that the task is available, the scope above is wanted, the US$25 budget is approved, and payment would follow your documented PayPal process after acceptance and merge? This is a proposed amount, not an existing funded award. Payment details can remain private. I will wait for confirmation before implementing or submitting a fix PR.

Activity

  1. 1132dadf commented on Oct 3, 2026

    @1132dadf
    Contributor

    PR up: #20406 — rejects non-ASCII characters in developer API keys with a clean usage error before any network call (CJK and emoji cases covered by new tests).

  2. moved this from Someday to In progress in omi TODO / bountieson Oct 3, 2026
  3. moved this from In progress to In review in omi TODO / bountieson Oct 3, 2026
  4. 1132dadf commented on Oct 4, 2026

    @1132dadf
    Contributor

    Hi, just following up on the bounty claim for the CLI key-validation fix (PR #20406, now merged). I emailed [email protected] earlier today with the proposal link and my PayPal address per the bounty rules. Happy to provide anything else needed. Thanks!

  5. 1132dadf commented on Oct 22, 2026

    @1132dadf
    Contributor

    Hi team. A factual payment query about this proposal, not a comment on the code.

    PR #20406 was merged on 3 October: #20406 . @kodjima33 closed this proposal as completed on the same day.

    I noted the PR in this thread on 3 October. On 4 October I emailed [email protected] with the proposal link, the merged PR link and my PayPal account, following the "Claiming payment" step in the contribution guide: https://docs.omi.me/doc/developer/Contribution .

    As of today, 22 October, I have not received a reply from a basedhardware.com address.

    I saw that the open bounty proposals were closed on 22 October with a note that bounties are paused for now. If that pause is intended to apply retroactively to work that was already merged and already closed as completed, a one-line confirmation would let me close this out. Otherwise, could I get an update on the timeline for the US$60 outstanding across #19519, #20401 and #18904?

    Thanks for the work you all put into this project.

  6. 1132dadf commented on Oct 23, 2026

    @1132dadf
    Contributor

    Hi
    Thanks again for reviewing and merging my PR.
    Just a quick note regarding the payment/sponsorship: The previous PayPal account I provided was a Mainland China region account, which unfortunately has strict cross-border restrictions and cannot receive international personal transactions.
    To make it easier for you, I have set up a new payment link via Ko-fi. You can now complete the payment using your Credit Card or an international PayPal account at:
    👉 https://ko-fi.com/fengyuan_cn
    Please kindly process the transfer from this new link. Let me know if you encounter any issues during the checkout.
    Thanks for your support and time!
    Best regards
    FengYuan
    If you prefer other payment methods, please let me know and we can figure it out.God bless you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions