tcell_agent 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7b8f5683724f8a43b2d1a495c1a201c542e2c97
|
4
|
+
data.tar.gz: cdcae5ac8de0675be484c75d6f84140325819021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e62d02980c09b9c29807c264678fb6709aa6958db4fa45db676a45fdaf8f61f724671e0474e8826d048365c57fd4e5d244d106cc2bc33053cbf0c2bb4bd54946
|
7
|
+
data.tar.gz: dd27ffe58a391b514f6e052daf818b433caab75513971da6a0b3c28272dc708ddde1314b0f01268ca5881e7a11991e70d8c63dbaffc9d1cbbbea2eebae35dae7
|
@@ -5,7 +5,6 @@ require 'tcell_agent/logger'
|
|
5
5
|
require 'tcell_agent/configuration'
|
6
6
|
require 'tcell_agent/version'
|
7
7
|
require 'date'
|
8
|
-
require 'cgi'
|
9
8
|
|
10
9
|
module TCellAgent
|
11
10
|
module Instrumentation
|
@@ -127,7 +126,6 @@ module TCellAgent
|
|
127
126
|
session_id_actions.action_id
|
128
127
|
).for_framework(TCellAgent::SensorEvents::DlpEvent::FRAMEWORK_VARIABLE_SESSION_ID)
|
129
128
|
)
|
130
|
-
|
131
129
|
end
|
132
130
|
end
|
133
131
|
end
|
@@ -135,7 +133,6 @@ module TCellAgent
|
|
135
133
|
replace_filters = (context_filters.select {|context_filter| context_filter.rule.body_redact == true })
|
136
134
|
event_filters = (context_filters.select {|context_filter| (context_filter.rule.body_redact != true && context_filter.rule.body_event == true) })
|
137
135
|
send_flag = TCellData.filterx(body, event_filters.length > 0, replace_filters.length > 0, term)
|
138
|
-
send_flag = send_flag || TCellData.filterx(body, event_filters.length > 0, replace_filters.length > 0, CGI.escapeHTML(term))
|
139
136
|
if send_flag
|
140
137
|
(replace_filters + event_filters).each { |filter|
|
141
138
|
base_event = TCellAgent::SensorEvents::DlpEvent.new(
|
data/lib/tcell_agent/logger.rb
CHANGED
@@ -32,7 +32,7 @@ module TCellAgent
|
|
32
32
|
logging_options = TCellAgent.configuration.logging_options
|
33
33
|
|
34
34
|
if logging_options && logging_options["enabled"]
|
35
|
-
FileUtils.mkdir_p
|
35
|
+
FileUtils.mkdir_p TCellAgent.configuration.agent_log_dir
|
36
36
|
level = loggingLevelFromString(logging_options["level"])
|
37
37
|
logging_file = logging_options["filename"] || TCellAgent.configuration.log_filename
|
38
38
|
# limit the total log file to about 9 * 5 = 45 mb
|
@@ -65,11 +65,11 @@ if (TCellAgent.configuration.disable_all == false)
|
|
65
65
|
require("tcell_agent/servers/unicorn")
|
66
66
|
|
67
67
|
else
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
68
|
+
TCellAgent.logger.warn(
|
69
|
+
"Server used to launch rails not recognized. " +
|
70
|
+
"You can override this with the env variable: " +
|
71
|
+
"TCELL_AGENT_SERVER=thin|puma|unicorn"
|
72
|
+
)
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
@@ -80,4 +80,4 @@ if (TCellAgent.configuration.disable_all == false)
|
|
80
80
|
require("tcell_agent/servers/unicorn")
|
81
81
|
end
|
82
82
|
end
|
83
|
-
end
|
83
|
+
end
|
data/lib/tcell_agent/version.rb
CHANGED
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: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -117,24 +117,20 @@ executables:
|
|
117
117
|
extensions: []
|
118
118
|
extra_rdoc_files: []
|
119
119
|
files:
|
120
|
-
- LICENSE
|
121
|
-
- README.md
|
122
120
|
- Rakefile
|
123
|
-
- bin/tcell_agent
|
124
|
-
- lib/tcell_agent.rb
|
125
|
-
- lib/tcell_agent/agent.rb
|
126
121
|
- lib/tcell_agent/agent/event_processor.rb
|
127
122
|
- lib/tcell_agent/agent/fork_pipe_manager.rb
|
128
123
|
- lib/tcell_agent/agent/policy_manager.rb
|
129
124
|
- lib/tcell_agent/agent/policy_types.rb
|
130
125
|
- lib/tcell_agent/agent/route_manager.rb
|
131
126
|
- lib/tcell_agent/agent/static_agent.rb
|
127
|
+
- lib/tcell_agent/agent.rb
|
132
128
|
- lib/tcell_agent/api.rb
|
133
|
-
- lib/tcell_agent/appsensor.rb
|
134
129
|
- lib/tcell_agent/appsensor/cmdi.rb
|
135
130
|
- lib/tcell_agent/appsensor/path_traversal.rb
|
136
131
|
- lib/tcell_agent/appsensor/sqli.rb
|
137
132
|
- lib/tcell_agent/appsensor/xss.rb
|
133
|
+
- lib/tcell_agent/appsensor.rb
|
138
134
|
- lib/tcell_agent/authlogic.rb
|
139
135
|
- lib/tcell_agent/configuration.rb
|
140
136
|
- lib/tcell_agent/devise.rb
|
@@ -149,7 +145,6 @@ files:
|
|
149
145
|
- lib/tcell_agent/policies/http_tx_policy.rb
|
150
146
|
- lib/tcell_agent/policies/login_fraud_policy.rb
|
151
147
|
- lib/tcell_agent/policies/secure_headers_policy.rb
|
152
|
-
- lib/tcell_agent/rails.rb
|
153
148
|
- lib/tcell_agent/rails/auth/authlogic.rb
|
154
149
|
- lib/tcell_agent/rails/auth/devise.rb
|
155
150
|
- lib/tcell_agent/rails/dlp.rb
|
@@ -160,6 +155,7 @@ files:
|
|
160
155
|
- lib/tcell_agent/rails/on_start.rb
|
161
156
|
- lib/tcell_agent/rails/routes.rb
|
162
157
|
- lib/tcell_agent/rails/settings_reporter.rb
|
158
|
+
- lib/tcell_agent/rails.rb
|
163
159
|
- lib/tcell_agent/routes/table.rb
|
164
160
|
- lib/tcell_agent/sensor_events/app_config.rb
|
165
161
|
- lib/tcell_agent/sensor_events/app_sensor.rb
|
@@ -184,9 +180,7 @@ files:
|
|
184
180
|
- lib/tcell_agent/userinfo.rb
|
185
181
|
- lib/tcell_agent/utils/queue_with_timeout.rb
|
186
182
|
- lib/tcell_agent/version.rb
|
187
|
-
-
|
188
|
-
- spec/apps/rails-3.2/Gemfile.lock
|
189
|
-
- spec/apps/rails-3.2/Rakefile
|
183
|
+
- lib/tcell_agent.rb
|
190
184
|
- spec/apps/rails-3.2/app/assets/images/rails.png
|
191
185
|
- spec/apps/rails-3.2/app/assets/javascripts/application.js
|
192
186
|
- spec/apps/rails-3.2/app/assets/stylesheets/application.css
|
@@ -195,15 +189,15 @@ files:
|
|
195
189
|
- spec/apps/rails-3.2/app/helpers/application_helper.rb
|
196
190
|
- spec/apps/rails-3.2/app/views/layouts/application.html.erb
|
197
191
|
- spec/apps/rails-3.2/app/views/t_cell_app/index.html.erb
|
198
|
-
- spec/apps/rails-3.2/config.ru
|
199
192
|
- spec/apps/rails-3.2/config/application.rb
|
200
193
|
- spec/apps/rails-3.2/config/boot.rb
|
201
194
|
- spec/apps/rails-3.2/config/environment.rb
|
202
195
|
- spec/apps/rails-3.2/config/environments/test.rb
|
203
196
|
- spec/apps/rails-3.2/config/routes.rb
|
204
|
-
- spec/apps/rails-
|
205
|
-
- spec/apps/rails-
|
206
|
-
- spec/apps/rails-
|
197
|
+
- spec/apps/rails-3.2/config.ru
|
198
|
+
- spec/apps/rails-3.2/Gemfile
|
199
|
+
- spec/apps/rails-3.2/Gemfile.lock
|
200
|
+
- spec/apps/rails-3.2/Rakefile
|
207
201
|
- spec/apps/rails-4.1/app/assets/javascripts/application.js
|
208
202
|
- spec/apps/rails-4.1/app/assets/stylesheets/application.css
|
209
203
|
- spec/apps/rails-4.1/app/controllers/application_controller.rb
|
@@ -211,7 +205,6 @@ files:
|
|
211
205
|
- spec/apps/rails-4.1/app/helpers/application_helper.rb
|
212
206
|
- spec/apps/rails-4.1/app/views/layouts/application.html.erb
|
213
207
|
- spec/apps/rails-4.1/app/views/t_cell_app/index.html.erb
|
214
|
-
- spec/apps/rails-4.1/config.ru
|
215
208
|
- spec/apps/rails-4.1/config/application.rb
|
216
209
|
- spec/apps/rails-4.1/config/boot.rb
|
217
210
|
- spec/apps/rails-4.1/config/environment.rb
|
@@ -227,6 +220,10 @@ files:
|
|
227
220
|
- spec/apps/rails-4.1/config/locales/en.yml
|
228
221
|
- spec/apps/rails-4.1/config/routes.rb
|
229
222
|
- spec/apps/rails-4.1/config/secrets.yml
|
223
|
+
- spec/apps/rails-4.1/config.ru
|
224
|
+
- spec/apps/rails-4.1/Gemfile
|
225
|
+
- spec/apps/rails-4.1/Gemfile.lock
|
226
|
+
- spec/apps/rails-4.1/Rakefile
|
230
227
|
- spec/controllers/application_controller.rb
|
231
228
|
- spec/integration/puma.rb
|
232
229
|
- spec/lib/tcell_agent/agent/fork_pipe_manager_spec.rb
|
@@ -262,7 +259,10 @@ files:
|
|
262
259
|
- spec/support/middleware_helper.rb
|
263
260
|
- spec/support/resources/normal_config.json
|
264
261
|
- spec/support/static_agent_overrides.rb
|
262
|
+
- README.md
|
263
|
+
- LICENSE
|
265
264
|
- tcell_agent.gemspec
|
265
|
+
- bin/tcell_agent
|
266
266
|
homepage: https://www.tcell.io
|
267
267
|
licenses:
|
268
268
|
- Copyright (c) 2015 tCell.io (see LICENSE file)
|
@@ -285,14 +285,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
285
|
version: '0'
|
286
286
|
requirements: []
|
287
287
|
rubyforge_project:
|
288
|
-
rubygems_version: 2.
|
288
|
+
rubygems_version: 2.0.14
|
289
289
|
signing_key:
|
290
290
|
specification_version: 4
|
291
291
|
summary: tCell.io Agent for Rails & Sinatra
|
292
292
|
test_files:
|
293
|
-
- spec/apps/rails-3.2/Gemfile
|
294
|
-
- spec/apps/rails-3.2/Gemfile.lock
|
295
|
-
- spec/apps/rails-3.2/Rakefile
|
296
293
|
- spec/apps/rails-3.2/app/assets/images/rails.png
|
297
294
|
- spec/apps/rails-3.2/app/assets/javascripts/application.js
|
298
295
|
- spec/apps/rails-3.2/app/assets/stylesheets/application.css
|
@@ -301,15 +298,15 @@ test_files:
|
|
301
298
|
- spec/apps/rails-3.2/app/helpers/application_helper.rb
|
302
299
|
- spec/apps/rails-3.2/app/views/layouts/application.html.erb
|
303
300
|
- spec/apps/rails-3.2/app/views/t_cell_app/index.html.erb
|
304
|
-
- spec/apps/rails-3.2/config.ru
|
305
301
|
- spec/apps/rails-3.2/config/application.rb
|
306
302
|
- spec/apps/rails-3.2/config/boot.rb
|
307
303
|
- spec/apps/rails-3.2/config/environment.rb
|
308
304
|
- spec/apps/rails-3.2/config/environments/test.rb
|
309
305
|
- spec/apps/rails-3.2/config/routes.rb
|
310
|
-
- spec/apps/rails-
|
311
|
-
- spec/apps/rails-
|
312
|
-
- spec/apps/rails-
|
306
|
+
- spec/apps/rails-3.2/config.ru
|
307
|
+
- spec/apps/rails-3.2/Gemfile
|
308
|
+
- spec/apps/rails-3.2/Gemfile.lock
|
309
|
+
- spec/apps/rails-3.2/Rakefile
|
313
310
|
- spec/apps/rails-4.1/app/assets/javascripts/application.js
|
314
311
|
- spec/apps/rails-4.1/app/assets/stylesheets/application.css
|
315
312
|
- spec/apps/rails-4.1/app/controllers/application_controller.rb
|
@@ -317,7 +314,6 @@ test_files:
|
|
317
314
|
- spec/apps/rails-4.1/app/helpers/application_helper.rb
|
318
315
|
- spec/apps/rails-4.1/app/views/layouts/application.html.erb
|
319
316
|
- spec/apps/rails-4.1/app/views/t_cell_app/index.html.erb
|
320
|
-
- spec/apps/rails-4.1/config.ru
|
321
317
|
- spec/apps/rails-4.1/config/application.rb
|
322
318
|
- spec/apps/rails-4.1/config/boot.rb
|
323
319
|
- spec/apps/rails-4.1/config/environment.rb
|
@@ -333,6 +329,10 @@ test_files:
|
|
333
329
|
- spec/apps/rails-4.1/config/locales/en.yml
|
334
330
|
- spec/apps/rails-4.1/config/routes.rb
|
335
331
|
- spec/apps/rails-4.1/config/secrets.yml
|
332
|
+
- spec/apps/rails-4.1/config.ru
|
333
|
+
- spec/apps/rails-4.1/Gemfile
|
334
|
+
- spec/apps/rails-4.1/Gemfile.lock
|
335
|
+
- spec/apps/rails-4.1/Rakefile
|
336
336
|
- spec/controllers/application_controller.rb
|
337
337
|
- spec/integration/puma.rb
|
338
338
|
- spec/lib/tcell_agent/agent/fork_pipe_manager_spec.rb
|