Skip to content

feature: A way to log out of Kagenti #826

Closed

Description

@esnible

Feature Description

I accidentally logged in as "Guest".

When I go to http://kagenti-ui.localtest.me:8080/agents I see the message "Authentication Error
Authentication failed: Failed to fetch auth config / Check browser console (F12) for detailed logs." and "Error loading agents / Authentication required"

This problem was caused by #764 but the problem is general -- if there are multiple registered users, there is no easy way to switch between them.

I would like to log out of the guest account and log in as admin, but the UI does not provide a gesture to log out.

Proposed Solution

Add a "logout" button to Kagenti.

Want to contribute?

  • I would like to work on this issue.

Additional Context

@Alan-Cha suggests going to http://keycloak.localtest.me:8080/ (if using the Kind install) and logging out of Keycloak. I was not able to get that to work -- I was logged into Keycloak as "Admin", but into Kagenti as "Guest".

Activity

  1. pdettori commented on Mar 4, 2026

    @pdettori
    Member

    @esnible can you explain how you managed to log as a "guest" ? I'd like to replicate this scenario.

  2. esnible commented on Mar 4, 2026

    @esnible
    MemberAuthor

    @pdettori I don't know. It happened after #764. I know in the past I had used a different Keycloak with a guest account, and I thought I had accidentally logged in as that user when I saw "guest" as the username in Kagenti.

    If it happens again I will prepare detailed instructions to replicate.

  3. pdettori commented on Mar 4, 2026

    @pdettori
    Member

    I know that you may be able to be a "Guest" if you run the UI frontend and backend locally as separate processes (not in-cluster). However, in that case the auth is disabled and Keycloak should not be involved - I am not sure that there is even a "Guest" user defined in Keycloak. In any case, yes, pls. provide instructions to replicate if this happens again.

  4. added
    bug
    on Mar 4, 2026
  5. added theissue type on Mar 4, 2026
  6. esnible commented on Mar 24, 2026

    @esnible
    MemberAuthor

    Closing because I can now log out of Kagenti.

    The log out code, https://github.com/kagenti/kagenti/blame/main/kagenti/ui-v2/src/components/AppLayout.tsx#L188 , has been there for months but it did not appear for me until this week (!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions