Skip to main content
CoreSDK

Introduction

CoreSDK — auth, policy, observability, and multi-tenancy in one import.

Welcome to CoreSDK

CoreSDK is a universal security engine — one SDK for every language — that gives any service enterprise-grade auth, fine-grained policy, distributed tracing, and multi-tenancy. Embed it as a library in Rust, Python, Go, TypeScript, or Java. No infrastructure to run, no sidecar required.

What does it do?

CapabilityWhat you get
AuthJWT/OAuth 2.0 verification, RBAC, session management
PolicyOPA-compatible Rego engine with hot-reload and audit log
ObservabilityOTEL spans, structured logs, RFC 9457 errors
Multi-tenancyHard tenant isolation, per-tenant policy namespaces

Pick your language

How it works

CoreSDK runs in-process — it's a library, not a sidecar. Your service handles a request, the SDK middleware intercepts it, verifies the JWT, evaluates your Rego policy, starts an OTEL span, and calls your handler. The whole thing adds less than 0.3ms to your p99.

Request → [CoreSDK middleware] → Your handler → Response

              ├─ verify JWT (JWKS cached)
              ├─ evaluate Rego policy
              ├─ start OTEL span + baggage
              └─ emit structured log

Not a black box

Every decision is observable. Every auth outcome, policy evaluation, and error is:

  • Written to a structured log with trace_id
  • Included in the OTEL span as attributes
  • Streamable to your SIEM via the audit log API

Next steps

On this page