tcell_agent 2.5.2 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tcell_agent/config_initializer.rb +2 -1
- data/lib/tcell_agent/rust/agent_config.rb +1 -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/version.rb +1 -1
- data/spec/lib/tcell_agent/policies/js_agent_policy_spec.rb +2 -2
- data/spec/lib/tcell_agent/policies/patches_policy_spec.rb +12 -1
- data/spec/support/builders.rb +2 -2
- 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: 6e91769037e5364f7091d874a750f24b45ba340baaf71725e13794815ec09de9
|
4
|
+
data.tar.gz: 5773afa03451d699bef82efbd611c12bbfc7383770b140b34ab7be77d012faf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb4d5b36eb03da7e193245a32955e1f140f711d0e757a4aa9c0ead48774e00fb5f9dd8772506f90dea288d20303211a56c67312a2b6df6c583467891d524e7e
|
7
|
+
data.tar.gz: 22f2b41bf88d49f6f4bd3b32cf3d27b734f8488d93f85e1b7f785ee9c03b5b868b4d7b2ad67e3fe3fdbd667fe10d20fd11a94d2c37dc7b1ca5f81e6087177b0e
|
@@ -10,7 +10,8 @@ module TCellAgent
|
|
10
10
|
:hmac_key, :password_hmac_key,
|
11
11
|
:js_agent_url, :js_agent_api_base_url,
|
12
12
|
:max_csp_header_bytes, :allow_payloads,
|
13
|
-
:proxy_url, :proxy_username, :proxy_password
|
13
|
+
:proxy_url, :proxy_username, :proxy_password,
|
14
|
+
:enable_js_agent_sri
|
14
15
|
|
15
16
|
attr_reader :logging_options
|
16
17
|
|
@@ -57,6 +57,7 @@ module TCellAgent
|
|
57
57
|
self['applications'] = [Models.clean_nils(applications)]
|
58
58
|
self['config_file_path'] = configuration.get_config_file_path
|
59
59
|
self['disabled_instrumentation'] = configuration.disabled_instrumentation
|
60
|
+
self['enable_js_agent_sri'] = configuration.enable_js_agent_sri
|
60
61
|
self['enabled'] = configuration.enabled
|
61
62
|
self['host_identifier'] = configuration.host_identifier
|
62
63
|
self['input_url'] = configuration.tcell_input_url
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/tcell_agent/version.rb
CHANGED
@@ -62,9 +62,9 @@ module TCellAgent
|
|
62
62
|
expect(
|
63
63
|
@policy.get_js_agent_script_tag(tcell_context)
|
64
64
|
).to eq(
|
65
|
-
'<script src="https://jsagent.tcell.
|
65
|
+
'<script src="https://us.jsagent.tcell.insight.rapid7.com/tcellagent.min.js" ' \
|
66
66
|
'tcellappid="TestAppId-AppId" tcellapikey="AQABBA" ' \
|
67
|
-
'tcellbaseurl="https://
|
67
|
+
'tcellbaseurl="https://us.agent.tcell.insight.rapid7.com/api/v1"></script>'
|
68
68
|
)
|
69
69
|
end
|
70
70
|
end
|
@@ -3,6 +3,15 @@ require 'spec_helper'
|
|
3
3
|
module TCellAgent
|
4
4
|
module Policies
|
5
5
|
describe PatchesPolicy do
|
6
|
+
ip_group_policy = {
|
7
|
+
'iplists' => {
|
8
|
+
'policy_id' => '1234',
|
9
|
+
'version' => 2,
|
10
|
+
'enabled' => true,
|
11
|
+
'lists' => { 'ipgroups#test' => ['1.1.1.1'] }
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
6
15
|
blocked_ip_policy = {
|
7
16
|
'patches' => {
|
8
17
|
'policy_id' => 'policy_id',
|
@@ -20,7 +29,7 @@ module TCellAgent
|
|
20
29
|
'all' => [],
|
21
30
|
'any' => [
|
22
31
|
{
|
23
|
-
'ips' => [
|
32
|
+
'ips' => ['ipgroups#test']
|
24
33
|
}
|
25
34
|
]
|
26
35
|
}
|
@@ -60,6 +69,8 @@ module TCellAgent
|
|
60
69
|
@native_agent = TCellAgent::Rust::NativeAgent.create_agent(
|
61
70
|
configuration
|
62
71
|
)
|
72
|
+
@native_agent.update_policies(ip_group_policy)
|
73
|
+
|
63
74
|
enablements = @native_agent.update_policies(
|
64
75
|
blocked_ip_policy
|
65
76
|
)['enablements']
|
data/spec/support/builders.rb
CHANGED
@@ -15,8 +15,8 @@ module TCellAgent
|
|
15
15
|
@configuration.hmac_key = nil
|
16
16
|
@configuration.password_hmac_key = nil
|
17
17
|
@configuration.allow_payloads = true
|
18
|
-
@configuration.js_agent_api_base_url =
|
19
|
-
@configuration.js_agent_url = 'https://jsagent.tcell.
|
18
|
+
@configuration.js_agent_api_base_url = 'https://us.agent.tcell.insight.rapid7.com/api/v1'
|
19
|
+
@configuration.js_agent_url = 'https://us.jsagent.tcell.insight.rapid7.com/tcellagent.min.js'
|
20
20
|
@configuration.agent_log_dir = 'tcell/logs'
|
21
21
|
@configuration.logging_options = { :enabled => false }
|
22
22
|
@configuration.host_identifier = 'python-test-suite'
|
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.7.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: 2022-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
272
272
|
- !ruby/object:Gem::Version
|
273
273
|
version: '0'
|
274
274
|
requirements: []
|
275
|
-
rubygems_version: 3.
|
275
|
+
rubygems_version: 3.3.7
|
276
276
|
signing_key:
|
277
277
|
specification_version: 4
|
278
278
|
summary: tCell Agent for Rails
|