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 +4 -4
- data/lib/tcell_agent/config_initializer.rb +2 -1
- data/lib/tcell_agent/rust/agent_config.rb +3 -0
- data/lib/tcell_agent/rust/libtcellagent-alpine.so +0 -0
- data/lib/tcell_agent/rust/libtcellagent-x64.dll +0 -0
- data/lib/tcell_agent/rust/libtcellagent.dylib +0 -0
- data/lib/tcell_agent/rust/libtcellagent.so +0 -0
- data/lib/tcell_agent/rust/native_agent.rb +3 -1
- data/lib/tcell_agent/version.rb +1 -1
- data/spec/lib/tcell_agent/instrumentation/lfi/file_lfi_spec.rb +8 -8
- data/spec/lib/tcell_agent/policies/secure_headers_policy_spec.rb +1 -2
- data/spec/support/server_mocks/puma_mock.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4460b2fd01c8b788c8139cbeb2cee7f8a2505e4cc365c279a518778766d9cdb0
|
|
4
|
+
data.tar.gz: 18dfdd5e944e91155d6b58fa22262b027292038192fac0b6afd4693314f74fd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
Binary file
|
|
Binary file
|
|
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
|
data/lib/tcell_agent/version.rb
CHANGED
|
@@ -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
|
-
|
|
116
|
-
|
|
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
|
-
|
|
227
|
-
|
|
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
|
-
#
|
|
265
|
-
# # rubocop:enable Lint/UselessAssignment
|
|
265
|
+
# rubocop:enable Style/HashSyntax
|
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
|
+
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-
|
|
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.
|
|
273
|
+
rubygems_version: 3.2.22
|
|
274
274
|
signing_key:
|
|
275
275
|
specification_version: 4
|
|
276
276
|
summary: tCell Agent for Rails
|