Old Man Umby
[FIXED] Failed to create bucket: invalid signature
Fixing "Invalid Signature" in Supabase without changing "stub" entries in Compose file ...
Assumptions
* You’ve installed Supabase via Dokploy’s app templates.
* Dokploy UI is at http://<your-dokploy-url>:3000.
* Project name: e.g., supabase-test (adjust as needed).
The Fix
* Check the Current JWT_SECRET:
* In the project dashboard, find the "Environment" or "Settings" section (usually a tab or button).
* Look for JWT_SECRET in the list of environment variables.
* Copy its value (e.g., JWT_SECRET=pregenerated-secret).
* Generate a New SERVICE_ROLE_KEY:
* Open jwt.io in a new tab.
* Set the payload:
* In "Verify Signature", paste the JWT_SECRET from Dokploy into the secret box.
* Copy the new token from the "Encoded" box (e.g., eyJhbGciOiJIUzI1NiIs...).
* Update SERVICE_ROLE_KEY in Dokploy:
* Back in Dokploy’s project dashboard, go to the "Environment" section.
* Find SERVICE_ROLE_KEY.
* Replace its value with the new token from jwt.io.
* Save the changes (look for a "Save" or "Apply" button).
* Restart the Project:
* In the project dashboard, find the "Restart" or "Redeploy" button (usually near the top or in a "Services" tab).
* Click it to restart all Supabase services.
* Test in Supabase Studio:
* Open
http://<your-dokploy-url>/supabase-test
(adjust URL to your project’s domain).
* Go to the Storage section, create a bucket (e.g., test-bucket), and check if it works without errors.
Why It Works
- The "invalid signature" error was due to the missing sub
claim in SERVICE_ROLE_KEY
. Adding it fixes token validation.
- "Stub" values (TENANT_ID
, REGION
, GLOBAL_S3_BUCKET
) don’t need changing for this fix.3 replies