Skip to content
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

Client: support unix scheme in NOMAD_ADDR #4637

Closed
xvello opened this issue Sep 3, 2018 · 5 comments · Fixed by #16872
Closed

Client: support unix scheme in NOMAD_ADDR #4637

xvello opened this issue Sep 3, 2018 · 5 comments · Fixed by #16872
Labels

Comments

@xvello
Copy link

xvello commented Sep 3, 2018

I am tunnelling access to remote Nomad/Consul hosts via ssh port forwarding. To avoid other processes hijacking the forwarded port, I am forwarding to local unix sockets.

While the consul client supports connecting with CONSUL_HTTP_ADDR=unix:///path/to/socket, the nomad command (v0.8.4) does not.

I plan on contributing this by porting the consul client logic into api.NewClient. would that be acceptable, although the agent does not (yet?) support binding it's http port to a socket?

@preetapan
Copy link
Contributor

@xvello we would accept a patch that handles client logic, and modifying the agent to accept a socket address to bind to. Additionally, we would want to make it possible to disable HTTP binding on the client agent (by allowing -1 in the config to mean that http binding is disabled). If you are interested in implementing the feature in its entirety we welcome that as a PR.

@xvello
Copy link
Author

xvello commented Sep 11, 2018

thanks @preetapan, what's your next release timeline, so I can gauge the timing?

@xvello
Copy link
Author

xvello commented Nov 20, 2021

Hello, I have no use for this feature anymore, and nobody else has expressed interest for it so far.
I am closing this issue, but feel free to reopen it.

@xvello xvello closed this as completed Nov 20, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2022
@schmichael
Copy link
Member

All these years later and this is suddenly relevant again! Nomad 1.5 introduced the Task API as a unix socket within a task's directory. Sadly this bug still exists and makes the Task API obnoxious to use with our api package (you have to create a custom dialer).

https://developer.hashicorp.com/nomad/api-docs/task-api

We should really fix this and support unix sockets.

@schmichael schmichael reopened this Mar 23, 2023
@schmichael schmichael added the theme/api HTTP API and SDK issues label Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants