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

Nomad logs API/Command - general usage issues #3782

Closed
jrasell opened this issue Jan 22, 2018 · 8 comments
Closed

Nomad logs API/Command - general usage issues #3782

jrasell opened this issue Jan 22, 2018 · 8 comments
Labels
theme/api HTTP API and SDK issues type/enhancement

Comments

@jrasell
Copy link
Member

jrasell commented Jan 22, 2018

The Nomad logs command and API implementation/usage results in enforced connection to the Nomad node where the allocation resides as far as I am aware. In secure environments this poses a problem for the UI or any 3rd party tools that use server exposed APIs through a load balancer.

Is there any roadmap item for allowing the logs to be retired via the Nomad servers in something like a proxy behaviour?

Nomad version

Nomad 0.7.1

Reproduction steps

Navigate - https://demo.nomadproject.io/ui/allocations/d7c277c2-0883-bb72-3517-bd11618eafd6/mongo/logs

View the browser console and try to stream the logs and see an error such as: Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR https://54.225.12.99:4646/v1/client/allocation/d7c277c2-0883-bb72-3517-bd11618eafd6/stats

@dadgar dadgar added type/enhancement theme/api HTTP API and SDK issues labels Jan 22, 2018
@dadgar
Copy link
Contributor

dadgar commented Jan 22, 2018

@jrasell This will be addressed in 0.8.0. If you would like to track this work, follow this branch: https://github.com/hashicorp/nomad/tree/f-tunnel.

@jrasell
Copy link
Member Author

jrasell commented Jan 23, 2018

thanks @dadgar; looking forward to that. happy for you to close this if you want or keep open as a reference.

@dadgar
Copy link
Contributor

dadgar commented Jan 23, 2018

Either way! I can close once the feature hits master.

@dcparker88
Copy link

Is this still a planned feature? My nomad clients won't be accessible from my team's laptops, and only nomad server is available through a load balancer. It would be great if the nomad server could load the logs directly, then show them to me, rather than my browser trying to call the nomad client directly.

@jrasell
Copy link
Member Author

jrasell commented Feb 28, 2018

@dcparker88 I believe this has made it into master at least so you can test locally potentially before any release candidate.

@schmichael
Copy link
Member

@jrasell is right! This feature was recently merged in #3892. Quite a few big 0.8 features still landing in the next couple of weeks so while testing from master should work, expect a lot of churn. RC and release of 0.8 shouldn't be too far out!

@dcparker88
Copy link

thanks 👍

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

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 Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/api HTTP API and SDK issues type/enhancement
Projects
None yet
Development

No branches or pull requests

4 participants