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

[BUG] auth doesnt work, especially keycloak #1290

Closed
5 tasks done
Ev0genii opened this issue Aug 18, 2023 · 46 comments
Closed
5 tasks done

[BUG] auth doesnt work, especially keycloak #1290

Ev0genii opened this issue Aug 18, 2023 · 46 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed 🛩️ Released 2.1.2

Comments

@Ev0genii
Copy link

Environment

Self-Hosted (Docker)

System

debian

Version

2.1.1

Describe the problem

Deploy dashy in kubernetes with ingress
tried to make auth by dashy documentation, but it didnt work, even basic auth with user hash and title
also auth parameters as enableGuestAccess doesnt work
i think its something in last update, that interfere auth work
last git update was a week ago, maybe u didnt update documentation

Additional info

No response

Please tick the boxes

@Ev0genii Ev0genii added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Aug 18, 2023
@liss-bot
Copy link
Collaborator

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@juancarlosm
Copy link

Same here. Basic auth is not working.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 28, 2023
@randyjc
Copy link

randyjc commented Aug 28, 2023

Was about to give up, because I couldn't find what I was doing wrong.
Tried a couple of different options, but below is latest.
After applying below to the config, I also get the message that I'm not logged in as admin.
When trying to force via URL to login I just get redirected to Dashy homepage.

https://url/login redirects to https://url/

I deleted cache, restarts, incognito, other browsers etc.

appConfig:
  theme: nord-frost
  layout: auto
  iconSize: medium
  language: en
  auth:
    users:
    - user: randyjc
      hash: <REDACTED>
      type: admin
pageInfo:
  title: Dashy
  description: Welcome to your new dashboard!
  navLinks:
    - title: GitHub
      path: https://github.com/Lissy93/dashy
    - title: Documentation
      path: https://dashy.to/docs
sections:
  - name: Getting Started
    icon: fas fa-rocket
    items:
      - title: Dashy Live
        description: Development a project management links for Dashy
        icon: https://i.ibb.co/qWWpD0v/astro-dab-128.png
        url: https://live.dashy.to/
        target: newtab
        id: 0_1481_dashylive
      - title: GitHub
        description: Source Code, Issues and Pull Requests
        url: https://github.com/lissy93/dashy
        icon: favicon
        id: 1_1481_github

V2.1.1 via PikaPods

EDIT: Probably related: #1126

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 29, 2023
@artemdanielov
Copy link

artemdanielov commented Aug 29, 2023

same here, auth (basic) doesnt work =(

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Aug 29, 2023
@ajbrigg49
Copy link

I am new to Dashy (Just set it up about a week ago.) Today I was following the basic auth docs and I am also seeing the same issue. Opening Dashy, I just get to my dashboard. If I go to config, update config, edit config, I see a message across the bottom "You cannot write changes to disk because you are not logged in as an administrator". So it would seem it knows about my new user account that is an admin, however it is not redirecting to login. I've tried multiple browsers (Edge, chromium, Chrome), and multiple PCs, but there is no change. If it matters, I added the auth config by hand from ssh use VI.

Thanks

Andy

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 31, 2023
@clockwinder
Copy link

I seem to be having a similar issue.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Sep 1, 2023
@chrgraham
Copy link

chrgraham commented Sep 3, 2023

+1 Basic auth is NOT working, new user running Docker, auth is configured, dashboard is completely exposed and unsecured.

Have attempted these additional configuration options mentioned in other Issues.

    enableGuestAccess: false
    disableConfigurationForNonAdmin: true

Here is my entire appConfig:

appConfig:
  theme: nord-frost
  layout: auto
  iconSize: medium
  language: en
  auth:
    enableGuestAccess: false
    disableConfigurationForNonAdmin: true
    users:
    - user: *****
      hash: *****
      type: admin

Auth tickets should be a priority.

Related to these other Issues that are getting closed from the timeout bot. It does not appear the repo owner @Lissy93 is responding these.

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Sep 3, 2023
@Pytonballoon810
Copy link

Is this still going on? I think I have the same problem but cant seem to find a fix if there is maybe someone can direct me into the right direction?

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Sep 25, 2023
@clockwinder
Copy link

I've not found a solution yet. So for now I've just disabled Dashy.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Sep 26, 2023
@IbaiBuR
Copy link

IbaiBuR commented Oct 16, 2023

I am experiencing the same issue too... Neither keycloak nor basic auth working...

Lets hope @Lissy93 can fix it soon somehow.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 16, 2023
@bloodysneaker
Copy link

bloodysneaker commented Oct 30, 2023

+1
No login page showing after enabling auth.
With the aforementioned work-around of "enableguestaccess" I've the login button but even if I authenticate with an Admin user, I'm no able to make any conf changes.

EDIT: Reverting to 2.1.0 seems to fix the issue

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 31, 2023
@github-project-automation github-project-automation bot moved this to Todo in Dashy V3 Oct 31, 2023
@Maretzky85
Copy link

Maretzky85 commented Nov 14, 2023

+1 on docker swarm
2.1.0 docker image works fine tho.
Keeping previous version until fix is available :)

Btw. Thanks for superb app, and no pressure ;)

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Nov 14, 2023
@pikmin-rgb
Copy link

Hello @CrazyWolf13 !

I am still having issue with dashy blocked in a never ending refresh. I have the page with auth with keycloak, and when I am login in, I have dashy that is stuck refreshing and not working.

I don't know if its still an issue with dashy or if it is a config problem :(

@CrazyWolf13 CrazyWolf13 reopened this Mar 7, 2024
@CrazyWolf13
Copy link
Collaborator

