Skip to content ReleaseVezual Beta is in the Plugins Console

Authentication

Know who connects.
Define their access.

Give each application a credential with a clear purpose. Manage database identities and permissions, then verify the access your application actually uses.

Identity & scope
Your applicationServer-side credentials
01

Instance token

Authenticate the request

Instance + tenant
02

Database identity

When required by your instance

User + API key
Access checked at the database

Database-user read controls

Table grantsRow policiesColumn masks
Illustrative HTTP flow · controls depend on instance configuration

The right credential.
For the right job.

Console membership, database access and service operations have different responsibilities. Keep their credentials distinct.

01

Instance token

For application requests

Authenticate engine HTTP requests to a specific instance and tenant. Personal tokens inherit the member’s effective access; choosing read/write cannot increase it.

Start in Connect; review Your tokens or Organization tokens
02

Database identity

For database permissions

Identify the database user whose roles, grants and read policies apply. HTTP uses the user’s API key; a per-user SQL listener uses its login password.

Manage in Access Control
03

Organization API key

For management operations

Authenticate supported organization and control-plane operations, including managed embeddings. Keep this separate from credentials that query your database.

Use with the relevant service API

Adding someone to your organization’s Team does not itself grant database permissions.

Database access

Shape the access.
Keep the source intact.

Use database roles and read controls to decide what an identity can retrieve from your tables. Keep the policy close to the data it protects.

Explore database access
Test as the intended identity.

Check an allowed operation and a denied one on each query path your application uses. An administrative bearer does not demonstrate restricted access.

01

Roles and table grants

Group database responsibilities into roles. Review inherited roles and object scopes, then grant the table access each identity needs.

02

Row policies

Define read conditions for a table and role. On the documented database-user read path, records that do not satisfy the condition are filtered out.

03

Column masking

Configure masks for sensitive columns. Read policies evaluate the underlying values before masking shapes the returned fields.

Read about roles and grants

From first connection
to the next rotation.

Keep credentials tied to an owner and purpose, with a clear process for changing or removing access.

01

Create & scope

Use the credential offered by Connect. Where access tokens are supported, choose the owner and required permissions, then save the shown-once secret.

02

Connect & verify

Copy the complete OC_URL and the credential for OC_TOKEN from Connect. Keep the URL unchanged, load secrets on your server and test the expected access.

03

Replace & confirm

Update clients with a replacement token, test it and revoke the old one. Check the returned status, wait for any pending engine confirmation and test that the old credential is refused.

Token changes need confirmation. Revocation can reach running engines asynchronously. A successful management response alone does not establish that every engine has applied the change.

Follow the credential guide

Put access
into practice.

Find the connection details and controls that match your application.

Before you connect

A few useful distinctions.

Do all HTTP requests need a database-user key?

Use the credential supplied by Connect: an access token where supported, or the instance key on other configurations. Where database identity is required, also send both X-OC-DB-User and X-OC-DB-Key. A bearer-only request is not evidence that database-user row policies or masks were applied.

Can a token make an application read-only?

A personal instance token can carry read-only access, enforced by the service. Selecting read/write does not exceed the member’s effective permissions. Verify the expected allowed and denied operations using the actual token and interface your application uses.

What happens when a team member leaves?

Removing a member or leaving an organization revokes that member’s personal instance tokens. Check the Team page for any pending confirmations across instances. Organization API keys and database identities are separate; review them and other shared credentials as part of offboarding.

What other controls can I review?

The connected console exposes network address rules and authorization audit history for the selected instance. Confirm the applied state and available capabilities there. An empty HTTPS IP access list allows requests from any address; it does not open a SQL wire listener. Read the access and network guidance.

Build with OriginChainDB

Build with access in mind.