Supabase db pull command gives dump file with database triggers making http request with jwt token #36373
Unanswered
SadmanYasar
asked this question in
Questions
Replies: 1 comment
-
|
could you do something? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I am currently facing an issue where the migration file with database triggers that call an edge function with jwt token is included.
The line in migration file:
Making the repository public means this key is exposed and becomes a security issue. What can be done to still include the trigger code but hide or remove the token from the migration file? I may be wrong but can the token be passed as environment variable in the migration? Or should the migration files be kept private in this case? TIA.
Beta Was this translation helpful? Give feedback.
All reactions