Skip to content

Commit

Permalink
Fixes #32180: Unset system proxy and SSL environment variables for th…
Browse files Browse the repository at this point in the history
…e duration of the install

Moves from checking for http proxy and SSL environment variables and
failing if they are present to a model of unsetting them during
the duration of the install run. This does not change them on
the system itself.
  • Loading branch information
ehelms committed Mar 23, 2021
1 parent b9049ef commit 1de17d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 0 additions & 9 deletions checks/env_variables.rb

This file was deleted.

5 changes: 5 additions & 0 deletions hooks/boot/05-environment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%w[http_proxy https_proxy ssl_cert_file HTTP_PROXY HTTPS_PROXY SSL_CERT_FILE].each do |variable|
if ::ENV.delete(variable)
logger.warn "Unsetting environment variable '#{variable}' for the duration of the install."
end
end

0 comments on commit 1de17d5

Please sign in to comment.