Skip to content

Login flow issues when user is logged out #9505

@Annaseli

Description

@Annaseli

What happened?

There are few issues in the login flow when running the lakeFS server while logged out (unauthenticated):

  1. No redirect to login page from most of the endpoints:
    If we type any lakeFS path directly in the browser (other than /repositories, /auth/groups, or /auth/policies), instead of being redirected to the login page, we see this error:
Image

from /auth/credentials we see this error:
Image

from /auth/users we see no error, just emtpy page:
Image

When running lakeFS with no RBAC (auth.ui_config.rbac=none), the Users and Groups tabs under the Administration section are empty and dont redirect to the login page:
Image

  1. Incorrect navbar on /auth/login
    When first starting lakefs server while logged out (unauthenticated), the user is being redirected to /auth/login but the navbar displayed is the authenticated navbar (full navbar) instead of the simplified navbar:
Image

After refreshing the page, it changes to the expected simple navbar:
Image

  • same happens If logged out, and we manually enter /repositories in the browser. We’re redirected to /auth/login but see the full navbar.

Expected behavior: When a user is not authenticated, the simple navbar should always be shown and not the full one, and all unauthenticated routes should consistently redirect to /auth/login.

Expected behavior

No response

lakeFS version

No response

How lakeFS is installed

No response

Affected clients

No response

Relevant log output

Contact details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions