Prashant Pandey
05/16/2025, 8:02 AMPrashant Pandey
05/16/2025, 8:05 AMPrashant Pandey
05/16/2025, 8:26 AMAnkit Sultana
05/19/2025, 5:48 PMAnkit Sultana
05/19/2025, 5:59 PMPrashant Pandey
05/20/2025, 12:18 PM{
"policyId": "'policy-doc-merchant000'",
"rowFilter": "'merchantId' = 'merchant000'"
}
What's being proposed is we rather just create a single policy for a merchant role that looks like this:
{
"policyId": "'policy-doc-any-merchant'",
"rowFilter": "'merchantId' = $merchantId"
}
If we can get the value of $merchantId
from somewhere, we can essentially resolve this filter and apply the row filter dynamically to the query. This is much easier. Now where we get this value from, it can be anywhere. In fact, we can have a lookup hierarchy - 1st: Query options 2nd: HTTP Header 3rd: auth token metadata.Prashant Pandey
05/20/2025, 12:29 PMAnkit Sultana
05/20/2025, 7:23 PMRajat Venkatesh
05/21/2025, 11:02 AMRajat Venkatesh
05/21/2025, 11:03 AMPrashant Pandey
05/27/2025, 6:31 AM