Joey
01/25/2023, 3:12 AMJoey
01/25/2023, 3:12 AMcaveat check_amount(amount int, allowed_amount int) {
amount <= allowed_amount
}
definition transfer {
relation creator: user with check_amount
}
fierro
01/25/2023, 3:21 AMfierro
01/25/2023, 3:37 AMuser
. You want to provide a UX for admin `user`s to create custom roles and assign them to other `user`s. This would be some API that the admin user calls which eventually calls the Authzed service to update the schema. Is this common or am I missing something? Looks like the SchemaService.WriteSchema
overwrites the existing schema. There's no way to incrementally add new portions of the schema, is there?Joey
01/25/2023, 3:37 AMJoey
01/25/2023, 3:38 AMfierro
01/25/2023, 3:38 AMjonb1991
01/25/2023, 5:18 AMJoey
01/25/2023, 5:42 AMJoey
01/25/2023, 5:43 AMvroldanbet
01/25/2023, 9:11 AMalex87
01/25/2023, 10:15 AMdguhr84
01/25/2023, 3:32 PMLookupResources
here: https://github.com/RedHatInsights/authz-experiments/blob/main/engine_eval/zanzibar/authzed/attributefilterdemo/src/main.go#L71-L90
we're trying to get those resources and put them into a slice. The only way we found so-far is in line 81-90 but this looks a bit strange. Is there another, more idiomatic way? If not, can you tell us more about the reason this is how it is?Xu
01/25/2023, 4:53 PMJoey
01/25/2023, 4:53 PMJoey
01/25/2023, 4:54 PMJoey
01/25/2023, 4:56 PMXu
01/25/2023, 5:00 PMXu
01/25/2023, 5:03 PMJoey
01/25/2023, 5:12 PMXu
01/25/2023, 5:14 PMXu
01/25/2023, 5:16 PMJoey
01/25/2023, 5:21 PMXu
01/25/2023, 5:22 PMJoey
01/25/2023, 5:24 PMXu
01/25/2023, 5:48 PMJoey
01/25/2023, 5:48 PMfierro
01/25/2023, 5:51 PMfierro
01/25/2023, 5:53 PMJoey
01/25/2023, 5:54 PM