contrast-agent 3.12.0 → 3.12.1
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/funchook/autom4te.cache/requests +46 -46
- data/funchook/config.log +2 -2
- data/lib/contrast/agent/version.rb +1 -1
- data/lib/contrast/configuration.rb +2 -2
- data/lib/contrast/logger/log.rb +10 -9
- data/service_executables/VERSION +1 -1
- data/service_executables/linux/contrast-service +0 -0
- data/service_executables/mac/contrast-service +0 -0
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2d4359b44c796de0747e2234dbd2a4f418c7392ff7238a247dfcf0d9bbb10f6
|
|
4
|
+
data.tar.gz: 39131596bd4eb2625c32cd71971ad772c6b5af5540bdfb2b662a1278e24a708b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38a99de9a280a7334986aaa62f63b73f2c948acf01c1d927b98f3a1ab0dee7da69b0a9bbbca39aad61d8bbcd7a38bd2c4218cff74d37703f63057b23b6e9bca4
|
|
7
|
+
data.tar.gz: f6137708523bd8d0c9b995d03002b028f7f7eacf41e0e00ba85d11a6996d7486370b387d295ac060d99b91df7b594bf36d87c55043187116ff1914bec3ff69c9
|
|
@@ -14,64 +14,64 @@
|
|
|
14
14
|
'configure.ac'
|
|
15
15
|
],
|
|
16
16
|
{
|
|
17
|
-
'AC_CANONICAL_HOST' => 1,
|
|
18
|
-
'm4_sinclude' => 1,
|
|
19
|
-
'AC_LIBSOURCE' => 1,
|
|
20
|
-
'AC_FC_PP_DEFINE' => 1,
|
|
21
|
-
'AC_CONFIG_HEADERS' => 1,
|
|
22
|
-
'AM_GNU_GETTEXT' => 1,
|
|
23
|
-
'AC_FC_PP_SRCEXT' => 1,
|
|
24
|
-
'AM_SILENT_RULES' => 1,
|
|
25
|
-
'LT_INIT' => 1,
|
|
26
|
-
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
|
27
|
-
'AC_DEFINE_TRACE_LITERAL' => 1,
|
|
28
17
|
'_AM_MAKEFILE_INCLUDE' => 1,
|
|
29
|
-
'AC_CANONICAL_TARGET' => 1,
|
|
30
|
-
'LT_CONFIG_LTDL_DIR' => 1,
|
|
31
|
-
'LT_SUPPORTED_TAG' => 1,
|
|
32
|
-
'include' => 1,
|
|
33
|
-
'sinclude' => 1,
|
|
34
|
-
'AH_OUTPUT' => 1,
|
|
35
18
|
'AM_MAINTAINER_MODE' => 1,
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
19
|
+
'AM_NLS' => 1,
|
|
20
|
+
'AM_ENABLE_MULTILIB' => 1,
|
|
21
|
+
'AC_CONFIG_FILES' => 1,
|
|
39
22
|
'AM_POT_TOOLS' => 1,
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
23
|
+
'AM_INIT_AUTOMAKE' => 1,
|
|
24
|
+
'AM_PROG_LIBTOOL' => 1,
|
|
25
|
+
'AM_PROG_MOC' => 1,
|
|
26
|
+
'AC_CONFIG_HEADERS' => 1,
|
|
27
|
+
'AH_OUTPUT' => 1,
|
|
28
|
+
'AM_PROG_AR' => 1,
|
|
29
|
+
'AC_DEFINE_TRACE_LITERAL' => 1,
|
|
30
|
+
'AC_REQUIRE_AUX_FILE' => 1,
|
|
43
31
|
'AM_AUTOMAKE_VERSION' => 1,
|
|
44
|
-
'
|
|
32
|
+
'm4_include' => 1,
|
|
45
33
|
'AC_CANONICAL_BUILD' => 1,
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'AC_FC_FREEFORM' => 1,
|
|
34
|
+
'LT_INIT' => 1,
|
|
35
|
+
'AC_LIBSOURCE' => 1,
|
|
49
36
|
'm4_pattern_allow' => 1,
|
|
50
|
-
'_m4_warn' => 1,
|
|
51
37
|
'AM_PROG_CC_C_O' => 1,
|
|
52
|
-
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
|
|
53
|
-
'AC_REQUIRE_AUX_FILE' => 1,
|
|
54
|
-
'AC_CONFIG_LINKS' => 1,
|
|
55
|
-
'AM_ENABLE_MULTILIB' => 1,
|
|
56
|
-
'AM_PROG_CXX_C_O' => 1,
|
|
57
|
-
'AC_CONFIG_FILES' => 1,
|
|
58
|
-
'AM_NLS' => 1,
|
|
59
38
|
'AM_PROG_FC_C_O' => 1,
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
39
|
+
'AC_SUBST_TRACE' => 1,
|
|
40
|
+
'AC_FC_PP_DEFINE' => 1,
|
|
41
|
+
'AC_PROG_LIBTOOL' => 1,
|
|
42
|
+
'LT_SUPPORTED_TAG' => 1,
|
|
43
|
+
'AC_SUBST' => 1,
|
|
44
|
+
'sinclude' => 1,
|
|
45
|
+
'AM_MAKEFILE_INCLUDE' => 1,
|
|
65
46
|
'_AM_SUBST_NOTMAKE' => 1,
|
|
66
|
-
'_LT_AC_TAGCONFIG' => 1,
|
|
67
|
-
'AC_CONFIG_AUX_DIR' => 1,
|
|
68
47
|
'AM_CONDITIONAL' => 1,
|
|
69
|
-
'
|
|
70
|
-
'
|
|
48
|
+
'_LT_AC_TAGCONFIG' => 1,
|
|
49
|
+
'include' => 1,
|
|
50
|
+
'AC_CANONICAL_TARGET' => 1,
|
|
51
|
+
'm4_sinclude' => 1,
|
|
71
52
|
'AC_INIT' => 1,
|
|
72
|
-
'
|
|
53
|
+
'_AM_COND_ELSE' => 1,
|
|
54
|
+
'AC_FC_FREEFORM' => 1,
|
|
55
|
+
'AM_PATH_GUILE' => 1,
|
|
56
|
+
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
|
|
57
|
+
'AM_SILENT_RULES' => 1,
|
|
58
|
+
'AM_PROG_F77_C_O' => 1,
|
|
59
|
+
'AC_FC_PP_SRCEXT' => 1,
|
|
60
|
+
'AC_CANONICAL_SYSTEM' => 1,
|
|
61
|
+
'AC_CANONICAL_HOST' => 1,
|
|
62
|
+
'm4_pattern_forbid' => 1,
|
|
63
|
+
'_AM_COND_IF' => 1,
|
|
64
|
+
'AM_PROG_CXX_C_O' => 1,
|
|
65
|
+
'AC_FC_SRCEXT' => 1,
|
|
66
|
+
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
|
73
67
|
'AM_XGETTEXT_OPTION' => 1,
|
|
74
|
-
'
|
|
68
|
+
'_AM_COND_ENDIF' => 1,
|
|
69
|
+
'LT_CONFIG_LTDL_DIR' => 1,
|
|
70
|
+
'AC_CONFIG_AUX_DIR' => 1,
|
|
71
|
+
'AC_CONFIG_SUBDIRS' => 1,
|
|
72
|
+
'AM_GNU_GETTEXT' => 1,
|
|
73
|
+
'AC_CONFIG_LINKS' => 1,
|
|
74
|
+
'_m4_warn' => 1
|
|
75
75
|
}
|
|
76
76
|
], 'Autom4te::Request' )
|
|
77
77
|
);
|
data/funchook/config.log
CHANGED
|
@@ -10,7 +10,7 @@ generated by GNU Autoconf 2.69. Invocation command line was
|
|
|
10
10
|
## Platform. ##
|
|
11
11
|
## --------- ##
|
|
12
12
|
|
|
13
|
-
hostname =
|
|
13
|
+
hostname = a193cfcc-bb72-46e9-914d-bb7806a0d5f9-k7pzb
|
|
14
14
|
uname -m = x86_64
|
|
15
15
|
uname -r = 4.19.107-flatcar
|
|
16
16
|
uname -s = Linux
|
|
@@ -326,7 +326,7 @@ generated by GNU Autoconf 2.69. Invocation command line was
|
|
|
326
326
|
CONFIG_COMMANDS =
|
|
327
327
|
$ ./config.status
|
|
328
328
|
|
|
329
|
-
on
|
|
329
|
+
on a193cfcc-bb72-46e9-914d-bb7806a0d5f9-k7pzb
|
|
330
330
|
|
|
331
331
|
config.status:822: creating Makefile
|
|
332
332
|
config.status:822: creating src/Makefile
|
|
@@ -88,13 +88,13 @@ module Contrast
|
|
|
88
88
|
puts "!!! Contrast - Configuration file at #{ path } is not readable by current user"
|
|
89
89
|
next
|
|
90
90
|
end
|
|
91
|
-
config = yaml_to_hash(path)
|
|
91
|
+
config = yaml_to_hash(path) || {}
|
|
92
92
|
break
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
if config.empty?
|
|
96
96
|
puts "!!! Contrast - working directory: #{ Dir.pwd }"
|
|
97
|
-
puts '!!! Contrast - configuration file could not be found at any of the search paths'
|
|
97
|
+
puts '!!! Contrast - valid configuration file could not be found at any of the search paths'
|
|
98
98
|
puts 'Valid configuration paths are: '
|
|
99
99
|
configuration_paths.each do |path|
|
|
100
100
|
puts(path)
|
data/lib/contrast/logger/log.rb
CHANGED
|
@@ -30,8 +30,6 @@ module Contrast
|
|
|
30
30
|
|
|
31
31
|
def initialize
|
|
32
32
|
update
|
|
33
|
-
rescue StandardError => e
|
|
34
|
-
logger.error('Unable to initialize regular logger in LoggerManager.', e)
|
|
35
33
|
end
|
|
36
34
|
|
|
37
35
|
# Given new settings from TeamServer, update our logging to use the new
|
|
@@ -58,7 +56,12 @@ module Contrast
|
|
|
58
56
|
@_logger = build(path: path, level_const: level_const)
|
|
59
57
|
log_update
|
|
60
58
|
rescue StandardError => e
|
|
61
|
-
logger
|
|
59
|
+
if logger
|
|
60
|
+
logger.error('Unable to process update to LoggerManager.', e)
|
|
61
|
+
else
|
|
62
|
+
puts 'Unable to process update to LoggerManager.'
|
|
63
|
+
puts e.backtrace.join("\n")
|
|
64
|
+
end
|
|
62
65
|
end
|
|
63
66
|
|
|
64
67
|
def logger
|
|
@@ -104,13 +107,11 @@ module Contrast
|
|
|
104
107
|
path = DEFAULT_NAME if path.empty?
|
|
105
108
|
if write_permission?(path)
|
|
106
109
|
path
|
|
110
|
+
elsif write_permission?(DEFAULT_NAME)
|
|
111
|
+
puts "[!] Unable to write to '#{ path }'. Writing to default log '#{ DEFAULT_NAME }' instead."
|
|
112
|
+
DEFAULT_NAME
|
|
107
113
|
else
|
|
108
|
-
|
|
109
|
-
logger.error('Unable to create log in directory. Writing to standard out instead', path: path)
|
|
110
|
-
else
|
|
111
|
-
logger.error('Unable to write to log file. Writing to standard out instead', path: path)
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
+
puts "[!] Unable to write to '#{ path }'. Writing to standard out instead."
|
|
114
115
|
STDOUT_STR
|
|
115
116
|
end
|
|
116
117
|
end
|
data/service_executables/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.9.2
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: contrast-agent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.12.
|
|
4
|
+
version: 3.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- galen.palmer@contrastsecurity.com
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: exe
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2020-
|
|
15
|
+
date: 2020-07-01 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: amazing_print
|
|
@@ -462,20 +462,20 @@ executables:
|
|
|
462
462
|
- contrast_service
|
|
463
463
|
extensions:
|
|
464
464
|
- ext/cs__common/extconf.rb
|
|
465
|
-
- ext/
|
|
465
|
+
- ext/cs__assess_active_record_named/extconf.rb
|
|
466
466
|
- ext/cs__assess_basic_object/extconf.rb
|
|
467
|
-
- ext/
|
|
467
|
+
- ext/cs__assess_string/extconf.rb
|
|
468
468
|
- ext/cs__assess_string_interpolation26/extconf.rb
|
|
469
|
-
- ext/cs__contrast_patch/extconf.rb
|
|
470
469
|
- ext/cs__assess_array/extconf.rb
|
|
470
|
+
- ext/cs__protect_kernel/extconf.rb
|
|
471
|
+
- ext/cs__assess_yield_track/extconf.rb
|
|
471
472
|
- ext/cs__assess_kernel/extconf.rb
|
|
472
|
-
- ext/cs__assess_string/extconf.rb
|
|
473
473
|
- ext/cs__assess_hash/extconf.rb
|
|
474
474
|
- ext/cs__assess_module/extconf.rb
|
|
475
|
+
- ext/cs__contrast_patch/extconf.rb
|
|
475
476
|
- ext/cs__assess_regexp/extconf.rb
|
|
476
|
-
- ext/
|
|
477
|
-
- ext/
|
|
478
|
-
- ext/cs__protect_kernel/extconf.rb
|
|
477
|
+
- ext/cs__assess_fiber_track/extconf.rb
|
|
478
|
+
- ext/cs__assess_marshal_module/extconf.rb
|
|
479
479
|
extra_rdoc_files: []
|
|
480
480
|
files:
|
|
481
481
|
- ".clang-format"
|