newrelic_security 0.3.0 → 0.4.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/.github/workflows/pr_ci.yml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/rubocop.yml +1 -1
- data/.rubocop_todo.yml +165 -199
- data/CHANGELOG.md +32 -0
- data/Gemfile_test +4 -0
- data/README.md +1 -0
- data/lib/newrelic_security/agent/agent.rb +3 -1
- data/lib/newrelic_security/agent/configuration/manager.rb +16 -2
- data/lib/newrelic_security/agent/control/application_runtime_error.rb +1 -1
- data/lib/newrelic_security/agent/control/collector.rb +7 -1
- data/lib/newrelic_security/agent/control/control_command.rb +2 -1
- data/lib/newrelic_security/agent/control/error_reporting.rb +8 -6
- data/lib/newrelic_security/agent/control/event.rb +1 -0
- data/lib/newrelic_security/agent/control/event_processor.rb +20 -14
- data/lib/newrelic_security/agent/control/event_subscriber.rb +5 -1
- data/lib/newrelic_security/agent/control/health_check.rb +1 -0
- data/lib/newrelic_security/agent/control/http_context.rb +2 -1
- data/lib/newrelic_security/agent/control/iast_client.rb +1 -1
- data/lib/newrelic_security/agent/control/reflected_xss.rb +3 -4
- data/lib/newrelic_security/agent/control/websocket_client.rb +53 -16
- data/lib/newrelic_security/agent/utils/agent_utils.rb +14 -10
- data/lib/newrelic_security/instrumentation-security/graphql/chain.rb +26 -0
- data/lib/newrelic_security/instrumentation-security/graphql/instrumentation.rb +28 -0
- data/lib/newrelic_security/instrumentation-security/graphql/prepend.rb +18 -0
- data/lib/newrelic_security/instrumentation-security/io/chain.rb +2 -2
- data/lib/newrelic_security/instrumentation-security/io/prepend.rb +1 -1
- data/lib/newrelic_security/instrumentation-security/pg/instrumentation.rb +1 -1
- data/lib/newrelic_security/instrumentation-security/rack/chain.rb +24 -0
- data/lib/newrelic_security/instrumentation-security/rack/instrumentation.rb +44 -0
- data/lib/newrelic_security/instrumentation-security/rack/prepend.rb +18 -0
- data/lib/newrelic_security/version.rb +1 -1
- data/lib/newrelic_security/websocket-client-simple/client.rb +5 -1
- metadata +11 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7aa76050ffc7e2a0a2b653877a2a4c4628e629030db40ef15a8ae299caa0104a
|
|
4
|
+
data.tar.gz: 24579913bd55a4a3b6291c93024dc01db9527e2f7f1b53458a8f711b092588b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97dcd089189944dbaaa3608e49cf1fd02d7f243d968fc20df8d0c2f2b2982964e10397dca13de1a3ed8c8e6bf136e4ce55c8f7d3b0e4f17b88be681eaedb5142
|
|
7
|
+
data.tar.gz: c56816bc316664b08b5f3934022d91b85e29c3cbb2dc9669efc33d3daa4b18d09f398fa47e76307e48c71a32c23c15fa694d66759b9e97f219558a9b54757469
|
data/.github/workflows/pr_ci.yml
CHANGED
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libxslt1-dev libc6-dev openjdk-11-jdk
|
|
23
23
|
|
|
24
24
|
- name: Install Ruby ${{ matrix.ruby-version }}
|
|
25
|
-
uses: ruby/setup-ruby@
|
|
25
|
+
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
|
|
26
26
|
with:
|
|
27
27
|
ruby-version: ${{ matrix.ruby-version }}
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
- name: Configure git
|
|
54
54
|
run: 'git config --global init.defaultBranch main'
|
|
55
55
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
|
|
56
|
-
- uses: ruby/setup-ruby@
|
|
56
|
+
- uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
|
|
57
57
|
with:
|
|
58
58
|
ruby-version: '3.1'
|
|
59
59
|
- run: bundle
|
|
@@ -72,6 +72,6 @@ jobs:
|
|
|
72
72
|
with:
|
|
73
73
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
74
74
|
resultPath: lib/coverage_results/.last_run.json
|
|
75
|
-
failedThreshold:
|
|
76
|
-
failedThresholdBranch:
|
|
75
|
+
failedThreshold: 65
|
|
76
|
+
failedThresholdBranch: 20
|
|
77
77
|
|
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
- name: Configure git
|
|
11
11
|
run: 'git config --global init.defaultBranch main'
|
|
12
12
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
|
|
13
|
-
- uses: ruby/setup-ruby@
|
|
13
|
+
- uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
|
|
14
14
|
with:
|
|
15
15
|
ruby-version: '3.3'
|
|
16
16
|
- run: bundle
|