error unknown-policy-target
What it means#
A policy S { allow rpcName … } block may only name rpcs of the service S. Policies are checked for names only and not enforced yet.
Example#
service S { rpc a() -> i32 }
impl S { rpc a() { 1 } }
policy S { allow nope if true } // <- unknown-policy-targeterror
unknown-policy-target
How to fix#
Use the name of an rpc of the service.