-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
breakfix: authdbctl connect
runtime error
#10
Comments
Caddy version in case it's useful:
Edit: Hmm just realized this is still using |
@dczysz, this is the issue you don't have
|
@dczysz , at the same time, there is a bug with error handling which needs to be fixed: go-authcrunch/cmd/authdbctl/connect.go Lines 63 to 73 in dc55c40
I need to check error here. |
Ah that makes sense. I'll give that a try then. |
I can back off for a bit if you'd like so I'm not bombarding you with issues if it's still WIP 😄 |
@dczysz , please try with the latest release and see what the error is. |
@dczysz , also, you might be also interested in this latest feature https://github.com/authp/authp.github.io/issues/14. In short, you can set environment variables prior to starting a new server and the identity store's admin user will have username, email, and/or password according to what it finds in:
|
Hmm, with v1.0.23 I'm still getting the same output as before ending with
This is a great feature, thanks! |
@dczysz , please add
|
|
@dczysz , 👍 |
@dczysz , how is it working with the above config path on Windows? where |
That might be it... If I put an invalid password in my config.yml I still get the same logs, including |
@dczysz , it is a bug :-) Please try passing config path with
Thank you for troubleshooting 👍 |
I'm getting the same output when providing the config file with
No problem! Glad to help with something that'll eventually make my life a bit easier 😄 |
I just noticed the readme also mentions a config.json. Should I be using that instead of YAML? |
It could be both. Just need to add the ability to load JSON. |
@dczysz , FYI, added user provisioning (plaintext or hashed) inside Caddyfile. https://github.com/authp/authp.github.io/issues/20#issue-1230086997 |
Oh awesome. We just started using the new environment variable for the webadmin password but I think I like this more, using the hash instead seems better. Thanks for pointing this out! |
Describe the issue
I'm trying to connect to a Caddy container from my host machine, but I'm stuck on this error coming from
net/http
. I noticed your README has thepassword
field commented out, but that didn't seem to make a difference. So maybe I have something else configured incorrectly?config.yml:
Error:
Go version:
Installation steps taken:
I'm not too familiar with Go but this seemed to do the job so I'm guessing this part isn't the issue.
git clone https://github.com/greenpau/go-authcrunch.git cd go-authcrunch/cmd/authdbctl go build
The text was updated successfully, but these errors were encountered: