Skip to content

Fix Boto HTTP proxy configuration#3722

Open
mnussbaum wants to merge 1 commit into
DataDog:masterfrom
mnussbaum:fix_boto_proxy
Open

Fix Boto HTTP proxy configuration#3722
mnussbaum wants to merge 1 commit into
DataDog:masterfrom
mnussbaum:fix_boto_proxy

Conversation

@mnussbaum

Copy link
Copy Markdown

What does this PR do?

This PR fixes Boto's HTTP proxy configuration within the agent.

Boto's proxy argument don't want the protocol on the proxy host.
Configuration within Datadog itself requires this protocol, so strip it
before we pass the proxy host to Boto.

Motivation

We need to proxy our dd-agent traffic out via a HTTP proxy. After configuring the HTTP proxy for the dd-agent we noticed it started failing to retrieve EC2 tags from the AWS API. We tracked the issue down to this misconfigured Boto proxy argument.

We've deployed this fix and seen the dd-agent successfully fetch tags via an HTTP proxy.

Boto's proxy argument don't want the protocol on the proxy host.
Configuration within Datadog itself requires this protocol, so strip it
before we pass the proxy host to Boto.

Signed-off-by: Margarita Sokolova <margarita.sokolova@getbraintree.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant