Skip to content

Reverse proxy header authentication

Evgenia Bezborodova edited this page Feb 19, 2024 · 27 revisions

Overview

CloudBeaver offers a feature for authorization and authentication using reverse proxy headers. This method allows to authenticate users via specific HTTP header fields.

Configuration Steps

Step 1: Enabling Reverse proxy authentication

  1. As an administrator, navigate to the Settings -> Server configuration.

  2. Locate the Reverse proxy option and activate this setting to allow reverse proxy authentication.

  3. Save changes.

Step 2.1: Reverse proxy identity provider configuration in Community Edition

To configure reverse proxy authentication, follow these steps:

  1. Open your .cloudbeaver.runtime.conf configuration file.
  2. Locate the app section within the file.
  3. Add a new entry to the authConfigurations array with the following structure:
  "app": {
    ...
    "authConfigurations": [
      {
        "id": "your_proxy_id",
        "provider": "reverseProxy",
        "displayName": "your_proxy_username",
        "disabled": true,
        "iconURL": "",
        "description": "",
        "parameters": {
          "logout-url": "https://link_if_needed",
          "user-header": "",
          "team-header": "",
          "team-delimiter": "",
          "first-name-header": "",
          "last-name-header": ""
        }
      }
    ]
  }

Important: Ensure you include the mandatory fields id, provider, and displayName. The provider name must be set to reverseProxy.

Step 2.2: Reverse proxy identity provider configuration in Enterprise and Team Editions

To configure reverse proxy authentication in the Enterprise and Team Editions of CloudBeaver using the graphical user interface (GUI), follow these steps:

  1. Log in as an administrator.
  2. Navigate to Settings -> Server configuration in the CloudBeaver interface.
  3. Click on the + Add button to create a new authentication provider.
  4. In the Provider dropdown menu, select Reverse Proxy.
  5. Enter a unique identifier in the ID field and a name for the configuration in the Configuration name field.
  6. Click on Save to apply the changes.

reverse proxy provider creation

Step 3: Configuring default HTTP header fields

Configure the standard HTTP header fields as follows:

  1. Header User Name: Set as X-User.
  2. Header Team Name: Use X-Role.
  3. Header User First Name: Designate as X-First-name.
  4. Header User Last Name: Set as X-Last-name.

Header example

Consider a user named newuser, belonging to both user and admin teams. To access an application with reverse proxy header authentication enabled, the following HTTP headers should be set in the request to the CloudBeaver application:

X-User: newuser
X-Role: user|admin
X-First-name: [Your First Name]
X-Last-name: [Your Last Name]

Tip: CloudBeaver categorizes users into two default teams: user and admin. Default delimiter used to separate teams in the header is |.

CloudBeaver Documentation

User Guide

Installation

Configuration

CloudBeaver AWS

CloudBeaver Enterprise Edition

Team Edition

Deployment

Clone this wiki locally