nebula-studio icon indicating copy to clipboard operation
nebula-studio copied to clipboard

Skip login window when database authentication is turned off

Open johnny-smitherson opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Even through Nebula Graph is configured with no database password, the login page is shown. Developers must login with graphd <TAB> root <TAB> 1234 several times per day. Capt123ure

This also means the Studio cannot be easily configured to be integrated into other apps via <iframe> for quick access - users would have to login into each iframe.

Describe the solution you'd like Have some setting that, when set, automatically logs in all browser visitors to the specified user/password/graphd. Make the setting dangerous-sounding, to ward off any production use.

For example, environment variables STUDIO_X_INSECURE_SKIP_AUTH=true STUDIO_X_INSECURE_SKIP_AUTH_USER=root STUDIO_X_INSECURE_SKIP_AUTH_PASS=1234 STUDIO_X_INSECURE_GRAPHD=http://graphd:1234.

The developer would then be responsible for securing the access.

Describe alternatives you've considered

Additional context

  • Nebula Graph 3.6.0 , nebula-graph-studio:v3.9.1

johnny-smitherson avatar Feb 29 '24 12:02 johnny-smitherson

Thank you for your feedback. @yyh0808 Can you take a look at this problem?

QingZ11 avatar Mar 04 '24 08:03 QingZ11