Join our Newsletter — 33% off our NHI Course
Home› Guides› Couchbase Security Guide: RBAC, TLS, Auditing and Capella…
Guide Data Security

Couchbase Security Guide: RBAC, TLS, Auditing and Capella Settings

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 19 November 2026 14 min read
On this page

A secure Couchbase deployment rests on four controls: least-privilege role-based access control (RBAC) for every user and application, a strong password policy or external authentication, TLS enforced between nodes and clients, and audit logging that is switched on and retained. Couchbase Server and its managed service, Couchbase Capella, document each of these controls, but several start in a permissive state. Auditing must be explicitly enabled and checked on each node, the default password policy demands only six characters, and cluster encryption must be turned on and raised to the right level. This guide explains each setting, how it applies to the application credentials that make up most database access, and what to check before a cluster goes live.

The guide is for database administrators, platform engineers and security teams. Couchbase Server facts come from the current Couchbase Server documentation (version 8.0 at the time of writing), and Capella facts from the Capella security overview.

This is an independent guide from NHI Mgmt Group, based on Couchbase's public documentation as of November 2026. It is not sponsored or reviewed by Couchbase. Product features change, so confirm settings against Couchbase's current documentation.

Key takeaways

  • Couchbase RBAC separates administration from data access: Cluster Admin can create and drop buckets but cannot read or write data, and Data Reader and Data Writer do not grant SQL++ query rights.
  • Give each application its own user, with data and query roles scoped to the buckets, scopes or collections it needs. Do not grant the deprecated Application Access role.
  • The default password policy needs only six characters. Strengthen it with setting-password-policy or the REST API, or use an external authentication domain such as LDAP or SAML.
  • Set cluster encryption to all or, after testing, strict, and keep the minimum TLS version at 1.2 or raise it to 1.3. Couchbase Server 7.6 and later do not support TLS 1.0 or 1.1.
  • Auditing is configured per node; confirm it is enabled on every node. Enable it on every node, set rotation, and plan retention, since rotated files are not deleted unless you configure pruneAge.
  • In Capella, TLS 1.2 or higher is always on, access is limited by allowed IP lists and private networking, and the Capella UI supports SSO with named identity providers.

The Couchbase security model

Couchbase states that "To access Couchbase Server, users must be authenticated", after which authorisation determines what each user can do. Users can authenticate with a username and password or with X.509 certificates, which also support TLS by establishing the identity of a client or server.

Couchbase groups users into two authentication domains:

  • Local: "users whose credentials are maintained by Couchbase Server itself".
  • External: "users whose credentials are maintained remotely", with an LDAP server and a SAML identity provider given as examples.

Couchbase also describes three user categories: administrators, developers and applications. The application category matters most for non-human identity management. In a typical deployment, far more connections come from services, microservices, ETL jobs, backup tools and replication links than from people. Each of those uses a Couchbase credential, and each needs an owner, a narrow role and a rotation plan. The Database Security Guide sets out the general principles this guide applies to Couchbase.

Role-based access control

Couchbase defines roles as sets of privileges: "Roles provide a set of privileges for interacting with a resource." Many data roles can be limited to specific buckets, scopes or collections, and a user can hold several roles at once.

Administrative roles

RoleWhat Couchbase says it allows
Full Admin (admin)Full privileges to all features and resources, including security.
Cluster Admin (cluster_admin)Manages cluster features except security; can create, edit and drop buckets but has no data access.
Security Admin (security_admin)Manages security settings except users and groups.
Read-Only Admin (ro_admin)Reads settings and statistics; since 8.0 no longer grants access to security information.
Read-Only Security Admin (ro_security_admin)New in 8.0; views security settings and, as of 8.0.1, the list of users and groups.
Local User Admin (user_admin_local)Manages users in the local domain; cannot grant Full Admin, Read-Only Admin, User Admin or Security Admin roles.
External User Admin (user_admin_external)Manages external domain users and groups, with similar grant restrictions.
Backup Full Admin (backup_admin)Handles backup tasks; does not back up users unless the user also holds the User Admin roles.

This split lets you separate duties. Operations staff can hold Cluster Admin without seeing customer data. Security staff can hold Security Admin, and user administration can sit with a separate team through the User Admin roles. Audit reviewers can hold Read-Only Security Admin. Full Admin should be limited to a very small number of named people and break-glass accounts.

