-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Fix outstanding problems in claiming and add SOCKS5 support. #8406
Conversation
Manage this branch in SquashTest this branch here: https://amossclaiming-0wxk7.squash.io |
@mfundul I didn't see your comments before I merged in @underhood 's commits and Github won't show them to me now. Could you dig them out and stick them in a fresh comment or send them to me on Slack? |
I had only approved the commits. No comments. |
…#8406) This commit fixes the known problems in claiming: incorrect reports of success, better treatment of error code and improved visibility of what the script is doing. There has been extensive testing against both environments to check that it works. The socks5 proxy support has been integrated and works for both methods of calling the claiming script. Co-authored-by: Timotej Šiškovič <timotej@netdata.cloud>
Summary
Closes #8090
Closes #8263
Fix the problems in running the claiming script.
Merging from other PR (will integrete shortly).
some things in claiming script have to be fixed as well for this to be 100% (see #8263) - therefore this PR works and brings SOCKS5 proxy but there are error reporting issues that will be fixes in #8263.
If agent configured with SOCKS5 proxy [agent_cloud_link] key proxy it should pass that setting to curl when claiming script is called from within netdata agent with netdata -D -Wclaim.
Component Name
ACLK
Test Plan
-verbose
flag shows the JSON and raw curl command.https_proxy
set in the environment.-proxy=
option on the script.-W claim "-url=....
Merging from other PR (will integrate shortly):
Make sure claiming script can be found by $PATH (e.g. if you test with NETDATA installed in custom dir)!
Test with local cloud test environment hidden behind socks5 proxy. (example: run agent on VM that doesn't have direct access to local cloud environment)
In config file of Netdata set options:
[agent_cloud_link]
proxy = socks5://X.X.X.X:YYYY
and for other test
proxy = none
When curl not present in system and wget present. Show error when trying to use SOCKS with wget (as wget doesn't have support).
Additional Information