Skip to content

feat: add proxy support for codesigning rust package#212

Open
austinsasko wants to merge 1 commit intoindygreg:mainfrom
austinsasko:newproxy
Open

feat: add proxy support for codesigning rust package#212
austinsasko wants to merge 1 commit intoindygreg:mainfrom
austinsasko:newproxy

Conversation

@austinsasko
Copy link

Creating a more up to date version to resolve merge conflicts and dated dependencies, dupe of #88

@austinsasko
Copy link
Author

@indygreg it looks like Actions has an issue with one of the checks that is preventing my checksuite from passing fully. Is there any action to be taken for this PR to be ready for review, or is the issue just related to the "windows-2022, i686-pc-windows-msvc" build process for all current versions?

Copy link
Owner

@indygreg indygreg left a comment

Choose a reason for hiding this comment

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

Adding HTTP proxy server is something I definitely want to do.

CI on main should be fixed now.

Could you please rebase and address the comments? Then we can get this merged.

Comment on lines +326 to +330
let proxy_uri: Uri = std::env::var("https_proxy").ok()?.parse().ok()?;
let mut proxy = Proxy::new(Intercept::All, proxy_uri);

let proxy_user = env::var_os("proxy_user");
let proxy_password = env::var_os("proxy_password");
Copy link
Owner

Choose a reason for hiding this comment

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

Sometimes these environment variables are lowercase. Sometimes uppercase.

I believe the most reliable way to implement this code is to iterate through every environment variable, do a case insensitive compare and then collect into Option<T> along the way.

anyhow = "1.0.99"
aws-config = { version = "1.8.5", optional = true }
aws-sdk-s3 = { version = "1.103.0", optional = true }
aws-smithy-client = { version = "0.56.1", features = ["rustls", "client-hyper"] }
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason we had to downgrade this crate?

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.

2 participants