Bucket, data and query roles

  • Bucket Admin (bucket_admin) manages assigned buckets, including starting and stopping XDCR for them, but cannot read or write documents.
  • Manage Scopes (scope_admin) creates and drops scopes and collections, with no data access.
  • Data Reader (data_reader) "lets the user read data from one or more collections via key-value retrieval", and Data Writer (data_writer) "lets the user write data to one or more collections via key-value operations".
  • Data DCP Reader (data_dcp_reader) starts DCP streams for assigned collections, scopes or buckets. Treat it as a bulk-read right.
  • Data Monitor (data_monitoring) reads statistics for assigned resources.
  • Query roles such as Query Select, Query Update, Query Insert, Query Delete, Query Manage Index and Query List Index are separate, because Data Reader and Data Writer do not grant the ability to run SQL++ queries.
  • Application Access (bucket_full_access) is deprecated. Couchbase advises not to grant it.

Designing roles for applications

Because data roles scope down to collections, Couchbase supports fine-grained least privilege for service accounts. A practical pattern:

  • One Couchbase user per application and environment, never shared between services.
  • Key-value applications get Data Reader or Data Writer only on the collections they use.
  • Query-driven applications get only the specific query roles they need (for example Query Select without Query Delete), scoped to their collections.
  • Index management stays with a deployment pipeline identity, not with the running application.
  • Change-stream consumers get Data DCP Reader on named collections, and their owners record where the streamed data goes.
  • No application user holds an administrative role.

Review role grants at least each quarter. Look for users with roles on all buckets, users with Full Admin, and the deprecated Application Access role.

Authentication, passwords and certificates

The Full Administrator "who installs and configures Couchbase Server" sets their own username and password during configuration, and can then add more administrators. Enterprise Edition supports any number of users; Community Edition is limited to twenty.

Password policy

Couchbase's default policy "demands only that the password have a minimum of six characters". The Full Administrator can strengthen it with the CLI command setting-password-policy or the REST API. The minimum length can be set between 1 and 100 through the CLI, or 0 and 100 through the REST API; Couchbase describes a minimum of 0 as "highly insecure". The policy can require at least one uppercase character, one lowercase character, one special character and one digit. Couchbase recommends passwords of at least 12 characters mixing letters, numbers and special characters, or passphrases of at least 15 characters.

Couchbase also supports temporary passwords and can force a password change at the user's next login. Use that for every new human account, so the person who created the account does not know the final password.

External authentication

For people, an external domain is usually the better choice, because joiner, mover and leaver changes then follow the central directory. Couchbase notes that external users (LDAP or SAML) must change passwords through their external provider. Keep a small number of local accounts for break-glass use, with strong passwords held in a vault.

Application credentials

Application users are usually local users with passwords, or clients using X.509 certificates. For passwords, generate long random values, store them in a secrets manager, and rotate them on a schedule and whenever a person who could read them leaves. For certificates, track expiry and issuing authority, and automate renewal. The Certificate Expiry Outages and 47-Day TLS Certificates Guide explains why short certificate lifetimes need automation.

Encryption in transit

Couchbase Server offers three cluster encryption levels, set globally once cluster encryption is enabled:

  • control: "server-management information passed between nodes is passed in encrypted form".
  • all: "all information passed between nodes, including data handled by services, is passed in encrypted form".
  • strict: encryption is required for node-to-node and cluster-to-client traffic. Traffic that stays on one node over loopback (::1 or 127.0.0.1) may remain unencrypted.

Couchbase advises reviewing its "Enforcing TLS" guidance in the REST API documentation before setting strict. In practice, test client connectivity first, because clients that still use plain connections will fail once strict applies. The secure port for TLS client connections to the cluster manager is 18091.

TLS versions and ciphers

  • The minimum TLS version can be set to 1.2 or 1.3, globally or per service. If TLS is enforced, the default minimum is 1.2.
  • Couchbase Server 7.6 and later do not support TLS 1.0 or 1.1, and upgrades raise lower settings to 1.2.
  • Cipher preference follows the server's order by default. Per-service cipher lists override the global list; if neither is set, services use a HIGH-security list.
  • Only the Cluster Manager, Data Service and Analytics Service support custom TLS 1.3 cipher lists.
  • For HTTP/2 over TLS 1.2, a custom list must include TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, otherwise HTTP/2 falls back to HTTP/1.x.

NIST SP 800-52 Rev. 2 gives general guidance on choosing TLS versions and cipher suites.

Auditing

Couchbase auditing records two broad kinds of event: "Admin events, which track administrative and configuration changes to the cluster", and "Data events, which track attempts to access and change data". Couchbase states that auditing can be explicitly enabled and that "Each node captures its own events only". Auditing must therefore be enabled across the cluster, and logs must be collected from every node.

Filtering and records

Some events are non-filterable and are always recorded while auditing is on. Others can be individually enabled or disabled, and filterable events can be ignored for specified users. Use user exclusions sparingly: excluding a busy application user reduces volume, but it also hides that identity's activity if its credential is misused. Audit records include fields such as id, name, description, real_userid, local, remote and timestamp.

Rotation and retention

Events are written to a file named audit.log. The administrator sets a rotation period between 15 minutes and 7 days, and files also rotate if they reach 20MB. Couchbase notes that "By default, Couchbase Server does not automatically delete rotated audit log files". Configure cleanup with the pruneAge parameter of the Configure Auditing REST API or an external script, and ship logs to a central store before they are pruned.

User activity auditing

Enterprise Edition offers user activity auditing, which stores the timestamp of each user's most recent request rather than every action. It covers local domain users only: "Externally authenticated users, such as those managed by LDAP or SAML, are not tracked." This is useful for finding stale local application users. A local user with no recent activity is a candidate for removal. The Database Audit Log Detection Guide covers what to alert on once logs are central.

Couchbase Capella settings

Capella, the managed service, applies many of the same RBAC concepts with some platform controls on top. From the Capella security overview:

  • Organisations and projects: "Couchbase Capella is organized into organizations and projects, each of which has its own user roles." Keep organisation-level roles for a small group and grant project roles to teams.
  • Cluster credentials: these "Provide programmatic and application-level access to data on a cluster" and are based on Couchbase RBAC. Apply the same one-credential-per-application rule as for self-managed Couchbase Server.
  • Allowed IP lists: Capella lets you "Limit both the IP addresses that can access your data, and the period for which they have access." Use time-limited entries for temporary access, and avoid broad ranges.
  • Private networking: you can add a private endpoint with AWS PrivateLink, Azure Private Link or GCP Private Service Connect, or set up VPC peering with AWS, Azure or GCP. Couchbase notes that restricted public access is available on request.
  • Encryption in transit: "All communication is encrypted using TLS 1.2 or higher. This can't be turned off."
  • Encryption at rest: customer master keys are 256-bit AES keys and are not exportable. Customer-managed encryption keys are supported, so you can control key rotation, storage location and revocation.
  • SSO: users can sign in to the Capella UI through federated SSO; Couchbase lists Okta, Azure AD, Ping Identity and CyberArk as supported identity providers.
  • Audit logs: Capella provides event auditing per node, and log files can be downloaded as one compressed file for inspection.

Replication and backup identities

XDCR and backup are privileged paths that are easy to overlook. Cluster Admin has full XDCR access; Bucket Admin can start and stop replications for assigned buckets but cannot add, remove or edit XDCR connections; Read-Only Admin can list remote clusters and outgoing replications. Backup Full Admin has full backup access, and Cluster Admin has none. Give replication and backup jobs their own dedicated users, store their credentials in a secrets manager, and protect backup files as carefully as the live cluster, because a backup is a full copy of the data.

Common failure patterns

  • Default password policy left in place. Six-character passwords are allowed for every local user.
  • Shared application credentials. Several services use one Couchbase user, so audit records cannot tell them apart and rotation breaks everything at once.
  • Over-broad roles. Applications hold Full Admin, roles on all buckets, or the deprecated Application Access role.
  • Encryption at control only. Data between nodes travels unencrypted.
  • Auditing off, or on for some nodes. Because auditing is per node, partial enablement leaves gaps.
  • Audit files filling disks or vanishing. Rotated files are kept forever unless pruned, or pruned before being shipped.
  • Wide Capella allowed IP lists. Broad ranges or permanent entries replace private networking.
  • Unmanaged certificates. Client or node certificates expire without warning.

Practitioner checklist

  • List every Couchbase user and group, and record an owner for each application user.
  • Limit Full Admin to named people and break-glass accounts; split duties across Cluster Admin, Security Admin and User Admin roles.
  • Scope application roles to collections, and grant only the query roles each application needs.
  • Remove any grants of Application Access (bucket_full_access).
  • Strengthen the password policy to at least 12 characters with complexity, or move people to LDAP or SAML.
  • Store application passwords in a secrets manager and rotate them on a schedule.
  • Enable cluster encryption at all, test clients, then move to strict; set the minimum TLS version to 1.2 or 1.3.
  • Enable auditing on every node, set rotation and pruneAge, and forward logs centrally.
  • Use user activity auditing to remove stale local users.
  • In Capella, prefer private endpoints or VPC peering, keep allowed IP entries narrow and time-limited, and enable SSO for the Capella UI.
  • Give XDCR and backup their own users, and protect backup files.

Standards and references

Related NHI Mgmt Group resources: Database Security Guide · Database Audit Log Detection Guide · Certificate Expiry Outages and 47-Day TLS Certificates Guide · API Keys vs Service Accounts

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.