-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot log in using API Key... #82
Comments
Can you send your exact configuration please. |
This is from my docker_compose.yml: headplane: Please let me know if you need more information. Thank you for your help. |
The program requires ROOT_API_KEY no matter what. If it is not specified, it will go in a loop and not serve pages for log in. But since I do not have OIDC set up yet, I do not think it should be need it. It is also confusing because in the documentation is mentioned that it can be optional. |
That is most likely a bug then, let me investigate and I'll get back to you. |
If you want me to help you with testing, I would be glad. Also, I will try to do the Authelia setup since with the latest updates, they added a new layer to AuthN/AuthZ. I will let you know what I find. |
Is there any update to this? I'm having the exact same problem using Caddy with virtually the same config. Requires ROOT_API_KEY even if you set this to false. Also cant get past the API key as it keeps saying that its invalid. |
Same issue here. Here's my docker-compose.yml
And caddy file
Note that I did manage to get it to run with the "basic" configuration, note the docker integration has all been commented out
|
What worked for me was to add a propert API_KEY despite the config instructions saying that its not needed and having the DISABLE_API_KEY_LOGIN set to true. ROOT_API_KEY: 'zabcdefghijklmnopqrstuvwxyz' |
I've also been struggling to get headplane to even launch (docker) |
|
Does the API key need to be an api key for your oidc provider or a preauth key for your headscale server? EDIT: It seems to be a |
The headscale server. Just make sure you create it with a long expiry.
…On Mon, 10 Feb 2025, 06:08 zmweske, ***@***.***> wrote:
Does the API key need to be an api key for your oidc provider or a preauth
key for your headscale server?
—
Reply to this email directly, view it on GitHub
<#82 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMVNQ4DVQQRAX56IBB2QS32PAJ3LAVCNFSM6AAAAABVBUNIN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWHAZDCMJUGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes the docs are bad, and I will fix them. |
@tale By the way, can you provide an example of a configuration file in the docs when using nginx or caddy as a front proxy? Because I didn't find it anywhere. Thanks a lot! |
Hi
I am writing this because I have been trying to configure headplane to work with headscale for a few days and I am very frustrated. I am doing something wrong and I do not understand what.
So I have both headscale and headplane running in docker on a VPS server. My reverse proxy is Caddy. I have configured headplane to log in at my.domain.com/admin. The enter API dialog shows up and when I enter the key, it tells me that the key is invalid. Headscale log is telling me that it is missing 'Bearer' prefix from the authorization header.
ERR home/runner/work/headscale/headscale/hscontrol/app.go:357 > missing "Bearer " prefix in "Authorization" header client_address=172.18.0.2:54850
However, when I run a local headscale in a local container and headplane in debug mode with 'pnpm dev', this does not happen. The key is recognized immediately.
If someone is kind enough to point me in the right direction, it would be greatly appreciate it.
Thank you.
The text was updated successfully, but these errors were encountered: