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

tls-skip-verify may not work on nomad monitor #11460

Closed
DerekStrickland opened this issue Nov 5, 2021 · 4 comments · Fixed by #11592
Closed

tls-skip-verify may not work on nomad monitor #11460

DerekStrickland opened this issue Nov 5, 2021 · 4 comments · Fixed by #11592
Assignees
Labels

Comments

@DerekStrickland
Copy link
Contributor

DerekStrickland commented Nov 5, 2021

Nomad version

1.x.x

Operating system and Environment details

Unknown

Issue

The nomad monitor command may not be respecting the -tls-skip-verify flag

Reproduction steps

  • Set up a cluster with TLS enabled
  • Make sure NOMAD_CLIENT_CERT, NOMAD_CLIENT_KEY, and NOMAD_CACERT don't match
  • Run nomad monitor -log-level=debug -tls-skip-verify

Expected Result

Logs stream to console

Actual Result

TLS configuration error is returned

@davemay99
Copy link
Contributor

@DerekStrickland nomad operator debug also captures monitor logs, and I have not heard reports of Nomad TLS related issues. Might be worth comparing before digging too deep.

@DerekStrickland
Copy link
Contributor Author

DerekStrickland commented Nov 18, 2021

@lgfa29 Is this the error you see?

==> Error starting monitor: Get "https://<some-ip>:4646/v1/agent/monitor?log_json=false&log_level=debu&node_id=&server_id=": remote error: tls: bad certificate
==> For additional help try 'nomad monitor -help'

@lgfa29
Copy link
Contributor

lgfa29 commented Nov 18, 2021

There wasn't any particular error, the command just didn't return anything and it would just hang. Using curl with the proper certificates did work.

But looking at the message you posted, that seems like what I would expect to see 🤔

Were you able to use -tls-skip-verify to bypass this error? If so, the problem was likely something else.

@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants