[GH-ISSUE #612] reverse proxy header authentication #172

Closed
opened 2026-03-07 20:45:41 +03:00 by kerem · 6 comments
Owner

Originally created by @skaravad on GitHub (Dec 31, 2021).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/612

Is it possible to allow users and groups based on reverse proxy headers ?

For instance we can use X-Email as login and X-Group as user group for authenticating and authorizing users , this can be a very simple and effective authentication and authorization mechanism without complex integrations via SAML, LDAP etc.

Few systems which use this simple mechanism:
https://plugins.jenkins.io/reverse-proxy-auth-plugin/
https://grafana.com/docs/grafana/latest/auth/auth-proxy/

Originally created by @skaravad on GitHub (Dec 31, 2021). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/612 Is it possible to allow users and groups based on reverse proxy headers ? For instance we can use X-Email as login and X-Group as user group for authenticating and authorizing users , this can be a very simple and effective authentication and authorization mechanism without complex integrations via SAML, LDAP etc. Few systems which use this simple mechanism: https://plugins.jenkins.io/reverse-proxy-auth-plugin/ https://grafana.com/docs/grafana/latest/auth/auth-proxy/
kerem 2026-03-07 20:45:41 +03:00
Author
Owner

@skaravad commented on GitHub (Jan 4, 2022):

please consider this feature for CE vs EE

<!-- gh-comment-id:1004613186 --> @skaravad commented on GitHub (Jan 4, 2022): please consider this feature for CE vs EE
Author
Owner

@kseniiaguzeeva commented on GitHub (Jan 12, 2022):

Thank you for the feature request. We are going to investigate and implement it.

<!-- gh-comment-id:1011007431 --> @kseniiaguzeeva commented on GitHub (Jan 12, 2022): Thank you for the feature request. We are going to investigate and implement it.
Author
Owner

@kseniiaguzeeva commented on GitHub (Mar 23, 2022):

The feature is available in the latest release.

<!-- gh-comment-id:1076001266 --> @kseniiaguzeeva commented on GitHub (Mar 23, 2022): The feature is available in the [latest release](https://github.com/dbeaver/cloudbeaver).
Author
Owner

@skaravad commented on GitHub (Mar 23, 2022):

Hello there,
Thank you for enabling this feature, how to enable the auth method ? is there a command line arg that we can use ?

<!-- gh-comment-id:1076423221 --> @skaravad commented on GitHub (Mar 23, 2022): Hello there, Thank you for enabling this feature, how to enable the auth method ? is there a command line arg that we can use ?
Author
Owner

@kseniiaguzeeva commented on GitHub (Mar 23, 2022):

You have to add parameter "enableReverseProxyAuth": true to .cloudbeaver.rutime.conf and add parameters to nginx.conf:

 server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

		  location / {
			proxy_pass       http://localhost:8080;
			proxy_set_header X-Real-IP $remote_addr;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			proxy_set_header Host $http_host;
			proxy_set_header X-User testtest;
			proxy_set_header X-Role admin|user;
		}

Here are related articles: Reverse proxy header authentication and Server configuration.

Feel free to ask any additional questions.

<!-- gh-comment-id:1076433551 --> @kseniiaguzeeva commented on GitHub (Mar 23, 2022): You have to add parameter `"enableReverseProxyAuth": true` to .cloudbeaver.rutime.conf and add parameters to nginx.conf: ``` server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_pass http://localhost:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-User testtest; proxy_set_header X-Role admin|user; } ``` Here are related articles: [Reverse proxy header authentication](https://github.com/dbeaver/cloudbeaver/wiki/Reverse-proxy-header-authentication) and [Server configuration](https://github.com/dbeaver/cloudbeaver/wiki/Server-configuration). Feel free to ask any additional questions.
Author
Owner

@skaravad commented on GitHub (Mar 23, 2022):

Thank you for your quick response, enabled it and it is working as expected.

<!-- gh-comment-id:1076519203 --> @skaravad commented on GitHub (Mar 23, 2022): Thank you for your quick response, enabled it and it is working as expected.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#172
No description provided.