Files
orangecat/scripts/check-db.sh
T
Your NameandClaude Opus 4.5 bcfb0aa8de security: remove all hardcoded secrets from scripts and docs
- Replaced 29 JWT tokens with environment variable references
- Deleted docs/operations/SUPABASE_API_GUIDE.md (contained real keys)
- Removed mcp-servers/node_modules from git tracking (716 files)
- Updated .gitignore to prevent future exposure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 13:11:53 +01:00

28 lines
915 B
Bash
Executable File

#!/bin/bash
SERVICE_KEY="${SUPABASE_SERVICE_ROLE_KEY}"
BASE_URL="https://ohkueislstxomdjavyhs.supabase.co"
echo "=== Checking conversations table ==="
curl -s "${BASE_URL}/rest/v1/conversations?select=*&limit=3" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" | jq .
echo ""
echo "=== Checking messages table ==="
curl -s "${BASE_URL}/rest/v1/messages?select=*&limit=3" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" | jq .
echo ""
echo "=== Checking conversation_participants table ==="
curl -s "${BASE_URL}/rest/v1/conversation_participants?select=*&limit=3" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" | jq .
echo ""
echo "=== Checking profiles table ==="
curl -s "${BASE_URL}/rest/v1/profiles?select=id,username,name&limit=3" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" | jq .