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

[Fleet] Add support for proxy in Elastic Agent #25319

Closed
2 of 4 tasks
mostlyjason opened this issue Mar 24, 2021 · 9 comments
Closed
2 of 4 tasks

[Fleet] Add support for proxy in Elastic Agent #25319

mostlyjason opened this issue Mar 24, 2021 · 9 comments
Assignees
Labels
Team:Elastic-Agent Label for the Agent team v7.14.0

Comments

@mostlyjason
Copy link

We've gotten a few requests from users of Elastic Agent to add support for proxy URLs in the output. Apparently, a user tried adding the proxy_url setting in the YAML output settings in Fleet settings but it did not work.

This could have the same behavior as proxy_url in Filebeat. This could initially be done in the YAML configuration because this is an advanced setting. We could add UI support later.

Elastic Agent should also be able to communicate with Fleet Server through a proxy. This allows Fleet Server to run in a central location, while Elastic Agent is running on the edge behind a proxy.

As an Elastic Agent user, I want the ability to:

  • Set a proxy url in the ES output of my standalone agent policy
  • Set a proxy url in my Kibana Fleet settings for the ES output
  • Set a proxy url for Elastic Agent to communicate with Fleet Server
  • Set a proxy url in my Kibana Fleet settings for the Fleet Server connection

Non-goals (deferred to later):

  • Set a proxy for Fleet Server to communicate with Elasticsearch
@elasticmachine
Copy link
Collaborator

Pinging @elastic/fleet (Team:Fleet)

@henurah
Copy link

henurah commented Mar 24, 2021

The user mentioned they tried to use the workaround in this Discuss forum topic (https://discuss.elastic.co/t/elastic-agent-fleet-deployment-behind-a-proxy/254183/5) as well as the proxy_url setting, but it did not work for them. They tried to set up Elastic Agent on a Windows host if that helps. Thank you very much for your help!

@henurah
Copy link

henurah commented Mar 31, 2021

@mostlyjason The user also mentioned that they tried the workaround from the discuss forums on a Linux host and it still did not appear to work (the agent would start but no data was being sent to ES). Any update from engineering? Thanks!

@mostlyjason
Copy link
Author

Thanks I think the next step is confirm the current behavior on our end, and then we can assess if we need to make any changes to support it.

@ph ph self-assigned this Apr 6, 2021
@mostlyjason
Copy link
Author

mostlyjason commented Apr 8, 2021

@henurah can you check with the user whether agent standalone mode would provide the ability for them to test this feature out? Do they also need support for Fleet central management with the proxy, and could that potentially be a phase 2?

@henurah
Copy link

henurah commented Apr 12, 2021

@mostlyjason How would they go about configuring integrations in standalone mode? Is it just manually set up the config on the agent side and then the agent would pull from Elasticsearch via the proxy configuration? Have we verified this would work on Windows by any chance? I think the customer just wants to have the integrations working through a proxy for now using Elastic Agent (with the assurance that full proxy support will be coming soon). Thanks!

@mostlyjason mostlyjason changed the title [Fleet] Add support for proxy in ES output [Fleet] Add support for proxy in Elastic Agent Apr 14, 2021
@jen-huang
Copy link

@ph I'm moving this to the agent board since it seems that it is work on agent side. Let me know otherwise.

@jen-huang jen-huang transferred this issue from elastic/kibana Apr 26, 2021
@jen-huang jen-huang added the Team:Elastic-Agent Label for the Agent team label Apr 26, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@ph
Copy link
Contributor

ph commented Apr 27, 2021

Closing as duplicate of #25021

@ph ph closed this as completed Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team v7.14.0
Projects
None yet
Development

No branches or pull requests

6 participants