Skip to content

BRIDGEKIT_CLIENTS entries never validated #19

Description

@royalpinto007

Problem

An entry without tools crashes with TypeError (500 to the operator); malformed JSON and unknown keys both return 401 "unknown client key", hiding server misconfig.

Where

src/auth.ts (config unchecked) + src/index.ts (.tools.includes).

Acceptance

Add failing tests first asserting a tools-less entry and malformed JSON each produce a safe config error (no 500, distinguishable from bad-key 401). Then fix.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions