Skip to content

Claude/railway dashboard access c3ph0#4

Merged
meimakes merged 2 commits intomainfrom
claude/railway-dashboard-access-c3ph0
Mar 23, 2026
Merged

Claude/railway dashboard access c3ph0#4
meimakes merged 2 commits intomainfrom
claude/railway-dashboard-access-c3ph0

Conversation

@meimakes
Copy link
Owner

No description provided.

claude added 2 commits March 23, 2026 03:18
When CHOMP_AUTH_KEY is set, browser requests to protected routes are
redirected to a login page instead of receiving a raw 401. On successful
login, a session cookie is set so the dashboard and API calls work
seamlessly from the browser. API clients can still use Bearer tokens.

- Add login.html with password form matching dashboard theme
- Add GET/POST /login and POST /logout as public routes
- Update auth middleware to accept chomp_session cookie
- Redirect browser requests (Accept: text/html) to /login when unauthenticated
- Add sign-out button to dashboard header
- Add urlencoding dependency for safe redirect URL encoding

https://claude.ai/code/session_013RUKGWx6PH3fXQ6pRyKcVs
The Dockerfile was only copying dashboard.html but not login.html,
so include_str!("../login.html") compiled to empty content in the
Docker build.

https://claude.ai/code/session_013RUKGWx6PH3fXQ6pRyKcVs
@meimakes meimakes merged commit 3900536 into main Mar 23, 2026
1 check failed
@meimakes meimakes deleted the claude/railway-dashboard-access-c3ph0 branch March 23, 2026 10:12
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.

2 participants