-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] basic auth does not enable unless enableGuestAccess: true
#990
Comments
If you're enjoying Dashy, consider dropping us a ⭐ |
Hello, can you help me? |
This comment was marked as off-topic.
This comment was marked as off-topic.
I can confirm that behavior, but in the docker image 'lissy93/dashy:2.1.0' this does not happen. |
I upgraded to version 2.1.1 and solved this problem |
can you copy/past your config file ? I'm under V-2.1.1, basic auth seems not working for me i also tryed : enableGuestAccess: false and true, same no auh prompted :s
docker run -p 4000:80 -v /root/conf.yml:/app/public/conf.yml lissy93/dashy:latest
guest user can access to the config npm -version
9.1.2
node --version
v16.18.1
cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)" pageInfo:
title: network.local
description: network.local Front Dashboard
navLinks:
- title: GitHub
path: https://github.com/Lissy93/dashy
- title: Documentation
path: https://dashy.to/docs
appConfig:
auth:
enableGuestAccess: false
users:
- user: myuser
hash: SHA256EXAMPLESTRINGFORPASSWORD
type: admin
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
- title: Docs
description: Configuring & Usage Documentation
provider: Dashy.to
icon: far fa-book
url: https://dashy.to/docs
id: 2_1481_docs
- title: Showcase
description: See how others are using Dashy
url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md
icon: far fa-grin-hearts
id: 3_1481_showcase
- title: Config Guide
description: See full list of configuration options
url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md
icon: fas fa-wrench
id: 4_1481_configguide
- title: Support
description: Get help with Dashy, raise a bug, or get in contact
url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md
icon: far fa-hands-helping
id: 5_1481_support |
I have a fresh install with this problem. Login is never shown if you don't enable guest access. |
I confirm the same behavior and concur this is a very serious issue. It exposes SO much information that I'm having to shut dashy down until I can implement something to prevent exposing unwanted internal site information to users that shouldn't have it. |
Also anyone with guest access can copy the password hashes of all users which immediately grants the guest full access to any account, including admin accounts. Dashy is 100% compromised at this point. |
I agree, the guest can see the config file. |
While it is strange that auth doesn't show up if Example
Hope this helps! |
Thanks @mitchnemirov ... that's a good mitigation solution. |
I was also getting this issue on my end, what made the difference for me was a combination of fixing some schema errors, destroying the container, and making sure to clear my browsers' cookies. Essentially I believe the problem is partly with some system state that got left behind, so it seems to work on new installations but fails when upgrading from existing installations |
Does this work if you manually edit |
|
opedning it in another browser or in incognito mode does not help. still - dashy is not asking for auth, but displaying notice at config save: "You cannot write changes to disk because you are not logged in as an administrator" |
I had this as well; try fixing any schema errors (shown in the browser console, typically On a more technical note, I believe the issue may be partly with rebuilding on startup - I'm not sure if it triggers properly or not (I'd have to double check with my instance). |
Try changing anything in the |
Hello! Looks like additional info is required for this issue to be addressed. Don't forget to provide this within the next few days to keep your ticket open. |
Issue closed due to no response from user. |
Environment
Self-Hosted (Docker)
System
No response
Version
2.1.1
Describe the problem
Problem
Dashy basic authentication does not enable when adding the block below to the
conf.yml
To make basic auth function with dashy you have to add the
enableGuestAccess: true
. If guest Access is false then basic auth functions properly.Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: