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

[Tanzu Tile] Fix proxy exclusions bug #3902

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

crobert-1
Copy link
Contributor

@crobert-1 crobert-1 commented Nov 9, 2023

Description:

The NO_PROXY environment variable was previously not being set properly by the Tanzu Tile configuration option. This was because the input variable's name was being automatically converted from otel_proxy_no to otel_proxy_false internally, but the variable setting logic was still checking otel_proxy_no. Change name to otel_proxy_exclusions to avoid this.

Testing:
Manually tested both the BOSH job and Tanzu Tile to ensure changes work properly.

Documentation:
Added some more

The NO_PROXY environment variable was previously not being set properly
by the Tanzu Tile configuration option. This was because the input
variable's name was being automatically converted from otel_proxy_no
to otel_proxy_false internally, but the variable setting logic was
still checking otel_proxy_no. Change name to otel_proxy_exclusions
to avoid this.
@crobert-1 crobert-1 requested review from a team as code owners November 9, 2023 18:28
@@ -1,9 +1,10 @@
<% if p('otel.proxy.http', '').length > 0 %>
export HTTP_PROXY=<%= p('otel.proxy.http') %>
export http_proxy=<%= p('otel.proxy.http') %>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some architectures expect this in lower case (http_proxy), so I've added it as a safe-guard here.

@@ -94,16 +94,16 @@ forms:
- name: otel_proxy_http
type: string
label: HTTP proxy URL
description: URL used as the proxy URL for HTTP requests unless overridden by otel_proxy_no
description: URL used as the proxy URL for HTTP requests unless overridden by "Proxy exclusions"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the Tanzu Tile UI, so the user wouldn't know what otel_proxy_no is referring to. The text box is labelled Proxy exclusions, so this makes the text box's description consistent with the UI's label.

optional: true

- name: otel_proxy_no
- name: otel_proxy_exclusions
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable name underscores are converted to periods when being used in the BOSH job. (That's why the BOSH job references otel.proxy.exclusions, but then the Tanzu Tile references otel_proxy_exclusions)

@crobert-1 crobert-1 merged commit b73f818 into signalfx:main Nov 10, 2023
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants