Skip to content

Adds auth bypass request from #134 - #214

Open
0xv1n wants to merge 2 commits into
LumePart:devfrom
0xv1n:authbypass-ui
Open

Adds auth bypass request from #134#214
0xv1n wants to merge 2 commits into
LumePart:devfrom
0xv1n:authbypass-ui

Conversation

@0xv1n

@0xv1n 0xv1n commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

When UI_USERNAME and UI_PASSWORD are both unset, weskip the login screen entirely rather than rendering a form that already accepted empty input, so single-admin instances on trusted networks land straight in the UI (refs #134).

Behavior is unchanged when credentials are configured, CSRF stays enforced either way, and the unauthenticated state is never silent: the server logs a warning at startup and the header shows an "Auth disabled" chip in place of "Sign out". The Auth disabled is just a visuall artifact to keep a consistent header styling but honestly probably unnecessary.

Smaller change is another commit to force LF via gitattributes if you're a degenerate like me deving on a windows machine and have auto crlf on. shouldnt impact nix/mac devs

0xv1n added 2 commits July 28, 2026 22:41
When UI_USERNAME and UI_PASSWORD are both empty the login screen was pure
friction: NewAuthStore hashed the empty string and CompareCreds accepted
empty input, so any visitor signed in by clicking the button with both
fields blank.

Auth is now skipped entirely in that case. RequireAuth returns the handler
unwrapped, /api/ui/auth/status reports auth_disabled so the frontend routes
straight into the app, and the server logs a warning at startup that it is
running unauthenticated. The Settings header shows an "Auth disabled" chip
in place of "Sign out".

Behaviour is unchanged when credentials are configured. CSRF is unaffected:
SessionManager.Handle verifies tokens on every mutating request
independently of auth.

Refs LumePart#134
On a Windows checkout with core.autocrlf=true, docker/start.sh gets CRLF
endings. The shebang then carries a trailing carriage return and the built
image dies immediately with:

  exec /start.sh: no such file or directory

Pin *.sh to LF so the container entrypoint survives a Windows build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant