lastmile-ai / semantic-retrieval

MIT License
43 stars 2 forks source link

Add Policy Checks for CSVRetriever Source #190

Closed rholinshead closed 12 months ago

rholinshead commented 12 months ago

Add Policy Checks for CSVRetriever Source

Leverage the testPolicyPermission method of policies to test that the CSV source can be read by the identity. As part of this, we want to always have an identity in the AccessPassport available to check "generic" or globally-scope resource policies. To handle this, added a default global identity/resource "" as part of all access passports and set up the Always policies to use this resource


Stack created with Sapling. Best reviewed with ReviewStack.

rholinshead commented 12 months ago

cc @jonathanlastmileai for visibility, but RBAC in ts and python already differs enough to make this probably not relevant for python