scout_apm 6.3.2 → 6.4.0
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/semgrep.yml +41 -0
- data/.github/workflows/test.yml +2 -0
- data/CHANGELOG.markdown +14 -0
- data/data/cacert.pem +2088 -3060
- data/lib/scout_apm/config.rb +49 -1
- data/lib/scout_apm/reporter.rb +2 -1
- data/lib/scout_apm/serializers/payload_serializer_to_json.rb +20 -36
- data/lib/scout_apm/utils/sql_sanitizer.rb +14 -13
- data/lib/scout_apm/version.rb +1 -1
- data/test/unit/config_test.rb +104 -0
- data/test/unit/reporter_test.rb +24 -0
- data/test/unit/serializers/payload_serializer_test.rb +26 -0
- data/test/unit/sql_sanitizer_test.rb +53 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 946b50c247963854bd791e98c90767ad678d809c4381df93d8e8cde5bec5d588
|
|
4
|
+
data.tar.gz: 6151cbb3f58f099a72e7c641f3a61e88071cd63bdb414a4043274abec7a66f70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06fa78cd3cebbce4494a2c3f08baf070e643014d6b6499bb6a1504a49fc3366574afc0a0c08f8d7f0374c1d8174b4cc783d0c32669bf8fe028eeb8213efb75bd
|
|
7
|
+
data.tar.gz: 31e85d68da2919b8db05b705a64594ce4d112185ad664556e86268f358bbd0dcb6cd6b441598a542a31fbe6d9a3bf6afdb33666c1fba8d5c97970980fb18f737
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Semgrep
|
|
2
|
+
|
|
3
|
+
# Static analysis (Semgrep) on every PR to master. PRs are diff-aware: only findings
|
|
4
|
+
# a PR introduces fail the check. Pushes to master run a full, report-only scan.
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
push:
|
|
11
|
+
branches:
|
|
12
|
+
- master
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
semgrep:
|
|
20
|
+
name: Semgrep SAST
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
timeout-minutes: 15
|
|
23
|
+
container:
|
|
24
|
+
image: semgrep/semgrep:1.183.0
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- name: Checkout code
|
|
28
|
+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0
|
|
31
|
+
|
|
32
|
+
- name: Scan
|
|
33
|
+
env:
|
|
34
|
+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
35
|
+
run: |
|
|
36
|
+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
37
|
+
if [ -n "$BASE_SHA" ]; then
|
|
38
|
+
semgrep scan --config p/default --metrics=off --error --baseline-commit "$BASE_SHA"
|
|
39
|
+
else
|
|
40
|
+
semgrep scan --config p/default --metrics=off
|
|
41
|
+
fi
|
data/.github/workflows/test.yml
CHANGED
|
@@ -65,6 +65,8 @@ jobs:
|
|
|
65
65
|
test_features: "instruments"
|
|
66
66
|
env:
|
|
67
67
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
68
|
+
# bson 3.x uses -std=c99, which hides gethostname on newer glibc without this feature macro.
|
|
69
|
+
BUNDLE_BUILD__BSON: --with-cflags=-D_DEFAULT_SOURCE
|
|
68
70
|
SCOUT_TEST_FEATURES: ${{ matrix.test_features }}
|
|
69
71
|
SCOUT_USE_PREPEND: ${{ matrix.prepend }}
|
|
70
72
|
|
data/CHANGELOG.markdown
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Pending
|
|
2
2
|
|
|
3
|
+
# 6.4.0
|
|
4
|
+
|
|
5
|
+
HTTPS reporting now verifies Scout's certificates against the OS trust store by default instead of the CA file bundled with the gem. To keep using a specific CA file, set `SCOUT_SSL_CERT_FILE` (or `ssl_cert_file`) to its path.
|
|
6
|
+
|
|
7
|
+
- Use the OS trust store by default for HTTPS reporting, falling back to the bundled CA file when unavailable (#647)
|
|
8
|
+
- Fall back to the bundled CA file when the OS certificate directory has no certificates or `SSL_CERT_FILE`/`SSL_CERT_DIR` is set, and log which trust store HTTPS reporting uses (#649)
|
|
9
|
+
- Update the bundled CA file to Mozilla's current root certificates, removing roots Mozilla no longer trusts (#650)
|
|
10
|
+
|
|
11
|
+
# 6.3.3
|
|
12
|
+
|
|
13
|
+
- Encode the JSON reporting payload with the json library instead of the hand-written encoder (#641)
|
|
14
|
+
- Sanitize each SQL statement only once instead of on every `SqlSanitizer#to_s` call (#642)
|
|
15
|
+
- Remove `[[...]]` bind lists that are on their own lines from Postgres SQL (#645)
|
|
16
|
+
|
|
3
17
|
# 6.3.2
|
|
4
18
|
|
|
5
19
|
- Build the per-minute debug dumps of metrics, slow traces and auto-instrument histograms only when debug logging is enabled (#639)
|