⚡️ Feature: Ability to disable login entirely.
Feature Description
Ability to disable both local and OIDC authentication.
Problem It Solves
- I want to only access Arcane on my local network and would prefer not to have to log in to use Arcane.
- Pass Forward Auth from existing authentication and not hit a second login screen.
Proposed Solution
- Env Var to disable login during compose.
Alternatives Considered
No response
Additional Context
No response
Would you be willing to work on this feature?
- [ ] Yes, I'd like to implement this feature
- [ ] I could help with parts of this feature
- [x] No, I'm just suggesting the feature
Sorry my technical skills are lacking, and I would not be able to contribute to implementing the feature.
I'm not really a fan of completely disabling authentication, but i could see the forward auth/ http header auth. Do you think that would work?
The forwardAuth would work so as long as external or internal requests to the arcane service hit the reverse proxy first (and a forwardAuth service is setup). If the user is exposing the application via tunnels without first Routing through a reverse proxy, then it is meaningless, unless they deploy it behind zero trust.
For my usecase, I expose the docker services using cloudflare tunnel but each request passes through traefik first.
I honestly don't think anyone would love to risk their server by not deploying this behind some sort of access management. But.....
Disabling the built-in login mechanisms, I believe may be only way to get forward auth working without hitting a second login unless you have a way for logins via forward auth to be detected and the arcane login screen bypassed.
How many upvotes does this need to be considered?
How many upvotes does this need to be considered?
Not a set number just helps me gauge it, but at the same time, im only one person so i have to prioritize bugs over features and for features thats where the upvotes stuff comes in.
Hey, first great work on Arcane, really loved it so far as a best-of-class replacement for Portainer (That I have used for years).
One of the use-case I can see to disable login entirely (and a use-case I have) is for project that has a docker-compose stack with tools such as Postgres, Redis, Redis Admin, ElasticMQ, ... I also like to add Traefik + Portainer for my team to debug easily via a UI (Portainer). For this local only use-case, I see a benefit of not having a login overhead. Some Desktop tool can fulfill this use-case but I prefer having a unified experience for all team members that help when we need to debug together (sharing the same UI and experience, if we create docs it will include screenshots that have same UI, ...).
Happy to help at any occasion.
I can try to add this in the next version, im just not a huge fan of removing all auth. but i dont know of any alernatives to what you are referring to tbh
An alternative solution is to have a sort of anonymous user and then with an environment variable such as AUTO_ANONYMOUS_AUTH=true, it auto-login with this hardcoded anynomous user such as the default created user. Technically, you don't disable auth, just you auto-login with user. We can go a bit further on this implementation with 2 more environment variables that can specify a username and password for the auto-auth:
AUTO_LOGIN_USERNAMEAUTO_LOGIN_PASSWORD
Maybe we could have these three envs:
AUTO_LOGIN_ENABLE: true/false, if true will auto-login with default user or use below envsAUTO_LOGIN_USERNAME: optional string, if defined will be used for auto-login usernameAUTO_LOGIN_PASSWORD: optional string, if defined will be used for auto-login password
With this system, you don't disable auth mecanism but when we start the app we don't need to login.
In docs, we must add some warnings and disclaimer that is not secured and only for specific use-cases (local use, behind other auth middleware, ...).
thats a decent idea. I can try to work on it . IF anyone has expereince with go feel free to open a PR with a start on it as well.
I have made a first implementation that is working on my side, let me know what do you think:
https://github.com/user-attachments/assets/7fa4d03b-841c-45bc-be50-1b5e974033a2
I have make a first implementation that is working on my side, let me know what do you think:
arcane-auto-login.webm
If auto login is enabled id think we can just hide the logout button, but yeah looks good so far, feel free to make a PR and i can add more comments with the context of the code chnaged as well.
Lol i didnt see you made one already.... :D ignore that last part
If auto login is enabled id think we can just hide the logout button
Indeed that's a good feedback, I could do that 👌
@kmendell There is a different way. Often the app looks for a specific forwarded header or the user can configure a header name that contains the user name/id and this is then combined with trusted range of IP addresses (trusted to send this header).
For example:
- Reverse proxy authentication middleware: user name of authenticated user is passed through as
Remote-Useror a customer header can be set - Reverse proxy: set forward headers
FR reased: https://github.com/getarcaneapp/arcane/issues/2374