Go
Go

Simply integrate Cerbos into your Go app

Make authorization checks with a simple API call in your codebase using the Go SDK.

What is Cerbos?

Cerbos is open source, decoupled access control for your application enabling you to implement fine-grained permissions in minutes.

Agile

Define and evolve complex policies without requiring a release cycle

Compliance

Meet your compliance requirements with a full audit trail of policies, permissions, access to resources

Enterprise

Be enterprise ready and meet your customer's organizational requirements with ease

Proactive

Coming soon: SIEM integrations and anomaly detection and recommendations of policy changes

image

Native Go SDK

Checking authorization is as simple as calling a function in Go which simplifies your code

image

Leverage Context

Include request context attributes in the authorization logic to enable more contextual access controls

image

Keep up to date

Cerbos SDKs are kept up to date with the latest features and improvements

Client SDK Example

if allowed, err := cerbosClient.IsAllowed(context.TODO(), user, resource, "edit");
    err == nil && allowed {
  // access allowed
}
if strings.HasSuffix(user.email, "@mycompany.com")
      || (user.company.package == "premium" && sliceContains(user.groups, "managers") {
{
  if user.region == resource.region {
    auditLog.Record(audit.Allowed, "edit", user, resource)
    // access allowed
  } else {
    auditLog.Record(audit.Denied, "edit", user, resource)
    // access denied
  }
} else {
  auditLog.Record(audit.Denied, "edit", user, resource)
  // access denied
}

Before

After

Why Cerbos?

image

Simple

Define access policies using human-readable YAML. No need to master a new policy language.

image

Super-charged Roles

Dynamically derive new roles based on contextual information. Don't be limited to what your IdP provides.

image

Context-aware

Make use of context such as IP address and time of day to make realtime access decisions

image

Ultrafast API

Access decisions in milliseconds.

image

GitOps

Develop, test, and deploy policies just as you do with your source code.

image

Multiple Environments

Built-in policy versioning to support canary deployments and different environments.

image

Cloud Native

Containerised deployment as a microservice or a sidecar. REST and gRPC interfaces. Top-notch observability.

image

Audit Logs

Capture every decision and analyze them later.

image

Community

Leverage our community for examples and help.

Book a free Policy Workshop to discuss your requirements and get your first policy written by the Cerbos team