#PostgreSQL Configuration

1 messages · Page 1 of 1 (latest)

tight ravine
plain talon
# tight ravine Hi <@1168401687967453244> , you can use the configuration YAML file's 'database'...

Thanks for the reply.

We have running applications that use Asp.Net Core for the frontend, Web API in the middle tier, and PostgreSQL as the database. We have created a user configuration system within our frontend application to grant UI based permissions to users for various actions, such as add, edit, delete, retrieve, etc. How can we integrate Permify to manage application-specific database actions(roles, policies), such as add, edit, delete, and select, based on changes made in the frontend user configuration?

For example, let's consider a scenario where our application's user interface is associated with two database tables, and a new user role has been defined in the frontend, taking into account actions like add, edit, delete, with tenant-wise data access. Using Permify, how can we ensure that the permissions or actions configured are reflected in the corresponding database objects?

tight ravine
#

Hi @plain talon, as far as I understand you have an UI in your frontend app where some permissions, roles could defined from end user and you want to reflect those changes, those new permissions or roles to existing Permify authorization schema. Am I on the right track ?

plain talon
tight ravine
#

Thanks for clarifying. I've shared this with my engineering team, and we've had a quick brainstorming session about it. We'll share technical documentation with you on how this could be achieved with our current solution by the end of this week. I hope that works for you @plain talon

plain talon
# tight ravine Thanks for clarifying. I've shared this with my engineering team, and we've had ...

Thanks and I'm glad to hear that you've shared the information with your engineering team.

One more doubt, I have defined a sample Permify schema with entity names that correspond to the database table names. However, I have some questions about how the permissions associated with the schema-defined entities, specifically roles and policies, will be reflected within the corresponding database table objects.

For example, we have a database table named 'PurchaseOrder,' and we have two users named 'admin' and 'staff.' When using Permify to configure the relationship and actions for these entities and users, the permissions are set as follows:

Admin:

  1. Create
  2. Update
  3. Delete
  4. Retrieve (associated tenant data only)

Staff:

  1. Create
  2. Retrieve (associated tenant data only)

Could you please explain how these permissions will be enforced within the 'PurchaseOrder' database table? I'm looking for guidance on how the specified permissions will be implemented and managed effectively in Permify

tight ravine
#

Here is the example schema for the case you described: https://play.permify.co/?s=_mHT40Rw65g4HKgNPWHIM.

About the management part;

Additionally, the technical documentation we'll provide hopefully will further streamline the process for your specific case.

plain talon
plain talon
tight ravine
tight ravine
tight ravine
#

Okey but what's your concerns or doub specifically on this matter.

plain talon
#

I am using PostgreSQL as my application database. How can we implement Row Level Security using Permify to control access to rows in the database table based on the characteristics of the user executing a query?