@Unacoli
Thanks for the feedback, can you confirm you are indeed running the latest version of dashy and can you try to repull and redeploy the container?

Also would you mind sharing your conf.yml ?

@zell-mbc
Copy link

zell-mbc commented Mar 7, 2024

I have a sort of working setup in case you want to compare notes.
"Sort of" because when I do a docker compose down --rmi all && docker compose up -d I have to do a separate rebuild via docker exec -it dashboard yarn build

Without the later docker command Dashy will work, but not ask for credentials, which is the opposite of fail-safe I guess :-)

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 7, 2024
@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented Mar 7, 2024

Thanks for sharing, also is that still happening in 2.1.2 ? Because in the new version dashy should rebuild at start?

@zell-mbc
Copy link

zell-mbc commented Mar 7, 2024

Yes, this is what I am running:

dashboard | Using Dashy V-2.1.2. Update Check Complete

@pikmin-rgb
Copy link

pikmin-rgb commented Mar 7, 2024

Yes I am indeed running the latest version.

pageInfo:
  title: Hub
sections:
  - name: Example Section
appConfig:
  theme: callisto
  language: fr
  layout: auto
  iconSize: medium
  startingView: default
  defaultOpeningMethod: newtab
  statusCheck: false
  statusCheckInterval: 0
  faviconApi: allesedv
  routingMode: history
  enableMultiTasking: false
  widgetsAlwaysUseProxy: false
  webSearch:
    disableWebSearch: false
    searchEngine: duckduckgo
    openingMethod: newtab
    searchBangs: {}
  enableFontAwesome: true
  enableMaterialDesignIcons: false
  hideComponents:
    hideHeading: false
    hideNav: false
    hideSearch: false
    hideSettings: false
    hideFooter: false
  auth:
    enableGuestAccess: false
    users: []
    enableKeycloak: true
    keycloak:
      serverUrl: [URL]
      realm: [Realm]
      clientId: [id]
      legacySupport: false
      idpHint: [idp]
  showSplashScreen: false
  preventWriteToDisk: false
  preventLocalSave: false
  disableConfiguration: false
  disableConfigurationForNonAdmin: false
  allowConfigEdit: true
  enableServiceWorker: false
  disableContextMenu: false
  disableUpdateChecks: false
  disableSmartSort: false
  enableErrorReporting: false

@pikmin-rgb
Copy link

I have a sort of working setup in case you want to compare notes. "Sort of" because when I do a docker compose down --rmi all && docker compose up -d I have to do a separate rebuild via docker exec -it dashboard yarn build

Without the later docker command Dashy will work, but not ask for credentials, which is the opposite of fail-safe I guess :-)

The command sadly didn't solved the refresh problem :( I really don't understand if the problem come from me or not since its gave me the right connexion prompt, and after login its locked in the refreshing state (i also see my connexion log on dashy on the keycloak log)

@pikmin-rgb
Copy link

pikmin-rgb commented Mar 8, 2024

I've investigated a little more browsing tickets, and I find the answer to my problem !

In Keycloak, in my dashy client, I had to turn off this option :
image

It works perfectly now, thank you all !

And for note, the command docker exec -it dashboard yarn build provided by @zell-mbc is usefull , the login screen don't show up without it after a docker compose up -d

Edit :

I've added the line entrypoint: ["yarn","build-and-start"] in my docker-compose.yml, it replaces the command docker exec -it dashboard yarn build :)

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 8, 2024
@e-sacchi
Copy link

I also have this problem, normal login works, keycloak not, even with this feature disabled... No login page and config file open to anyone. Any updates on this?

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 22, 2024
@Kirkland-gh
Copy link

Keycloak is working for me now on 3.0.0 when I go to dashy.domain.com/login. Is anyone else able to test?

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Apr 22, 2024
@kutekroma
Copy link

Console output after keycloak authorization:

Error while trying to use the following icon from the Manifest: https://***.domen.com/web-icons/dashy-pwa_144x144.png (Download error or resource isn't a valid image)

Warning : Deprecation warning: The simple-icons entrypoint will be removed in the next major. Please switch to using import * as icons from "simple-icons/icons" if you need an object with all the icons.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Apr 26, 2024
@kutekroma
Copy link

Keycloak is working for me now on 3.0.0 when I go to dashy.domain.com/login. Is anyone else able to test?

can you show conf.yml and a screenshot of the clients setting in keycloak?
Have you set up roles and groups separately in the client?

@Kirkland-gh
Copy link

Keycloak is working for me now on 3.0.0 when I go to dashy.domain.com/login. Is anyone else able to test?

can you show conf.yml and a screenshot of the clients setting in keycloak? Have you set up roles and groups separately in the client?

Only one user so no roles or groups.

  auth:
    enableGuestAccess: false
    users: []
    enableKeycloak: true
    keycloak:
      serverUrl: https://keycloak.example.com
      realm: example-realm
      clientId: example-clientid
      legacySupport: false

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Apr 28, 2024
@Lissy93
Copy link
Owner

Lissy93 commented Apr 29, 2024

I hadn't realized that the infinite refresh loop was client-side, sorry misunderstood and thought you were talking about a Docker issue.

This should be fixed by db9d7e3 in #1542 and released in 3.0.1

@Lissy93 Lissy93 added the 🚏 Awaiting User Response [ISSUE] Response from original author is pending label Apr 29, 2024
@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 🚏 Awaiting User Response [ISSUE] Response from original author is pending labels May 2, 2024
@kutekroma
Copy link

Great! It works with version 3.0.1
THANKS!!!!!

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 3, 2024
@CrazyWolf13 CrazyWolf13 added the ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed 🛩️ Released 2.1.2
Projects
Status: Done
Development

No branches or pull requests