Join Slack
Powered by
I might have asked this before, but has anyone use...
# help
r
Rasmus Dencker
06/22/2023, 11:19 AM
I might have asked this before, but has anyone used the Cerbos repo to generate policies (and tests)? I tried using the strucs from the client, but since they're following the builder pattern they don't have the fields exported:
c
Charith (Cerbos)
06/22/2023, 11:27 AM
If you want to generate policies, you'd need to use the structs generated by protobufs. We do that for internal tests:
https://github.com/cerbos/cerbos/blob/44c7afaf7c7211cc869b357dbf385e2e91575115/internal/test/policy.go#L130
❤️ 1
4
Views
Open in Slack
Previous
Next