Alex Olivier (Cerbos)
Andy Thorne
05/02/2023, 4:30 PMANILA SOMAN
05/08/2023, 12:04 PMANILA SOMAN
05/09/2023, 3:56 AMANILA SOMAN
05/09/2023, 11:06 AMDoug Gilmour
05/09/2023, 3:54 PMDoug Gilmour
05/09/2023, 3:56 PMANILA SOMAN
05/10/2023, 9:15 AMANILA SOMAN
05/12/2023, 5:26 AMConor Downey
05/26/2023, 7:53 PMKushagra Indurkhya
05/29/2023, 1:09 PMEmre Suzen
06/07/2023, 9:51 AMakkaratanapatT
06/07/2023, 8:32 PMexpr: request.resource.attr.share_read_list.exists(t, t.id == request.principal.id)
and I would like to implement it and add a list of string in resouce attr in Rust,
but it said AttrVal wasn't implemented for list, vec, or iter
May you give me some example of thisYash Sharma
06/13/2023, 9:38 PMManuel Dugué
06/14/2023, 7:28 AMjimmy mc
06/14/2023, 8:16 AMjimmy mc
06/14/2023, 10:01 AMDenys Andriyanov
06/22/2023, 12:21 PMDenys Andriyanov
06/22/2023, 12:21 PM---
apiVersion: api.cerbos.dev/v1
resourcePolicy:
version: "default"
# Importing `identity_roles` in so they can be used in the resource policy.
importDerivedRoles:
- identity_roles
# This resource file is reviewed for when checking permissions when a resource
# is of `kind` "user_request"
resource: user_request
rules:
# If the `principal`s role is `admin` then all the actions are allowed.
- actions: [ "*" ]
roles:
- root
effect: EFFECT_ALLOW
# A `admin_that_owns_the_tenant` can only access `user_request` that belong to resources in
# their tenant,
- actions: [ "*" ]
roles:
- admin
effect: EFFECT_ALLOW
condition:
match:
expr: request.resource.attr.tenant == request.principal.tenant
getting
"error":"failed to get check for [user_requ
est.default]: policy compilation error: 1 compilation errors\nresource user request.yaml Invalid expression in resource rule 'rule-002' (failed to compile
request.resource.attr.tenant == request.principal.tenant
[undefined field 'tenant'])"}Denys Andriyanov
06/22/2023, 12:22 PMChris Arderne
06/23/2023, 10:11 AMAlex Olivier (Cerbos)
Yousef Sultan
06/29/2023, 9:32 AMYousef Sultan
06/29/2023, 9:36 AMMark Piper
06/30/2023, 3:19 AMcerbos-query-plan-adapters
and added one. (Not yet in a gem or well-documented, but it passes all the ORM tests). Sharing it here!
https://github.com/mark-piper/cerbos-query-plan-adapters/tree/mark-piper/activerecordAnna Paykina
07/06/2023, 11:33 AMBen Hall
07/11/2023, 6:16 PMMark Piper
07/13/2023, 4:16 PMrequest_id
is not logged. I've opened an issue https://github.com/cerbos/cerbos/issues/1690 and a PR to fix it: https://github.com/cerbos/cerbos/pull/1691jimmy mc
07/14/2023, 8:28 AMjimmy mc
07/14/2023, 8:52 AM