Repository navigation
Security fixes and hardening sync (part 2) - #5842
Conversation
Second batch of security fixes and hardening for self-hosted Helicone. - Worker: decrypted vault keys are only sent to first-party provider origins; auth and key caches use short TTLs and negative caching; Helicone and provider secrets are stripped from outbound headers and redacted from logs. - Filters: unknown filter keys and operators are rejected, and the organization scope predicate cannot be escaped by a user-supplied filter. - Web: API routes require a session and same-origin requests, Slack OAuth uses signed state and verifies Slack request signatures, provider and proxy key endpoints mask secrets and are scoped to the caller's org. Unused chat proxy, global metrics and billing routes are removed. better-auth now requires email verification, and the app sends anti-framing and nosniff headers. - Jawn billing, webhooks and integrations: changes require an org owner or admin; webhook and integration destinations are checked against private, loopback and metadata addresses (SSRF guard) and redirects are not followed. - Prompts, evaluators and datasets are scoped to the caller's org; LLM-as-a-judge calls are rate limited per org with an allowlisted model set. - Authorization is bound to the authenticated org and the verified credential type. Member, API key and org-level writes require a JWT owner or admin; API keys can no longer act as their creator; proxy keys are rejected on Jawn routes other than the worker log fallback. /v1/log/request and /v1/public/security fail closed when HELICONE_MANUAL_ACCESS_KEY is unset. - Python evaluators are turned off and the CodeSandbox sandbox pool and SDK dependency are removed. Existing python evaluators are skipped by online evals and cannot be created or edited; the web UI no longer offers them. - Jawn auth cache keys are versioned, and cached entries are only trusted when they carry a verified credential type, so tasks on different code versions never reuse each other's entries during a deploy. - New migration adds an event trigger that keeps public.decrypted_* views closed to anon/authenticated and stops granting anon access to new objects in public by default. - docker-compose and minio_hcone.py use pinned pgsty/minio and pgsty/mc images, since minio/minio and minio/mc are no longer on Docker Hub. - Jawn deploy workflow task definition revisions updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot is paused — your team has an unpaid invoiceBugbot is paused because your team has an unpaid invoice. Pay it from the billing page in the Cursor dashboard and Bugbot resumes automatically. (requestId: 49121266-0c4e-48bf-8293-134f47a93217) |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Second batch of security fixes and hardening for self-hosted Helicone, following #5841. One commit on top of
main.What's in it
x-goog-api-keyheader./api/statsis admin-only, and anti-framing headers are set.@codesandbox/sdkdependency are removed. Python evaluators can no longer be created, edited or tested (POST /v1/evaluator/python/testreturns 410), online evals skip existing python evaluators, and the web UI no longer offers them. Existing rows stay in the database and can still be deleted.20261019170000_guard_decrypted_views.sqladds an event trigger that re-revokesanon/authenticatedaccess whenever pgsodium regenerates apublic.decrypted_*view, and stops grantinganonaccess to new tables, sequences and functions inpublicby default.minio/minioandminio/mcare no longer on Docker Hub, sodocker/docker-compose.ymlandminio_hcone.pyuse pinnedpgsty/minioandpgsty/mcbuilds (same binaries, paths, env vars and ports).Behaviour changes for self-hosters
HELICONE_MANUAL_ACCESS_KEYon Jawn to the worker's value./v1/log/requestand/v1/public/securitynow reject all callers when it is unset.supabase/migrations/20261019170000_guard_decrypted_views.sql). Anything new thatanonneeds inpublicmust now be granted explicitly.CSB_API_KEYis no longer used.pgsty/minioandpgsty/mc.Tests: new unit tests for each area, including python evaluator shutdown and auth cache versioning. Jawn, worker, web and bifrost typecheck clean (
tsc --noEmit);packagesJest suite passes (645 tests).If you run Helicone yourself, update to this version, apply the new migration, revoke
anon/authenticatedaccess to anydecrypted_*views, and rotate stored provider keys.🤖 Generated with Claude Code