fix(frontend): pass publishableKey to ClerkProvider#2
Open
schniggie wants to merge 7 commits into
Open
Conversation
Required prop omitted, breaking Docker build via tsc type error. Closes BishopFox#1
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Required prop omitted, breaking Docker build via tsc type error.
Closes #1
Card
Details