newrelic_rpm 3.9.2.239 → 3.9.3.241

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,5 +1,12 @@
1
1
  # New Relic Ruby Agent Release Notes #
2
2
 
3
+ ## v3.9.3 ##
4
+
5
+ * Fix to prevent proxy credentials transmission
6
+
7
+ This update prevents proxy credentials set in the agent config file from
8
+ being transmitted to New Relic.
9
+
3
10
  ## v3.9.2 ##
4
11
 
5
12
  * Added API for ignoring transactions
@@ -63,9 +70,9 @@
63
70
  If the agent was initially disabled, and then later enabled with a call to
64
71
  manual_start, the ignore_error_filter would not work. This has been fixed.
65
72
 
66
- * Fix for Capistrano 3 ignoring newrelic_revion
73
+ * Fix for Capistrano 3 ignoring newrelic_revision
67
74
 
68
- New Relic's Capistrano recipies support passing parameters to control the
75
+ New Relic's Capistrano recipes support passing parameters to control the
69
76
  values recorded with deployments, but user provided :newrelic_revision was
70
77
  incorrectly overwritten. This has been fixed.
71
78
 
@@ -317,6 +317,7 @@ module NewRelic
317
317
  :allow_nil => true,
318
318
  :public => true,
319
319
  :type => String,
320
+ :local_only => true,
320
321
  :description => 'User for proxy server.'
321
322
  },
322
323
  :proxy_pass => {
@@ -324,6 +325,7 @@ module NewRelic
324
325
  :allow_nil => true,
325
326
  :public => true,
326
327
  :type => String,
328
+ :local_only => true,
327
329
  :description => 'Password for proxy server.'
328
330
  },
329
331
  :capture_params => {
@@ -178,7 +178,17 @@ module NewRelic
178
178
  end
179
179
 
180
180
  def to_collector_hash
181
- DottedHash.new(apply_mask(flattened)).to_hash
181
+ DottedHash.new(apply_mask(flattened)).to_hash.delete_if do |k, v|
182
+ default = DEFAULTS[k]
183
+ if default
184
+ default[:local_only]
185
+ else
186
+ # In our tests, we add totally bogus configs, because testing.
187
+ # In those cases, there will be no default. So we'll just let
188
+ # them through.
189
+ false
190
+ end
191
+ end
182
192
  end
183
193
 
184
194
  def app_names
@@ -12,7 +12,7 @@ module NewRelic
12
12
 
13
13
  MAJOR = 3
14
14
  MINOR = 9
15
- TINY = 2
15
+ TINY = 3
16
16
 
17
17
  begin
18
18
  require File.join(File.dirname(__FILE__), 'build')
@@ -151,6 +151,16 @@ module NewRelic::Agent::Configuration
151
151
  assert_equal(::Hash, @manager.to_collector_hash.class)
152
152
  end
153
153
 
154
+ def test_to_collector_hash_scrubs_private_settings
155
+ @manager.delete_all_configs_for_testing
156
+ @manager.add_config_for_testing(:proxy_user => 'user')
157
+ @manager.add_config_for_testing(:proxy_pass => 'password')
158
+ @manager.add_config_for_testing(:one => 1)
159
+ @manager.add_config_for_testing(:two => 2)
160
+
161
+ assert_equal({ :one => 1, :two => 2 }, @manager.to_collector_hash)
162
+ end
163
+
154
164
  def test_config_masks
155
165
  NewRelic::Agent::Configuration::MASK_DEFAULTS[:boo] = Proc.new { true }
156
166
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.2.239
4
+ version: 3.9.3.241
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,7 +41,7 @@ cert_chain:
41
41
  K0ZZTXduQWIrVm1OT2h2MVMrc0poYmpaMzBQS2d6NnZMaFQ2dW5pZUNqTGs5
42
42
  d0dHbWxTSwpZamJudkE5cXJhTExhalNqCi0tLS0tRU5EIENFUlRJRklDQVRF
43
43
  LS0tLS0K
44
- date: 2014-08-20 00:00:00.000000000 Z
44
+ date: 2014-08-22 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rake
metadata.gz.sig CHANGED
Binary file