arcane icon indicating copy to clipboard operation
arcane copied to clipboard

⚡️ Feature: Ability to disable login entirely.

Open keonramses opened this issue 1 year ago • 15 comments

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

keonramses avatar Oct 07 '25 01:10 keonramses

Sorry my technical skills are lacking, and I would not be able to contribute to implementing the feature.

keonramses avatar Oct 07 '25 01:10 keonramses

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?

kmendell avatar Oct 07 '25 15:10 kmendell

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.....

keonramses avatar Oct 07 '25 17:10 keonramses

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.

keonramses avatar Oct 07 '25 17:10 keonramses

How many upvotes does this need to be considered?

evan6seven avatar Dec 25 '25 04:12 evan6seven

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.

kmendell avatar Dec 29 '25 00:12 kmendell

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.

Nightbr avatar Jan 10 '26 18:01 Nightbr

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

kmendell avatar Jan 11 '26 03:01 kmendell

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_USERNAME
  • AUTO_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 envs
  • AUTO_LOGIN_USERNAME: optional string, if defined will be used for auto-login username
  • AUTO_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, ...).

Nightbr avatar Jan 11 '26 07:01 Nightbr

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.

kmendell avatar Jan 11 '26 16:01 kmendell

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

Nightbr avatar Jan 12 '26 21:01 Nightbr

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.

kmendell avatar Jan 12 '26 22:01 kmendell

Lol i didnt see you made one already.... :D ignore that last part

kmendell avatar Jan 12 '26 22:01 kmendell

If auto login is enabled id think we can just hide the logout button

Indeed that's a good feedback, I could do that 👌

Nightbr avatar Jan 12 '26 22:01 Nightbr

@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:

FR reased: https://github.com/getarcaneapp/arcane/issues/2374

piejanssens avatar Apr 05 '26 17:04 piejanssens