Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DRB UI read-only #6792

Open
yaneony opened this issue Nov 21, 2019 · 7 comments
Open

Make DRB UI read-only #6792

yaneony opened this issue Nov 21, 2019 · 7 comments
Labels
Admin UI good_for_contributors triaged The issue is reviewed and made a decision on it

Comments

@yaneony
Copy link

yaneony commented Nov 21, 2019

As for now, web UI gives you full control over all database/server/cluster. Exposing such UI over web is pretty dangerous. Sure, there is still possibility to put it behind apache/nginx with authentification, but still a dangerous thing.

It would be nice to have some king of possibility to turn UI in read-only mode, so it could be seen/checked for stats purpose only like current read/write, cache usage, etc.

@srh
Copy link
Contributor

srh commented Nov 21, 2019

RethinkDB has read-only users. So that could be used to implement this.

@gabor-boros
Copy link
Member

@yaneony I'm closing this issue for now. If you would like to reopen it, feel free to do.

@yaneony
Copy link
Author

yaneony commented Feb 6, 2020

But there is no auth on gui, or?!

@gabor-boros
Copy link
Member

So, maybe I misunderstood but isn’t the Nginx + read-only access a possible workaround? I mean I’m happy to reopen the issue but I thought the conclusion was that. Really sorry for the inconvenience. Should we reopen?

@srh
Copy link
Contributor

srh commented Feb 7, 2020

I don't get why it was closed.

What I mean is, this is generally implementable, by having auth on GUI, or even no-auth but some read-only admin user on GUI, depending on how you want to set it up.

@srh srh reopened this Feb 7, 2020
@sain801028
Copy link

sain801028 commented Jul 29, 2020

@yaneony
Recommend this method
rethinkdb --initial-password auto
https://rethinkdb.com/docs/permissions-and-accounts/

@yaneony
Copy link
Author

yaneony commented Jul 29, 2020

@yaneony
Recommend this method
rethinkdb --initial-password auto
https://rethinkdb.com/docs/permissions-and-accounts/

Please read initial post. Your recommendation is worthless, since, i'll quote:

The web administration UI always connects as if it were the admin user, and skips the authentication process (i.e., the password is not used for this connection). While the web UI cannot be password-protected, you can limit the addresses it will accept connections on using the --bind-http command line option. For more details on this, review Secure your cluster.

From here: https://rethinkdb.com/docs/permissions-and-accounts/#the-admin-user

@gabor-boros gabor-boros added good_for_contributors Admin UI triaged The issue is reviewed and made a decision on it labels May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin UI good_for_contributors triaged The issue is reviewed and made a decision on it
Projects
None yet
Development

No branches or pull requests

4 participants