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

.NET SDK should support environment variables http_proxy and https_proxy (as AWS CLI does) #1977

Closed
o7g8 opened this issue Feb 9, 2022 · 3 comments · Fixed by #2991
Closed
Labels
cross-sdk-parity feature-request A feature should be added or improved. module/sdk-core p1 This is a high priority issue queued

Comments

@o7g8
Copy link

o7g8 commented Feb 9, 2022

I want AWS .NET SDK to fetch proxy settings from environment variables http_proxy and https_proxy in the same way as AWS CLI does, see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-proxy.html.

Is your Feature Request related to a problem?

I'm always frustrated that I don't get consistent behaviour of AWS toolchain in proxy handling, esp. proxies which require user/password authorization. Currently I need to specify https_proxy variable to get AWS CLI working, and then I need to craft an app.config file for every .NET application as described in https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-ref.html#net-dg-config-ref-elements-proxy .
Situation gets even worse when I need to distribute my apps to other users or organizations, which need to learn the AWS-specific format of the aws section in the app.config and adjust it to their conditions. A simple and straight environment variable would solve the issue.

Here is the way I have discovered the http_proxy and https_proxy env. variables don't work with AWS .NET SDK:

  • installed a Telerik Fiddler Classic on my machine
  • enabled the Fiddler's rule Require Proxy Authentication (implies user=1, password=1)
  • set the https_proxy=http://1:1@127.0.0.1:8888

My .NET Framework-based (not .NET Core) app didn't work (AWS .NET SDK 3.7.5.9).
When I created an app.config following https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-ref.html#net-dg-config-ref-elements-proxy it did work, but I don't think the config file should be necessary.


This is a 🚀 Feature Request

@o7g8 o7g8 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 9, 2022
@ashishdhingra
Copy link
Contributor

This needs review with the team. Also need to check on how other SDK(s) (e.g. Java) handle HTTP_PROXY and HTTPS_PROXY environment variables.

@dscpinheiro
Copy link
Contributor

Today's release of AWSSDK.Core (3.7.301) includes #2991, which added support for the http_proxy and https_proxy environment variables.

Copy link

github-actions bot commented Jan 5, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross-sdk-parity feature-request A feature should be added or improved. module/sdk-core p1 This is a high priority issue queued
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants