Skip to content

Conversation

@Xh4H
Copy link

@Xh4H Xh4H commented Aug 7, 2025

In this PR you will find multiple additions:

  • A simple login system that allows to protect endpoints and the dashboard from being accessed. (ccflare_user, ccflare_password). Credentials saved in database.
  • A Dockerfile that allows to build the project and deploy easily.
  • A new feature for the Accounts page to drag and drop accounts to priotize them when requests are coming.
  • Now IPs are being logged.

@Xh4H Xh4H changed the title Implement proper auth, add Dockerfile, allow priorizing accounts and log request IP Implement proper auth, add Dockerfile, allow prioritizing accounts and log request IP Aug 7, 2025
docs/api-http.md Outdated

### Dashboard Authentication

The web dashboard (`/dashboard`) requires authentication:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why enforce auth? I'm running it in a private network & I'd expect lots would also - requiring auth might be a PITA.
I think the best way to go would be:

  • Optional auth (toggle through config/env with a boolean AUTH_REQUIRED)
  • Ability to create API keys for the /v1/messages endpoint
    • Track the usage of each key
    • Helps track usage across multiple machines
    • Also - for sure, if you're going to run it in public, I would suggest putting it behind an API key

Thoughts?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auth is enforced to access dashboard and endpoints, although using it through Claude Code is still available with no authentication.
I would be fine with a toggle for an optional auth for those who are using ccflare for themselves, but I'd be happy if auth was set by default, as this tool has certain important capabilities which should be somewhat protected.

In my case, we are running a PoC in my company, and we have it currently over my fork, and having auth is a must have!

About the messages endpoint, I am not very familiar with it, although by looking at the docs, it makes sense to be able to create API keys, and be able to track their usage.

Happy to discuss further!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am against auth by default.

@ctrlbrk42
Copy link

I am against forcing auth, strongly. Optional is fine. I run tailscale, I would never expose this and don't need auth. I imagine my config is like the majority.

@Xh4H
Copy link
Author

Xh4H commented Aug 8, 2025

Thanks for the suggestions, folks. I've made the auth disabled by default, switchable with an environment variable.

@Xh4H Xh4H requested a review from snipeship August 13, 2025 12:24
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.

3 participants