ReBAC Deployment Guide | Kamiwaza Docs

Relationship-Based Access Control (ReBAC) Deployment Guide

Version: 1.0.1 (Latest)

Use this guide to enable relationship-based access control (ReBAC) in a customer deployment of Kamiwaza. It is written for the current Kubernetes-based platform and assumes configuration is managed through your deployment values, Kubernetes Secrets, and cluster release workflow.

This page intentionally does not cover internal helper scripts, source-repo bootstrap commands, or pod-local file edits.

Before You Start

Confirm the deployment meets these prerequisites:

For general installation and environment preparation, see:

ReBAC Deployment Model

In the current platform, ReBAC is enabled as part of the auth-enabled Kubernetes deployment.

At a high level:

  1. Configure the customer-facing domain and authentication settings.
  2. Enable ReBAC in your deployment values.
  3. Configure the identity provider so tokens contain the claims Kamiwaza expects.
  4. Provide tenant bootstrap and policy data through your administrative release workflow.
  5. Validate sign-in, allow/deny behavior, and audit logging before production use.

Core Deployment Settings

The exact value names may vary slightly by deployment package, but the current reference deployment uses settings equivalent to these:

global:
  domain: kamiwaza.example.com

auth:
  enabled: true

rebac:
  enabled: true
  backend: postgres
  allowCommunityFallback: false

Key points:

Do not manage these settings by editing pod-local files or source-controlled env.sh files in a running environment.

Identity Provider Configuration

Kamiwaza expects a standards-based OpenID Connect deployment. Keycloak is the reference identity provider, but the same requirements apply to equivalent OIDC providers.

Configure the identity provider as follows:

  1. Create a confidential client for Kamiwaza.
  2. Set the redirect URI to:
    • https://<your-domain>/api/auth/callback
  3. Set the audience/client ID expected by Kamiwaza.
  4. Ensure the issuer and JWKS endpoints are reachable by the platform.
  5. Include the claims your policies depend on, such as:
    • subject identifier
    • role membership
    • tenant identifier
    • clearance or attribute claims, if your policies require them

If you are deploying a CAC-enabled federal environment, also review:

Session Store and Secrets

Production ReBAC deployments should use managed secrets and a secured session store.

Best practice:

For broader auth and secrets guidance, see the Administrator Guide.

Policy and Tenant Data

ReBAC depends on policy definitions and tenant relationship data. These artifacts should be treated like configuration, not like ad hoc runtime edits.

Best practice:

If your environment is managed by Kamiwaza or by an internal platform team, use the supported administrative workflow for loading or updating tenant bootstrap data.

Recommended Rollout Sequence

Use this order for a new ReBAC-enabled deployment:

  1. Configure the domain, ingress, and TLS.
  2. Enable authentication and confirm browser sign-in works.
  3. Enable ReBAC in deployment values.
  4. Apply the tenant and policy artifacts for the target environment.
  5. Validate role-based access with representative administrator and standard-user accounts.
  6. Review logs and audit evidence before broad rollout.

What To Validate

Before marking the deployment ready, confirm:

Use the ReBAC Validation Checklist as the final sign-off path.

Troubleshooting Guidance

If validation fails, check these areas first:

For broader auth troubleshooting, see:

Next Steps