tcell_agent 2.4.1 → 2.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25d0645a954c7d9734f47e0875ea0a0b54dfb0ea232149598d30b0cd140e1e24
4
- data.tar.gz: 6ce5ffaeca3eb0155a71e6c6b5c4f8e0ead856d144eca78abd9a3da98d70485c
3
+ metadata.gz: 4460b2fd01c8b788c8139cbeb2cee7f8a2505e4cc365c279a518778766d9cdb0
4
+ data.tar.gz: 18dfdd5e944e91155d6b58fa22262b027292038192fac0b6afd4693314f74fd8
5
5
  SHA512:
6
- metadata.gz: 2785f69dd34c4259316337702d544aafbe9a58b075e23dac1466f8e83c277fb862acab62ab9cc836204c0fdeb03bbda40139e4f26daeed90adbb28792803472a
7
- data.tar.gz: 417607890f0639d1bebca01dc006f12f1485a9a90d7606847e0e18ebda2ce613138727bb04eabaf725f8c80799d1fc18bbfe1598d65e3e1b5555f65396e514a6
6
+ metadata.gz: a2404786f0663783fd45194043c4a12efda21db0e933c14aca5f2d4532e900aac3b3f700ca8282b1995b38c718b6e0eade2a2b1ffbc9df467bf8ab5b4f144b18
7
+ data.tar.gz: 5021cff2601b66fd94a41b710ab0ab0211be35b2bd442afc0ca992ce4236d6c65e3ef69e14cd2ca9455fb4282d8affa1ba3e7aa3f05c75e4285ff6b5ab77e871
@@ -9,7 +9,8 @@ module TCellAgent
9
9
  :reverse_proxy_ip_address_header, :host_identifier,
10
10
  :hmac_key, :password_hmac_key,
11
11
  :js_agent_url, :js_agent_api_base_url,
12
- :max_csp_header_bytes, :allow_payloads
12
+ :max_csp_header_bytes, :allow_payloads,
13
+ :proxy_url, :proxy_username, :proxy_password
13
14
 
14
15
  attr_reader :logging_options
15
16
 
@@ -68,6 +68,9 @@ module TCellAgent
68
68
  self['log_enabled'] = configuration.logging_options[:enabled]
69
69
  self['log_filename'] = configuration.logging_options[:log_filename]
70
70
  self['log_level'] = configuration.logging_options[:level]
71
+ self['proxy_url'] = configuration.proxy_url
72
+ self['proxy_username'] = configuration.proxy_username
73
+ self['proxy_password'] = configuration.proxy_password
71
74
  self['update_policy'] = configuration.fetch_policies_from_tcell
72
75
  end
73
76
  end
Binary file
@@ -388,7 +388,9 @@ module TCellAgent
388
388
  :remote_address => tcell_context.remote_address,
389
389
  :route_id => tcell_context.route_id,
390
390
  :session_id => tcell_context.session_id,
391
- :user_id => tcell_context.user_id
391
+ :user_id => tcell_context.user_id,
392
+ :method => tcell_context.request_method,
393
+ :request_path => tcell_context.path
392
394
  }
393
395
  )
394
396
  end
@@ -1,5 +1,5 @@
1
1
  # See the file "LICENSE" for the full license governing this code.
2
2
 
3
3
  module TCellAgent
4
- VERSION = '2.4.1'.freeze
4
+ VERSION = '2.5.0'.freeze
5
5
  end
@@ -1,5 +1,4 @@
1
1
  # rubocop:disable Style/HashSyntax
2
- # rubocop:disable Lint/UselessAssignment
3
2
 
4
3
  require 'spec_helper'
5
4
  require 'securerandom'
@@ -98,7 +97,7 @@ describe 'File' do
98
97
  expect(@result.binmode?).to be_truthy
99
98
  expect(File.stat(@new_file_name).mode.to_s(8)[3..5]).to eq('755')
100
99
 
101
- File.delete(@new_file_name)
100
+ File.delete(@new_file_name)
102
101
  end
103
102
 
104
103
  test_ruby2_ruby3_keywords(File,
@@ -112,8 +111,9 @@ describe 'File' do
112
111
  context 'with a file blocked for read/write' do
113
112
  before(:each) do
114
113
  expect(TCellAgent).to receive(:policy).with(
115
- TCellAgent::PolicyTypes::LFI
116
- ).and_return(@local_files_policy)
114
+ TCellAgent::PolicyTypes::LFI
115
+ ).and_return(@local_files_policy)
116
+
117
117
  expect(@local_files_policy).to receive(:block_file_access?).and_return(true)
118
118
  end
119
119
 
@@ -223,8 +223,9 @@ describe 'File' do
223
223
  context 'with a file blocked for read/write' do
224
224
  before(:each) do
225
225
  expect(TCellAgent).to receive(:policy).with(
226
- TCellAgent::PolicyTypes::LFI
227
- ).and_return(@local_files_policy)
226
+ TCellAgent::PolicyTypes::LFI
227
+ ).and_return(@local_files_policy)
228
+
228
229
  expect(@local_files_policy).to receive(:block_file_access?).and_return(true)
229
230
  end
230
231
 
@@ -261,5 +262,4 @@ describe 'File' do
261
262
  end
262
263
  end
263
264
 
264
- # # rubocop:enable Style/HashSyntax
265
- # # rubocop:enable Lint/UselessAssignment
265
+ # rubocop:enable Style/HashSyntax
@@ -52,8 +52,7 @@ module TCellAgent
52
52
  it 'should not return csp header on json' do
53
53
  expect(
54
54
  @policy.get_headers('application/json', @tcell_context)
55
- ).to eq( [] )
56
-
55
+ ).to eq([])
57
56
  end
58
57
  end
59
58
  end
@@ -16,6 +16,6 @@ module Puma
16
16
  end
17
17
 
18
18
  module Const
19
- PUMA_VERSION = "5.1.0"
19
+ PUMA_VERSION = '5.1.0'
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcell_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rapid7, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-01 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.2.15
273
+ rubygems_version: 3.2.22
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: tCell Agent for Rails