Skip to content

fix(frontend): pass publishableKey to ClerkProvider#2

Open
schniggie wants to merge 7 commits into
BishopFox:mainfrom
schniggie:main
Open

fix(frontend): pass publishableKey to ClerkProvider#2
schniggie wants to merge 7 commits into
BishopFox:mainfrom
schniggie:main

Conversation

@schniggie
Copy link
Copy Markdown

Required prop omitted, breaking Docker build via tsc type error.

Closes #1

Card

Details

Required prop omitted, breaking Docker build via tsc type error.

Closes BishopFox#1
@schniggie schniggie requested a review from a team as a code owner May 30, 2026 20:18
schniggie added 6 commits May 31, 2026 00:12
Pages were silently showing fake demo data when API returned empty results.
Now show proper empty states and real zeros. AgentDetail shows a proper
"not found" state instead of rendering a random mock endpoint.
get_current_user used Request type which FastAPI can't inject into WebSocket
handlers. Both Request and WebSocket inherit from HTTPConnection. Also adds
token query param fallback for WebSocket clients that can't set headers.
WebSocket connections can't send Authorization headers; token must be
passed as a query param. streamAttackLogs now accepts the token and
appends it as ?token= so the backend global auth dependency validates it.
… err=None

WebSocket routes can't send Authorization headers so the global Depends
causes 401. attack.py handles auth per-route (POST has Depends, WS uses
token query param). Also guard mcp_client against err=None from servers
that return {"error": null}.
…ty token

WebSocket connections can't reliably send auth tokens. The random IDs
issued by authenticated POST endpoints provide sufficient access control
(48-bit entropy, unguessable). Removes dead token-check code from both
attack_stream and scan_progress_ws.
MCPEngine was used for openai_compat endpoints, which always got 0 findings
because caps=False gates all attack phases. New OpenAIAttackEngine probes:
- GET /v1/models (model enumeration)
- System prompt extraction via chat completions injection
- Jailbreak payload testing
- Sensitive data probes (env vars, credentials, filesystem)

Routes openai_compat, gradio, streamlit, open_webui to the new engine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clerk authentication breaks build when no API key is available

1 participant