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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/pr_ci.yml +4 -4
  3. data/.github/workflows/release.yml +1 -1
  4. data/.github/workflows/rubocop.yml +1 -1
  5. data/.rubocop_todo.yml +165 -199
  6. data/CHANGELOG.md +32 -0
  7. data/Gemfile_test +4 -0
  8. data/README.md +1 -0
  9. data/lib/newrelic_security/agent/agent.rb +3 -1
  10. data/lib/newrelic_security/agent/configuration/manager.rb +16 -2
  11. data/lib/newrelic_security/agent/control/application_runtime_error.rb +1 -1
  12. data/lib/newrelic_security/agent/control/collector.rb +7 -1
  13. data/lib/newrelic_security/agent/control/control_command.rb +2 -1
  14. data/lib/newrelic_security/agent/control/error_reporting.rb +8 -6
  15. data/lib/newrelic_security/agent/control/event.rb +1 -0
  16. data/lib/newrelic_security/agent/control/event_processor.rb +20 -14
  17. data/lib/newrelic_security/agent/control/event_subscriber.rb +5 -1
  18. data/lib/newrelic_security/agent/control/health_check.rb +1 -0
  19. data/lib/newrelic_security/agent/control/http_context.rb +2 -1
  20. data/lib/newrelic_security/agent/control/iast_client.rb +1 -1
  21. data/lib/newrelic_security/agent/control/reflected_xss.rb +3 -4
  22. data/lib/newrelic_security/agent/control/websocket_client.rb +53 -16
  23. data/lib/newrelic_security/agent/utils/agent_utils.rb +14 -10
  24. data/lib/newrelic_security/instrumentation-security/graphql/chain.rb +26 -0
  25. data/lib/newrelic_security/instrumentation-security/graphql/instrumentation.rb +28 -0
  26. data/lib/newrelic_security/instrumentation-security/graphql/prepend.rb +18 -0
  27. data/lib/newrelic_security/instrumentation-security/io/chain.rb +2 -2
  28. data/lib/newrelic_security/instrumentation-security/io/prepend.rb +1 -1
  29. data/lib/newrelic_security/instrumentation-security/pg/instrumentation.rb +1 -1
  30. data/lib/newrelic_security/instrumentation-security/rack/chain.rb +24 -0
  31. data/lib/newrelic_security/instrumentation-security/rack/instrumentation.rb +44 -0
  32. data/lib/newrelic_security/instrumentation-security/rack/prepend.rb +18 -0
  33. data/lib/newrelic_security/version.rb +1 -1
  34. data/lib/newrelic_security/websocket-client-simple/client.rb +5 -1
  35. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82cddb6a77c7bac2c46e31b5e0577dd346aa0e78b919fc8fb3c2765a7192c0a6
4
- data.tar.gz: cb8f47120816909cb30ae0d16f9c6c4da3f684a8497747ccab3bbf12aa36e501
3
+ metadata.gz: 7aa76050ffc7e2a0a2b653877a2a4c4628e629030db40ef15a8ae299caa0104a
4
+ data.tar.gz: 24579913bd55a4a3b6291c93024dc01db9527e2f7f1b53458a8f711b092588b0
5
5
  SHA512:
6
- metadata.gz: 96abdbedd151b564c30d2ccafc1e98b46185130d6028634877ef0a42c1dc8ff775cf5affbcb7fdd7eee305bbb5ca33a266dfd82ebd5b7f0d2f6e396687af7897
7
- data.tar.gz: a69f0fcaf8a427a4ec169ed7dd33952ee88e723a89281a2e9b46841029898fdea6a21748290e2058e861629e368da84b0b6d317181248b33f88a3a33bc5049e2
6
+ metadata.gz: 97dcd089189944dbaaa3608e49cf1fd02d7f243d968fc20df8d0c2f2b2982964e10397dca13de1a3ed8c8e6bf136e4ce55c8f7d3b0e4f17b88be681eaedb5142
7
+ data.tar.gz: c56816bc316664b08b5f3934022d91b85e29c3cbb2dc9669efc33d3daa4b18d09f398fa47e76307e48c71a32c23c15fa694d66759b9e97f219558a9b54757469
@@ -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@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # tag v1.176.0
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@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # tag v1.176.0
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: 67
76
- failedThresholdBranch: 25
75
+ failedThreshold: 65
76
+ failedThresholdBranch: 20
77
77
 
@@ -16,7 +16,7 @@ jobs:
16
16
  with:
17
17
  fetch-depth: 0
18
18
 
19
- - uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # tag v1.176.0
19
+ - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
20
20
  with:
21
21
  ruby-version: 3.2
22
22
 
@@ -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@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # tag v1.176.0
13
+ - uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
14
14
  with:
15
15
  ruby-version: '3.3'
16
16
  - run: bundle