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

Improve test proxy/mock fleet server to proxy HTTPS connections #4903

Closed
pchila opened this issue Jun 11, 2024 · 3 comments · Fixed by #5802
Closed

Improve test proxy/mock fleet server to proxy HTTPS connections #4903

pchila opened this issue Jun 11, 2024 · 3 comments · Fixed by #5802
Assignees
Labels
enhancement New feature or request Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Testing

Comments

@pchila
Copy link
Member

pchila commented Jun 11, 2024

During development of #4770 it was not possible to test a scenario where elastic-agent installs and enrolls to an http mock fleet server using TLS going through an https proxy because:

The testcase is TLSEnrollProxy-mTLSProxyInThePolicy where we try to test this scenario.

In order to test such scenario we would need at least one of 2 things:

  • an https proxy that can terminate TLS and forward plain http requests to the mock fleet server (either extend proxy test or swap out for some other proxy implementation)
  • have an https fleet endpoint (either mocked or the real thing in a cloud deployment), ideally where we can set up (m)TLS with custom CAs (this is not possible at the moment on ESS)

Conclusion:

testproxy needs to proxy HTTPS requests.
Once #5715 is completed, implement the chosen solution on testproxy

@pchila pchila added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Team:Elastic-Agent Label for the Agent team Testing labels Jun 11, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@AndersonQ
Copy link
Member

I might be worth looking at how Caddyserver does that as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants