Security: comprehensive tenant, credential, and webhook hardening - #404
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
vincentgrobler
force-pushed
the
security/comprehensive-hardening
branch
from
August 18, 2026 07:29
6737271 to
5973dd1
Compare
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.
Summary
This PR completes a broad security hardening pass prompted by the confirmed public RLS policy exposure in migration 021. It closes additional tenant-isolation, credential-handling, webhook-authentication, SSRF, arbitrary-code-execution, and dependency risks across the frontend, Supabase functions/database, task runner, CLI, widget, and Zapier app.
Security changes
Database and tenant isolation
085_comprehensive_security_hardening.sqlto tighten RLS, grants, RPC execution, workspace membership, invitation acceptance, rate limiting, subscriptions, audit writes, admin operations, and cross-tenant references.output_routesfrom Realtime and scrub integration secrets historically copied into task metadata.Credentials and OAuth
API_KEY_ENCRYPTION_KEY.Runtime and network boundaries
code_interpreterexecution path.stdiocommand execution; only HTTP streaming transports remain.Webhooks and browser security
APP_URL.Dependencies and regression coverage
docs/security-hardening-2026-08.md.Verification
git diff --check: passedA full local Supabase reset could not be run because Docker was unavailable. The migration has therefore been syntax-validated but must still be exercised in staging before production.
Deployment requirements
This release intentionally fails closed and must be deployed as a coordinated maintenance change:
API_KEY_ENCRYPTION_KEYin Supabase Edge Functions and the task runner.WEBHOOK_SECRET,CRON_SECRET,DATABASE_WEBHOOK_SECRET, and enabled integration signing secrets.Compatibility notes
code_interpreteragents and MCPstdioservers are deliberately disabled.