Cerbos v0.4.0
This release mainly focused on opening up the Cerbos code to the community.
Highlights
- Testing support in the Go SDK
-
The Go client library now supports starting a Cerbos server in code to test your integration. You can now run fully automated integration tests to verify how your access rules are enforced by the Cerbos PDP.
s, err := testutil.StartCerbosServer(testutil.WithPolicyRepositoryDatabase("sqlite3", ":memory:")) if err != nil { log.Fatalf("Failed to start Cerbos server: %v", err) } defer s.Stop() c, err := client.New(s.GRPCAddr(), client.WithPlaintext()) if err != nil { log.Fatalf("Failed to create Cerbos client: %v", err) } // tests
- MySQL support
-
You can now configure Cerbos to read policies from a MySQL database.