tcell_agent 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tcell_agent +42 -146
- data/lib/tcell_agent.rb +8 -16
- data/lib/tcell_agent/agent.rb +76 -46
- data/lib/tcell_agent/config_initializer.rb +66 -0
- data/lib/tcell_agent/configuration.rb +72 -267
- data/lib/tcell_agent/instrument_servers.rb +14 -18
- data/lib/tcell_agent/instrumentation/cmdi.rb +15 -15
- data/lib/tcell_agent/instrumentation/lfi.rb +16 -5
- data/lib/tcell_agent/instrumentation/monkey_patches/kernel.rb +39 -100
- data/lib/tcell_agent/logger.rb +1 -2
- data/lib/tcell_agent/rails/auth/authlogic.rb +49 -44
- data/lib/tcell_agent/rails/auth/authlogic_helper.rb +20 -0
- data/lib/tcell_agent/rails/auth/devise.rb +103 -102
- data/lib/tcell_agent/rails/auth/devise_helper.rb +29 -0
- data/lib/tcell_agent/rails/auth/doorkeeper.rb +54 -58
- data/lib/tcell_agent/{userinfo.rb → rails/auth/userinfo.rb} +0 -0
- data/lib/tcell_agent/rails/csrf_exception.rb +0 -8
- data/lib/tcell_agent/rails/dlp.rb +0 -4
- data/lib/tcell_agent/rails/middleware/global_middleware.rb +4 -1
- data/lib/tcell_agent/rails/{on_start.rb → railties/tcell_agent_railties.rb} +9 -16
- data/lib/tcell_agent/rails/railties/tcell_agent_unicorn_railties.rb +8 -0
- data/lib/tcell_agent/rails/routes.rb +3 -6
- data/lib/tcell_agent/rails/routes/grape.rb +4 -12
- data/lib/tcell_agent/rails/tcell_body_proxy.rb +0 -1
- data/lib/tcell_agent/rust/agent_config.rb +43 -32
- data/lib/tcell_agent/rust/{libtcellagent-4.17.1.dylib → libtcellagent-6.2.1.dylib} +0 -0
- data/lib/tcell_agent/rust/{libtcellagent-4.17.1.so → libtcellagent-6.2.1.so} +0 -0
- data/lib/tcell_agent/rust/{libtcellagent-alpine-4.17.1.so → libtcellagent-alpine-6.2.1.so} +0 -0
- data/lib/tcell_agent/rust/models.rb +9 -0
- data/lib/tcell_agent/rust/native_agent.rb +18 -0
- data/lib/tcell_agent/rust/native_library.rb +2 -1
- data/lib/tcell_agent/rust/{tcellagent-4.17.1.dll → tcellagent-6.2.1.dll} +0 -0
- data/lib/tcell_agent/servers/puma.rb +7 -7
- data/lib/tcell_agent/servers/rack_puma_handler.rb +23 -0
- data/lib/tcell_agent/servers/rails_server.rb +4 -4
- data/lib/tcell_agent/servers/unicorn.rb +1 -1
- data/lib/tcell_agent/servers/webrick.rb +0 -1
- data/lib/tcell_agent/settings_reporter.rb +0 -79
- data/lib/tcell_agent/tcell_context.rb +1 -1
- data/lib/tcell_agent/version.rb +1 -1
- data/spec/lib/tcell_agent/configuration_spec.rb +62 -212
- data/spec/lib/tcell_agent/instrument_servers_spec.rb +95 -0
- data/spec/lib/tcell_agent/instrumentation/cmdi_spec.rb +46 -4
- data/spec/lib/tcell_agent/instrumentation/lfi_spec.rb +47 -2
- data/spec/lib/tcell_agent/rust/agent_config_spec.rb +27 -0
- data/spec/lib/tcell_agent/settings_reporter_spec.rb +0 -73
- data/spec/spec_helper.rb +6 -0
- data/spec/support/builders.rb +6 -6
- data/spec/support/server_mocks/passenger_mock.rb +7 -0
- data/spec/support/server_mocks/puma_mock.rb +17 -0
- data/spec/support/server_mocks/rails_mock.rb +7 -0
- data/spec/support/server_mocks/thin_mock.rb +7 -0
- data/spec/support/server_mocks/unicorn_mock.rb +11 -0
- metadata +27 -14
- data/lib/tcell_agent/authlogic.rb +0 -23
- data/lib/tcell_agent/config/unknown_options.rb +0 -119
- data/lib/tcell_agent/devise.rb +0 -33
- data/lib/tcell_agent/rails/start_agent_after_initializers.rb +0 -12
- data/spec/lib/tcell_agent/config/unknown_options_spec.rb +0 -195
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
module TCellAgent
|
4
4
|
module Instrumentation
|
5
5
|
module Lfi
|
6
|
-
describe '
|
6
|
+
describe '.extract_path_mode' do
|
7
7
|
context 'with path' do
|
8
8
|
it 'should extract the path correctly' do
|
9
9
|
args = '/path-to-file'
|
@@ -34,51 +34,91 @@ module TCellAgent
|
|
34
34
|
args = '/path-to-file', 'r'
|
35
35
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
36
36
|
expect(mode).to eq('Read')
|
37
|
+
|
38
|
+
args = '/path-to-file', { :mode => 'r' }
|
39
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
40
|
+
expect(mode).to eq('Read')
|
37
41
|
end
|
38
42
|
it 'should return Write for mode w' do
|
39
43
|
args = '/path-to-file', 'w'
|
40
44
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
41
45
|
expect(mode).to eq('Write')
|
46
|
+
|
47
|
+
args = '/path-to-file', { :mode => 'w' }
|
48
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
49
|
+
expect(mode).to eq('Write')
|
42
50
|
end
|
43
51
|
it 'should return Write for mode a' do
|
44
52
|
args = '/path-to-file', 'a'
|
45
53
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
46
54
|
expect(mode).to eq('Write')
|
55
|
+
|
56
|
+
args = '/path-to-file', { :mode => 'a' }
|
57
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
58
|
+
expect(mode).to eq('Write')
|
47
59
|
end
|
48
60
|
it 'should return ReadWrite for mode r+' do
|
49
61
|
args = '/path-to-file', 'r+'
|
50
62
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
51
63
|
expect(mode).to eq('ReadWrite')
|
64
|
+
|
65
|
+
args = '/path-to-file', { :mode => 'r+' }
|
66
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
67
|
+
expect(mode).to eq('ReadWrite')
|
52
68
|
end
|
53
69
|
it 'should return ReadWrite for mode w+' do
|
54
70
|
args = '/path-to-file', 'w+'
|
55
71
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
56
72
|
expect(mode).to eq('ReadWrite')
|
73
|
+
|
74
|
+
args = '/path-to-file', { :mode => 'w+' }
|
75
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
76
|
+
expect(mode).to eq('ReadWrite')
|
57
77
|
end
|
58
78
|
it 'should return ReadWrite for mode a+' do
|
59
79
|
args = '/path-to-file', 'a+'
|
60
80
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
61
81
|
expect(mode).to eq('ReadWrite')
|
82
|
+
|
83
|
+
args = '/path-to-file', { :mode => 'a+' }
|
84
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
85
|
+
expect(mode).to eq('ReadWrite')
|
62
86
|
end
|
63
87
|
it 'should return Read for mode ::File::RDONLY (0)' do
|
64
88
|
args = '/path-to-file', ::File::RDONLY
|
65
89
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
66
90
|
expect(mode).to eq('Read')
|
91
|
+
|
92
|
+
args = '/path-to-file', { :mode => ::File::RDONLY }
|
93
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
94
|
+
expect(mode).to eq('Read')
|
67
95
|
end
|
68
96
|
it 'should return Write for mode ::File::WRONLY (1)' do
|
69
97
|
args = '/path-to-file', ::File::WRONLY
|
70
98
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
71
99
|
expect(mode).to eq('Write')
|
100
|
+
|
101
|
+
args = '/path-to-file', { :mode => ::File::WRONLY }
|
102
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
103
|
+
expect(mode).to eq('Write')
|
72
104
|
end
|
73
105
|
it 'should return ReadWrite for mode ::File::RDWR (2)' do
|
74
106
|
args = '/path-to-file', ::File::RDWR
|
75
107
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
76
108
|
expect(mode).to eq('ReadWrite')
|
109
|
+
|
110
|
+
args = '/path-to-file', { :mode => ::File::RDWR }
|
111
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
112
|
+
expect(mode).to eq('ReadWrite')
|
77
113
|
end
|
78
114
|
it 'should return Write for mode ::File::CREAT | ::File::EXCL | ::File::WRONLY (2561)' do
|
79
115
|
args = '/path-to-file', ::File::CREAT | ::File::EXCL | ::File::WRONLY
|
80
116
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
81
117
|
expect(mode).to eq('Write')
|
118
|
+
|
119
|
+
args = '/path-to-file', { :mode => ::File::CREAT | ::File::EXCL | ::File::WRONLY }
|
120
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
121
|
+
expect(mode).to eq('Write')
|
82
122
|
end
|
83
123
|
end
|
84
124
|
context 'with an invalid mode' do
|
@@ -87,11 +127,16 @@ module TCellAgent
|
|
87
127
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
88
128
|
expect(mode).to eq('Read')
|
89
129
|
end
|
90
|
-
it 'should return Read when mode is
|
130
|
+
it 'should return Read when mode is an empty hash' do
|
91
131
|
args = '/path-to-file', {}
|
92
132
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
93
133
|
expect(mode).to eq('Read')
|
94
134
|
end
|
135
|
+
it 'should return Read when mode is a hash without a :mode key' do
|
136
|
+
args = '/path-to-file', { :placeholder => 'testing' }
|
137
|
+
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
138
|
+
expect(mode).to eq('Read')
|
139
|
+
end
|
95
140
|
it 'should return Read when mode is an array' do
|
96
141
|
args = '/path-to-file', []
|
97
142
|
_path, mode = TCellAgent::Instrumentation::Lfi.extract_path_mode(*args)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module TCellAgent
|
4
|
+
module Rust
|
5
|
+
describe AgentConfig do
|
6
|
+
context 'with initializers set' do
|
7
|
+
before do
|
8
|
+
TCellAgent.configure do |config|
|
9
|
+
config.app_id = 'initializer_app_id_set'
|
10
|
+
config.api_key = 'initializer_api_key_set'
|
11
|
+
config.enabled_instrumentations = { 'authlogic' => false, :devise => false, 'doorkeeper' => false }
|
12
|
+
config.hmac_key = config.app_id
|
13
|
+
end
|
14
|
+
end
|
15
|
+
it 'should return the correct values' do
|
16
|
+
config = AgentConfig.new(TCellAgent.initializer_configuration)
|
17
|
+
|
18
|
+
expect(config['agent_type']).to eq 'Ruby'
|
19
|
+
expect(config['overrides']['disabled_instrumentation']).to contain_exactly('authlogic', 'devise', 'doorkeeper')
|
20
|
+
expect(config['overrides']['applications'][0][:api_key]).to eq 'initializer_api_key_set'
|
21
|
+
expect(config['overrides']['applications'][0][:app_id]).to eq 'initializer_app_id_set'
|
22
|
+
expect(config['overrides']['applications'][0][:api_key]).to eq 'initializer_api_key_set'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -14,7 +14,6 @@ module TCellAgent
|
|
14
14
|
:reverse_proxy => true,
|
15
15
|
:reverse_proxy_ip_address_header => nil,
|
16
16
|
:log_filename => 'log-filename',
|
17
|
-
:config_filename => 'config-filename',
|
18
17
|
:agent_log_dir => 'agent-log-dir',
|
19
18
|
:agent_home_dir => 'agent-home-dir',
|
20
19
|
:agent_home_owner => nil,
|
@@ -57,78 +56,6 @@ module TCellAgent
|
|
57
56
|
'value' => 'true'
|
58
57
|
}
|
59
58
|
)
|
60
|
-
expect(TCellAgent).to receive(:send_event).with(
|
61
|
-
{
|
62
|
-
'event_type' => 'app_config_setting',
|
63
|
-
'package' => 'tcell',
|
64
|
-
'section' => 'config',
|
65
|
-
'name' => 'allow_payloads',
|
66
|
-
'value' => 'true'
|
67
|
-
}
|
68
|
-
)
|
69
|
-
expect(TCellAgent).to receive(:send_event).with(
|
70
|
-
{
|
71
|
-
'event_type' => 'app_config_setting',
|
72
|
-
'package' => 'tcell',
|
73
|
-
'section' => 'config',
|
74
|
-
'name' => 'reverse_proxy',
|
75
|
-
'value' => 'true'
|
76
|
-
}
|
77
|
-
)
|
78
|
-
expect(TCellAgent).to receive(:send_event).with(
|
79
|
-
{
|
80
|
-
'event_type' => 'app_config_setting',
|
81
|
-
'package' => 'tcell',
|
82
|
-
'section' => 'config',
|
83
|
-
'name' => 'config_filename',
|
84
|
-
'value' => 'config-filename'
|
85
|
-
}
|
86
|
-
)
|
87
|
-
expect(TCellAgent).to receive(:send_event).with(
|
88
|
-
{
|
89
|
-
'event_type' => 'app_config_setting',
|
90
|
-
'package' => 'tcell',
|
91
|
-
'section' => 'config',
|
92
|
-
'name' => 'logging_directory',
|
93
|
-
'value' => 'agent-log-dir'
|
94
|
-
}
|
95
|
-
)
|
96
|
-
expect(TCellAgent).to receive(:send_event).with(
|
97
|
-
{
|
98
|
-
'event_type' => 'app_config_setting',
|
99
|
-
'package' => 'tcell',
|
100
|
-
'section' => 'config',
|
101
|
-
'name' => 'agent_home_directory',
|
102
|
-
'value' => 'agent-home-dir'
|
103
|
-
}
|
104
|
-
)
|
105
|
-
expect(TCellAgent).to receive(:send_event).with(
|
106
|
-
{
|
107
|
-
'event_type' => 'app_config_setting',
|
108
|
-
'package' => 'tcell',
|
109
|
-
'section' => 'config',
|
110
|
-
'name' => 'logging_enabled',
|
111
|
-
'value' => 'true'
|
112
|
-
}
|
113
|
-
)
|
114
|
-
expect(TCellAgent).to receive(:send_event).with(
|
115
|
-
{
|
116
|
-
'event_type' => 'app_config_setting',
|
117
|
-
'package' => 'tcell',
|
118
|
-
'section' => 'config',
|
119
|
-
'name' => 'logging_level',
|
120
|
-
'value' => 'INFO'
|
121
|
-
}
|
122
|
-
)
|
123
|
-
expect(TCellAgent).to receive(:send_event).with(
|
124
|
-
{
|
125
|
-
'event_type' => 'app_config_setting',
|
126
|
-
'package' => 'tcell',
|
127
|
-
'section' => 'config',
|
128
|
-
'name' => 'reverse_proxy_ip_address_header',
|
129
|
-
'value' => ''
|
130
|
-
}
|
131
|
-
)
|
132
59
|
|
133
60
|
TCellAgent.report_settings
|
134
61
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -20,3 +20,9 @@ end
|
|
20
20
|
|
21
21
|
require 'tcell_agent/agent'
|
22
22
|
require 'tcell_agent/rails/routes'
|
23
|
+
|
24
|
+
TCellAgent.configuration.enabled = true
|
25
|
+
TCellAgent.configuration.instrument = true
|
26
|
+
TCellAgent.configuration.enable_intercept_requests = true
|
27
|
+
TCellAgent.configuration.disabled_instrumentation = []
|
28
|
+
TCellAgent.thread_agent.instrument_built_ins
|
data/spec/support/builders.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'tcell_agent/config_initializer'
|
3
|
+
|
2
4
|
module TCellAgent
|
3
5
|
module Tests
|
4
6
|
class ConfigurationBuilder
|
5
7
|
def initialize
|
6
|
-
@configuration = TCellAgent::
|
7
|
-
@configuration.config_filename = 'tcell_agent.config'
|
8
|
-
@configuration.demomode = false
|
9
|
-
@configuration.enable_event_manager = false
|
8
|
+
@configuration = TCellAgent::ConfigInitializer.new
|
10
9
|
@configuration.fetch_policies_from_tcell = false
|
11
10
|
@configuration.max_csp_header_bytes = nil
|
12
11
|
@configuration.app_id = 'TestAppId-AppId'
|
@@ -18,11 +17,12 @@ module TCellAgent
|
|
18
17
|
@configuration.allow_payloads = true
|
19
18
|
@configuration.js_agent_api_base_url = @configuration.tcell_api_url
|
20
19
|
@configuration.js_agent_url = 'https://jsagent.tcell.io/tcellagent.min.js'
|
21
|
-
@configuration.cache_folder = nil
|
22
20
|
@configuration.agent_log_dir = 'tcell/logs'
|
23
|
-
@configuration.logging_options = {
|
21
|
+
@configuration.logging_options = { :enabled => false }
|
24
22
|
@configuration.host_identifier = 'python-test-suite'
|
25
23
|
@configuration.reverse_proxy_ip_address_header = 'X-Forwarded-For'
|
24
|
+
@configuration.enable_intercept_requests = true
|
25
|
+
@configuration.enabled = true
|
26
26
|
end
|
27
27
|
|
28
28
|
def update_attribute(attribute, setting)
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -111,10 +111,8 @@ files:
|
|
111
111
|
- lib/tcell_agent/agent.rb
|
112
112
|
- lib/tcell_agent/agent/route_manager.rb
|
113
113
|
- lib/tcell_agent/agent/static_agent.rb
|
114
|
-
- lib/tcell_agent/
|
115
|
-
- lib/tcell_agent/config/unknown_options.rb
|
114
|
+
- lib/tcell_agent/config_initializer.rb
|
116
115
|
- lib/tcell_agent/configuration.rb
|
117
|
-
- lib/tcell_agent/devise.rb
|
118
116
|
- lib/tcell_agent/hooks/login_fraud.rb
|
119
117
|
- lib/tcell_agent/instrument_servers.rb
|
120
118
|
- lib/tcell_agent/instrumentation.rb
|
@@ -140,8 +138,11 @@ files:
|
|
140
138
|
- lib/tcell_agent/policies/policy_types.rb
|
141
139
|
- lib/tcell_agent/policies/system_enablements.rb
|
142
140
|
- lib/tcell_agent/rails/auth/authlogic.rb
|
141
|
+
- lib/tcell_agent/rails/auth/authlogic_helper.rb
|
143
142
|
- lib/tcell_agent/rails/auth/devise.rb
|
143
|
+
- lib/tcell_agent/rails/auth/devise_helper.rb
|
144
144
|
- lib/tcell_agent/rails/auth/doorkeeper.rb
|
145
|
+
- lib/tcell_agent/rails/auth/userinfo.rb
|
145
146
|
- lib/tcell_agent/rails/better_ip.rb
|
146
147
|
- lib/tcell_agent/rails/csrf_exception.rb
|
147
148
|
- lib/tcell_agent/rails/dlp.rb
|
@@ -152,24 +153,24 @@ files:
|
|
152
153
|
- lib/tcell_agent/rails/middleware/context_middleware.rb
|
153
154
|
- lib/tcell_agent/rails/middleware/global_middleware.rb
|
154
155
|
- lib/tcell_agent/rails/middleware/headers_middleware.rb
|
155
|
-
- lib/tcell_agent/rails/
|
156
|
+
- lib/tcell_agent/rails/railties/tcell_agent_railties.rb
|
157
|
+
- lib/tcell_agent/rails/railties/tcell_agent_unicorn_railties.rb
|
156
158
|
- lib/tcell_agent/rails/responses.rb
|
157
159
|
- lib/tcell_agent/rails/routes.rb
|
158
160
|
- lib/tcell_agent/rails/routes/grape.rb
|
159
161
|
- lib/tcell_agent/rails/routes/route_id.rb
|
160
162
|
- lib/tcell_agent/rails/settings_reporter.rb
|
161
|
-
- lib/tcell_agent/rails/start_agent_after_initializers.rb
|
162
163
|
- lib/tcell_agent/rails/tcell_body_proxy.rb
|
163
164
|
- lib/tcell_agent/routes/table.rb
|
164
165
|
- lib/tcell_agent/rust/agent_config.rb
|
165
|
-
- lib/tcell_agent/rust/libtcellagent-
|
166
|
-
- lib/tcell_agent/rust/libtcellagent-
|
167
|
-
- lib/tcell_agent/rust/libtcellagent-alpine-
|
166
|
+
- lib/tcell_agent/rust/libtcellagent-6.2.1.dylib
|
167
|
+
- lib/tcell_agent/rust/libtcellagent-6.2.1.so
|
168
|
+
- lib/tcell_agent/rust/libtcellagent-alpine-6.2.1.so
|
168
169
|
- lib/tcell_agent/rust/models.rb
|
169
170
|
- lib/tcell_agent/rust/native_agent.rb
|
170
171
|
- lib/tcell_agent/rust/native_agent_response.rb
|
171
172
|
- lib/tcell_agent/rust/native_library.rb
|
172
|
-
- lib/tcell_agent/rust/tcellagent-
|
173
|
+
- lib/tcell_agent/rust/tcellagent-6.2.1.dll
|
173
174
|
- lib/tcell_agent/sensor_events/agent_setting_event.rb
|
174
175
|
- lib/tcell_agent/sensor_events/app_config_setting_event.rb
|
175
176
|
- lib/tcell_agent/sensor_events/discovery.rb
|
@@ -180,6 +181,7 @@ files:
|
|
180
181
|
- lib/tcell_agent/sensor_events/util/utils.rb
|
181
182
|
- lib/tcell_agent/servers/passenger.rb
|
182
183
|
- lib/tcell_agent/servers/puma.rb
|
184
|
+
- lib/tcell_agent/servers/rack_puma_handler.rb
|
183
185
|
- lib/tcell_agent/servers/rails_server.rb
|
184
186
|
- lib/tcell_agent/servers/thin.rb
|
185
187
|
- lib/tcell_agent/servers/unicorn.rb
|
@@ -187,14 +189,13 @@ files:
|
|
187
189
|
- lib/tcell_agent/settings_reporter.rb
|
188
190
|
- lib/tcell_agent/sinatra.rb
|
189
191
|
- lib/tcell_agent/tcell_context.rb
|
190
|
-
- lib/tcell_agent/userinfo.rb
|
191
192
|
- lib/tcell_agent/utils/headers.rb
|
192
193
|
- lib/tcell_agent/utils/params.rb
|
193
194
|
- lib/tcell_agent/utils/strings.rb
|
194
195
|
- lib/tcell_agent/version.rb
|
195
|
-
- spec/lib/tcell_agent/config/unknown_options_spec.rb
|
196
196
|
- spec/lib/tcell_agent/configuration_spec.rb
|
197
197
|
- spec/lib/tcell_agent/hooks/login_fraud_spec.rb
|
198
|
+
- spec/lib/tcell_agent/instrument_servers_spec.rb
|
198
199
|
- spec/lib/tcell_agent/instrumentation/cmdi/io_cmdi_spec.rb
|
199
200
|
- spec/lib/tcell_agent/instrumentation/cmdi/kernel_cmdi_spec.rb
|
200
201
|
- spec/lib/tcell_agent/instrumentation/cmdi_spec.rb
|
@@ -226,6 +227,7 @@ files:
|
|
226
227
|
- spec/lib/tcell_agent/rails/routes/route_id_spec.rb
|
227
228
|
- spec/lib/tcell_agent/rails/routes/routes_spec.rb
|
228
229
|
- spec/lib/tcell_agent/rails_spec.rb
|
230
|
+
- spec/lib/tcell_agent/rust/agent_config_spec.rb
|
229
231
|
- spec/lib/tcell_agent/sensor_events/dlp_spec.rb
|
230
232
|
- spec/lib/tcell_agent/sensor_events/util/sanitizer_utilities_spec.rb
|
231
233
|
- spec/lib/tcell_agent/settings_reporter_spec.rb
|
@@ -238,6 +240,11 @@ files:
|
|
238
240
|
- spec/support/middleware_helper.rb
|
239
241
|
- spec/support/resources/lfi_sample_file.txt
|
240
242
|
- spec/support/resources/normal_config.json
|
243
|
+
- spec/support/server_mocks/passenger_mock.rb
|
244
|
+
- spec/support/server_mocks/puma_mock.rb
|
245
|
+
- spec/support/server_mocks/rails_mock.rb
|
246
|
+
- spec/support/server_mocks/thin_mock.rb
|
247
|
+
- spec/support/server_mocks/unicorn_mock.rb
|
241
248
|
- spec/support/static_agent_overrides.rb
|
242
249
|
- tcell_agent.gemspec
|
243
250
|
homepage: https://www.tcell.io
|
@@ -266,9 +273,9 @@ signing_key:
|
|
266
273
|
specification_version: 4
|
267
274
|
summary: tCell.io Agent for Rails
|
268
275
|
test_files:
|
269
|
-
- spec/lib/tcell_agent/config/unknown_options_spec.rb
|
270
276
|
- spec/lib/tcell_agent/configuration_spec.rb
|
271
277
|
- spec/lib/tcell_agent/hooks/login_fraud_spec.rb
|
278
|
+
- spec/lib/tcell_agent/instrument_servers_spec.rb
|
272
279
|
- spec/lib/tcell_agent/instrumentation/cmdi/io_cmdi_spec.rb
|
273
280
|
- spec/lib/tcell_agent/instrumentation/cmdi/kernel_cmdi_spec.rb
|
274
281
|
- spec/lib/tcell_agent/instrumentation/cmdi_spec.rb
|
@@ -300,6 +307,7 @@ test_files:
|
|
300
307
|
- spec/lib/tcell_agent/rails/routes/route_id_spec.rb
|
301
308
|
- spec/lib/tcell_agent/rails/routes/routes_spec.rb
|
302
309
|
- spec/lib/tcell_agent/rails_spec.rb
|
310
|
+
- spec/lib/tcell_agent/rust/agent_config_spec.rb
|
303
311
|
- spec/lib/tcell_agent/sensor_events/dlp_spec.rb
|
304
312
|
- spec/lib/tcell_agent/sensor_events/util/sanitizer_utilities_spec.rb
|
305
313
|
- spec/lib/tcell_agent/settings_reporter_spec.rb
|
@@ -312,4 +320,9 @@ test_files:
|
|
312
320
|
- spec/support/middleware_helper.rb
|
313
321
|
- spec/support/resources/lfi_sample_file.txt
|
314
322
|
- spec/support/resources/normal_config.json
|
323
|
+
- spec/support/server_mocks/passenger_mock.rb
|
324
|
+
- spec/support/server_mocks/puma_mock.rb
|
325
|
+
- spec/support/server_mocks/rails_mock.rb
|
326
|
+
- spec/support/server_mocks/thin_mock.rb
|
327
|
+
- spec/support/server_mocks/unicorn_mock.rb
|
315
328
|
- spec/support/static_agent_overrides.rb
|