Billy Bolton
07/17/2025, 2:18 PMoguzhan
CheckResources
or PlanResources
RPC calls?
• Could newly added policy
also mean the policies overriden along the way? (meaning addition of some specific policy in some step, and later updating it)Billy Bolton
07/17/2025, 4:53 PM• What storage driver you're using?Postgres
• While these policies are added during the integration tests, do you exercise these policies viaYes to both, but mostly PlanResources, which yieldsorCheckResources
RPC calls?PlanResources
KIND_ALWAYS_DENIED
because it is not found despite just adding the policy.
• CouldYes, also overwriting along the way (at times -- I've tried to avoid this) Again, adding the Reload RPC call after adding the policy seems to fix things, but not sure if it's because of setting wait=truealso mean the policies overriden along the way? (meaning addition of some specific policy in some step, and later updating it)newly added policy
Billy Bolton
07/17/2025, 5:12 PMoguzhan
Calling reload with wait=true solves the issue, but I think it's because of the wait rather than the reloading itself.You could try to add some
sleep
duration after policies are added/updated to validate this is the case.
I will also try to reproduce it locally, but it might take me some time.Billy Bolton
07/17/2025, 7:04 PM