absmach / magistrala

Industrial IoT Messaging and Device Management Platform
https://www.abstractmachines.fr/magistrala.html
Apache License 2.0
2.42k stars 665 forks source link

Feature: Delete multiple policies with relationship filters #2198

Closed arvindh123 closed 1 month ago

arvindh123 commented 2 months ago

Is your feature request related to a problem? Please describe.

Could not delete policy with array of relationship filters like delete [things of users1 , things of user 2, things of user 3 ]

Describe the feature you are requesting, as well as the possible use case(s) for it.

At present DeletePolicy gRPC support delete policy with relationship filter for one policy It should made into array.

Indicate the importance of this feature to you.

Must-have

Anything else?

Rename the function to DeleteFilterPolicies

arvindh123 commented 1 month ago

@absmach/magistrala

Auth Policies are backed by SpiceDB, In spiceDB they supports one policy per request for Delete relations with filter. So this feature is not feasible for now.

We can rename the DeletePolicy to some other name like DeletePolicyWithFilter

arvindh123 commented 1 month ago

Renaming via https://github.com/absmach/magistrala/issues/2216

dborovcanin commented 1 month ago

This is not possible due to AuthZed API limitations. Closing this one.