-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
Support Unix Sockets #1249
Comments
I think this is a great idea which we already support in Ory Hydra. I don't quite remember the place where it is but I think we can extract the logic to github.com/ory/x or github.com/ory/graceful and make it available for all ory projects - hence also Ory Kratos :) |
It’s here in Hydra: https://github.com/ory/hydra/blob/24f91ab7038e4c612db5af86ff0f3ee5eb03c878/cmd/server/handler.go#L284 I think what could be done is extracting a I can try to do a pull request doing this if you’re okay with that approach. |
SGTM! |
First attempt : ory/x@master...sloonz:master How do I proceed from here ? Do we keep discussing this here ? Or do I create an issue (pull request ?) on each project ? |
Oh great! I'll take a look now! |
Yeah I think you can just create the PRs - looks good to me |
merged! |
Thanks for taking the time of reviewing and merging this ! |
Thank you for making it! :) |
AFAICT Kratos can only listen on TCP sockets. Unix sockets have a few advantages over TCP sockets.From least important to more important:
/run/http/kratos.sock
rather thanlocalhost:31038
is more expressive and less error-prone (for example, when configuring the reverse-proxy). There's no need to keep track of ports assignments (which ports are assigned to which services, which should be open/closed on the firewall…).localhost:31038
, but still be limited by normal filesystem restrictions to access on/srv/http/kratos.sock
The text was updated successfully, but these errors were encountered: