© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
6 replies
turner

'Direct' Postgres Connection - any way to ensure that access policies apply?

Hi, I want a direct connection from our custom API (built in Python with FastAPI) to Postgres, since it is a lot faster. Is it somehow possible to pass the
access_token
access_token
or any authentication to the db call's that trigger the policies configured in the Supabase dashboard? Or are the database policies only applied when using the Supabase API? Sorry if that's a dumb question, happy for your help!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

issue using direct connection for postgres in golang
SupabaseSSupabase / help-and-questions
13mo ago
Is there any way to access auth object in postgres functions?
SupabaseSSupabase / help-and-questions
4y ago
Direct connection to DB unable to backup
SupabaseSSupabase / help-and-questions
4y ago
Limit direct db access
SupabaseSSupabase / help-and-questions
4mo ago