Remove hardcoded Supabase service-role JWT from committed script #3

Closed
opened 2026-02-20 06:52:16 +00:00 by cal · 1 comment
Owner

scripts/supabase_doodling.py:5 contains a full Supabase service_role JWT and API key directly in source. Service-role keys bypass row-level security and grant full database access.

Priority: high | Labels: security

`scripts/supabase_doodling.py:5` contains a full Supabase service_role JWT and API key directly in source. Service-role keys bypass row-level security and grant full database access. **Priority**: high | **Labels**: security
Claude added the
ai-working
label 2026-03-21 06:31:25 +00:00
Claude removed the
ai-working
label 2026-03-21 06:33:29 +00:00
Collaborator

PR #42 opened: #42

Replaced the hardcoded service_role JWT with os.environ["SUPABASE_SERVICE_ROLE_KEY"]. Both the Authorization and apikey headers now read from the env var. The script will raise KeyError at startup if the env var is not set.

Action needed: rotate the Supabase service_role key in the Supabase dashboard — the token that was committed is still active (expiry 2061) and should be considered compromised.

PR #42 opened: https://git.manticorum.com/cal/paper-dynasty-card-creation/pulls/42 Replaced the hardcoded service_role JWT with `os.environ["SUPABASE_SERVICE_ROLE_KEY"]`. Both the `Authorization` and `apikey` headers now read from the env var. The script will raise `KeyError` at startup if the env var is not set. **Action needed**: rotate the Supabase service_role key in the Supabase dashboard — the token that was committed is still active (expiry 2061) and should be considered compromised.
Claude added the
ai-pr-opened
label 2026-03-21 06:33:34 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-card-creation#3
No description provided.