is there anyone who has connected front end of Dir...
# help
a
is there anyone who has connected front end of Directus CMS (https://directus.io/) to Supabase database? How did you incoporate the API key as header to each request that Directus makes to the database?
s
In the instance of using Supabase database as the database for Directus you wouldn't need to worry about API key as header or any of the sorts since you are connecting directly to the database and therefore wouldn't be using the Supabase API at all. Since Directus has its own API to request data client side, you would then be using Directus as your API provider in this instance instead of Supabase, you could still use the Supabase API too if you wish and just use Directus as a CMS of a sorts.
a
Thank you for the clear explanation! So the Row Level Security and Policies for each database only applies when using the Supabase API right?
I'm very new to app development. In this case, I'm using Directus as front end (does headless CMS means decoupled front end?) for Supabase right? Where users can sign up/access the data on the database
s
Yes RLS will get bypassed when using the database directly as the
postgres
users that the database connection uses is not governed by the RLS rules.
I don't think Directus would server as a front end for Supabase, it would be more of a backend. Depending on what you are trying to accomplish, you might not even need Directus at all in the bigger picture of things. I think Supabase has plenty of features to help with developing applications without the need of a system such as Directus.
a
Can I use Supabase by itself if I just want others to have controlled access to the databases? Like columns-level and records-level control. I'm having a hard time knowing which public link I share to others so they can sign up and see the data in the database.
s
Can you clarify who others are when you say others? are these people working on the project with you or people using the project you've created?
a
end users, people using the project. Who are not necessarily registered on supabase and have no access to the admin dashboard but have access that I grant them
s
This would be done in your application itself, Supabase is just providing an abstraction to interact with a Postgres database, along with that they also provide a slew of other features such as User Authentication/Authorization, Storage and Database Functions.
Do you already have your project built? as in the application that your end users will be granted access to?
a
Nope. I think I have to create the pages for sign up/sign in right? And also pages to display the data? Would that be overkill if I just want the user to have access a couple of the databases that I have and do some simple search/filtering?