redhat_access 2.2.11 → 2.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/services/redhat_access/telemetry/look_ups.rb +29 -15
- data/lib/redhat_access/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d712c27863c4a01278f3e99c7db3550aeb0c93864ba8ca49ff2eba9c8bd9cd4c
|
4
|
+
data.tar.gz: a1848a0e157d1a99cf58ed460044e9bb684502a8942b77cd36d0c2d3743c82cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eee1ab2ffae45b52e35644efc1bd46440e7c5c818fbf09c37191e6c8bb2273765a9558506b9ee2af8038279be13fe826e9927d26b533f6cc73fa4eb0e6fe96d
|
7
|
+
data.tar.gz: e03fbd9dc81305e21d03b43263b3633e41093c2975e3282e81f62ab51b35e30b2d94115237e5127482912430b9809677620057841cdbecf1fee994c38ee4b4c0
|
@@ -201,22 +201,36 @@ module RedhatAccess
|
|
201
201
|
end
|
202
202
|
|
203
203
|
def get_portal_http_proxy
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
204
|
+
begin
|
205
|
+
@http_proxy_string ||=
|
206
|
+
begin
|
207
|
+
if Setting[:content_default_http_proxy]
|
208
|
+
HttpProxy.unscoped.find_by(name: Setting[:content_default_http_proxy])&.full_url
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
if @http_proxy_string.blank?
|
213
|
+
if SETTINGS[:katello][:cdn_proxy] && SETTINGS[:katello][:cdn_proxy][:host]
|
214
|
+
proxy_config = SETTINGS[:katello][:cdn_proxy]
|
215
|
+
scheme = URI.parse(proxy_config[:host]).scheme
|
216
|
+
uri = URI('')
|
217
|
+
# Ruby's uri parser doesn't handle encoded characters so Katello added two new schemes to handle proxy
|
218
|
+
# passwords. See https://github.com/Katello/katello/blob/master/app/lib/katello/util/proxy_uri.rb
|
219
|
+
uri.scheme = 'proxy' if scheme == 'http'
|
220
|
+
uri.scheme = 'proxys' if scheme == 'https'
|
221
|
+
uri.host = URI.parse(proxy_config[:host]).host
|
222
|
+
uri.port = proxy_config[:port] if proxy_config[:port]
|
223
|
+
uri.user = CGI.escape(proxy_config[:user]) if proxy_config[:user]
|
224
|
+
uri.password = CGI.escape(proxy_config[:password]) if proxy_config[:password]
|
225
|
+
@http_proxy_string = uri.to_s
|
226
|
+
end
|
227
|
+
end
|
228
|
+
Rails.logger.debug("Insights proxy url = #{@http_proxy_string}")
|
229
|
+
@http_proxy_string
|
230
|
+
rescue => error
|
231
|
+
Rails.logger.debug("Something bad happened trying to get the proxy url: #{error}")
|
232
|
+
return nil
|
218
233
|
end
|
219
|
-
proxy
|
220
234
|
end
|
221
235
|
|
222
236
|
def get_http_user_agent
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redhat_access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lindani Phiri
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redhat_access_lib
|