tcell_agent 1.1.7 → 1.1.8
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 +5 -5
- data/lib/tcell_agent/rails/dlp.rb +12 -11
- data/lib/tcell_agent/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 661518d62e6487cba5db306fcc4c15bf99e0308a
|
|
4
|
+
data.tar.gz: 8419fa8cadfc4bff1115a9c2a26c94cfd22d1442
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c35625adfd65a2d38d41ef0cbefe73796bbf72348f518da3118a46b0578809a088cfbcbf9b63c57bc20f2c605f8bb30c94ec52900cf3b29afec523ab6b584a4
|
|
7
|
+
data.tar.gz: ef3253afd333aa8166ac0560ef133e67b6d05f1f02988d0978a29875ed3677658c2283c5d51cfe64ddf8aefbbc968f69673af07072a33e39ab2bf0fb377352d3
|
|
@@ -367,11 +367,7 @@ end
|
|
|
367
367
|
class Logger
|
|
368
368
|
alias_method :tcell_old_add, :add
|
|
369
369
|
def add(severity, message = nil, progname = nil)
|
|
370
|
-
if
|
|
371
|
-
TCellAgent.configuration.should_instrument? &&
|
|
372
|
-
TCellAgent.configuration.should_intercept_requests? &&
|
|
373
|
-
severity >= level
|
|
374
|
-
|
|
370
|
+
if severity >= level
|
|
375
371
|
progname ||= @progname
|
|
376
372
|
if message.nil?
|
|
377
373
|
if block_given?
|
|
@@ -382,12 +378,17 @@ class Logger
|
|
|
382
378
|
end
|
|
383
379
|
end
|
|
384
380
|
|
|
385
|
-
TCellAgent
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
381
|
+
if TCellAgent.configuration.enabled &&
|
|
382
|
+
TCellAgent.configuration.should_instrument? &&
|
|
383
|
+
TCellAgent.configuration.should_intercept_requests?
|
|
384
|
+
|
|
385
|
+
TCellAgent::Instrumentation.safe_block_no_log('Handling DLP log message filtering') do
|
|
386
|
+
dlp_policy = TCellAgent.policy(TCellAgent::PolicyTypes::DATALOSS)
|
|
387
|
+
request_env = TCellAgent::Instrumentation::Rails::Middleware::ContextMiddleware::THREADS.fetch(Thread.current.object_id, nil)
|
|
388
|
+
if message && dlp_policy && request_env
|
|
389
|
+
tcell_context = request_env[TCellAgent::Instrumentation::TCELL_ID]
|
|
390
|
+
tcell_context.filter_log(message) if tcell_context
|
|
391
|
+
end
|
|
391
392
|
end
|
|
392
393
|
end
|
|
393
394
|
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: 1.1.
|
|
4
|
+
version: 1.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rafael
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-06-05 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
|
version: '0'
|
|
271
271
|
requirements: []
|
|
272
272
|
rubyforge_project:
|
|
273
|
-
rubygems_version: 2.
|
|
273
|
+
rubygems_version: 2.5.2.3
|
|
274
274
|
signing_key:
|
|
275
275
|
specification_version: 4
|
|
276
276
|
summary: tCell.io Agent for Rails
|