creamy-night-68920
11/10/2024, 5:33 PMbrief-egg-61061
11/10/2024, 5:33 PMbrief-egg-61061
11/10/2024, 5:34 PMketo relation-tuple parse alice_policies --format json | \ keto relation-tuple create - >/dev/null \ && echo "Successfully created tuple" \ || echo "Encountered error"
2. Best practices: [Best practices](https://www.ory.sh/docs/keto/guides/simple-access-check-guide#best-practices) for managing permissions include: - Don't cache permission checks - Perform permission checks in every critical path of the application - Use fine-grained permissions - Audit permissions regularly 3. Automated testing: [Test permissions](https://www.ory.sh/docs/keto/modeling/create-permission-model#test-permissions) recommends automating the testing of your permission model: - Write tests that insert relationships and check permissions through the SDK - For complex changes, use a separate Ory Network project for testing While the documentation doesn't explicitly mention hooks, the common approach is to create permissions (relationships) in your backend code when new objects are created. This allows you to maintain control over the permission creation process and ensure it aligns with your application's logic and security requirements.