You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JWKS Endpoint Returns Empty Key Set for Local Supabase #4614
Save the key in a file and add the path in config.toml (signing_keys_path field is already present in config.toml, you just need to uncomment it and update the signing key file path if necessary)
[auth]
signing_keys_path = "./signing_key.json"
Restart and now you should get a public key when you visit https://127.0.0.1:8000/auth/v1/.well-known/jwks.json
Save the key in a file and add the path in config.toml (signing_keys_path field is already present in config.toml, you just need to uncomment it and update the signing key file path if necessary)
[auth]
signing_keys_path = "./signing_key.json"
Restart and now you should get a public key when you visit https://127.0.0.1:8000/auth/v1/.well-known/jwks.json
@singh-inder@kallebysantos if I check this in and I use the config as code to control my hosted Supabase, will this impact the configuration on my Supabase project?
I am looking for a way to only set the 'custom' private key locally so I have the same behaviour locally but let the Supabase project manage the key for me.
minor thing on the above which I guess @sweatybridge will look into is that the cli produces 1 key (i.e. a JSON dictionary) but a key file (the signing_key.json) should be an array.
below is the current message which is a bit misleading:
{ .... the produced key }
To enable JWT signing keys in your local project:
1. Save the generated key to supabase/signing_key.json
2. Update your supabase/config.toml with the new keys path
[auth]
signing_keys_path = "./signing_key.json"
Save the key in a file and add the path in config.toml (signing_keys_path field is already present in config.toml, you just need to uncomment it and update the signing key file path if necessary)
[auth]
signing_keys_path = "./signing_key.json"
Restart and now you should get a public key when you visit https://127.0.0.1:8000/auth/v1/.well-known/jwks.json
@singh-inder@kallebysantos if I check this in and I use the config as code to control my hosted Supabase, will this impact the configuration on my Supabase project?
I am looking for a way to only set the 'custom' private key locally so I have the same behaviour locally but let the Supabase project manage the key for me.
the answer is yes and I worked around with setting it to empty string using branches:
[remotes.staging.auth]
signing_keys_path = ""
@sweatybridge think it would be a good idea to allow to create a local branch, or create 'reserved' keyword for the branch, so that one could set up local environment definitions. as it stands we have to set up for local by default and override per environment. let me know if you'd like me to create a ticket with that suggestion.
This whole situation could be avoided if the local dev instance simply
generate it's own dummy key like what is already the case with the secret
key and anon key. We shouldn't be expected to run a separate command for
local dev to work.
Activity
Adityakk9031 commentedon Nov 30, 2025
can i work on this issue
singh-inder commentedon Dec 1, 2025
I'm guessing you haven't added signing key in config.toml.
signing_keys_pathfield is already present in config.toml, you just need to uncomment it and update the signing key file path if necessary)Restart and now you should get a public key when you visit
https://127.0.0.1:8000/auth/v1/.well-known/jwks.jsonwhollacsek commentedon Dec 1, 2025
harshtiwari2022 commentedon Dec 1, 2025
@whollacsek Sir, I have made improvements and would like to continue working on this. Could you please assign the issue to me?
aantti commentedon Dec 12, 2025
@sweatybridge
sweatybridge commentedon Dec 12, 2025
Moving to cli repo. We can look into generating a signing key by default.
joelpramos commentedon Jan 4, 2026
@singh-inder @kallebysantos if I check this in and I use the config as code to control my hosted Supabase, will this impact the configuration on my Supabase project?
I am looking for a way to only set the 'custom' private key locally so I have the same behaviour locally but let the Supabase project manage the key for me.
joelpramos commentedon Jan 4, 2026
minor thing on the above which I guess @sweatybridge will look into is that the cli produces 1 key (i.e. a JSON dictionary) but a key file (the
signing_key.json) should be an array.below is the current message which is a bit misleading:
{ .... the produced key } To enable JWT signing keys in your local project: 1. Save the generated key to supabase/signing_key.json 2. Update your supabase/config.toml with the new keys path [auth] signing_keys_path = "./signing_key.json"joelpramos commentedon Jan 5, 2026
the answer is yes and I worked around with setting it to empty string using branches:
@sweatybridge think it would be a good idea to allow to create a local branch, or create 'reserved' keyword for the branch, so that one could set up local environment definitions. as it stands we have to set up for local by default and override per environment. let me know if you'd like me to create a ticket with that suggestion.
whollacsek commentedon Jan 6, 2026