rails-profiler 0.44.21 → 0.44.24
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/CHANGELOG.md +31 -0
- data/app/assets/builds/profiler.js +6 -6
- data/lib/profiler/cluster/security.rb +9 -1
- data/lib/profiler/env_key_policy.rb +2 -1
- data/lib/profiler/mcp/server.rb +2 -1
- data/lib/profiler/mcp/tools/get_profile_detail.rb +4 -3
- data/lib/profiler/mcp/tools/get_profile_http.rb +5 -4
- data/lib/profiler/middleware/cors_policy.rb +22 -0
- data/lib/profiler/peers.rb +1 -0
- data/lib/profiler/railtie.rb +7 -0
- data/lib/profiler/redaction.rb +10 -6
- data/lib/profiler/tasks/profiler.rake +1 -1
- data/lib/profiler/test_runner/runner.rb +3 -3
- data/lib/profiler/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1729fcad234995351945e11bd293601f63841d946c14e6e2fbc95f30f9caf2f6
|
|
4
|
+
data.tar.gz: b823de0bc5c361f1ca33bd11e9f971f44dde64db2edaf893041a94def6afd21e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f91e65367aa8085f1c000b8c7430683adaceb4a428cf7a136cdb599495fee5a0868df4f94bfab6398b564ad9e4c0b27059ca2940cc19f9fc79ff4f96e9386d4
|
|
7
|
+
data.tar.gz: 89e7752d3d1a346469c12ea74d1545e7c7f239a98a2b542892b3cb3962ac1b42584577f3b9aebdcc3610e16e23b4272336d42509803b01197ffa344cbe2304b9
|
data/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,37 @@ every commit of every tag interval is accounted for one way or the other.
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.44.24] - 2026-10-26
|
|
23
|
+
|
|
24
|
+
<!-- stamped -->
|
|
25
|
+
|
|
26
|
+
### Security
|
|
27
|
+
|
|
28
|
+
- **Secrets:** Refuse cluster secrets and peer tokens surrounded by spaces or newlines at boot, which break HTTP requests. `trailing` newlines cause `ArgumentError` in `Net::HTTP` and trailing spaces cause systematic 403 errors. Refs #74
|
|
29
|
+
- **Redaction:** Mask `peer_token` by value in captured data (headers, bodies, params) alongside `cluster_secret`, preventing credential leakage across profiles and logs. Refs #74. A secret or token padded with spaces stays masked.
|
|
30
|
+
- **Secrets:** A padded `cluster_secret` stays required (still refused) when `cluster_require_secret = false`, instead of silently disabling authentication. Refs #74
|
|
31
|
+
- **Environment:** Protect additional environment variables from override via the Env tab and MCP tools: `LOCALDOMAIN`, `RES_OPTIONS`, `HOSTALIASES`, `NODE_EXTRA_CA_CERTS` and `TMPDIR`. These variables control hostname resolution and certificate store location. Refs #74
|
|
32
|
+
- **CORS:** Warn at boot when `cors_allowed_origins` contains wildcard `"*"`, which allows any website to access the profiler if a visitor browses it. Recommend using specific origins instead. Refs #74
|
|
33
|
+
|
|
34
|
+
## [0.44.23] - 2026-10-25
|
|
35
|
+
|
|
36
|
+
<!-- stamped -->
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- **MCP:** `get_profile` and `get_profile_http` tools no longer crash when rendering in-flight HTTP requests with `nil` duration, safely converting to 0.0ms for comparison and display, and a `nil` status is shown as an error.
|
|
41
|
+
- **Cluster:** `SlaveProxy#request` now catches `SocketError`, `SystemCallError`, `Net::OpenTimeout`, `Net::ReadTimeout`, `OpenSSL::SSL::SSLError` and `IOError` and re-raises a `Profiler::Error` naming the slave, so a tool reading from an unreachable slave gets a normal error response instead of an internal `json-rpc` failure (matching `Peers::PeerProxy#get_json`).
|
|
42
|
+
- **Tasks:** `rake profiler:mcp` now defaults to `:stdio` transport instead of configuration-dependent behavior, aligning with the documented interface; `MCP_TRANSPORT` environment variable still overrides.
|
|
43
|
+
|
|
44
|
+
## [0.44.22] - 2026-10-25
|
|
45
|
+
|
|
46
|
+
<!-- stamped -->
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- **Test Runner:** test output now streams to the browser in real time instead of waiting for 256 bytes to accumulate.
|
|
51
|
+
- **Test Runner:** a rejected SSE stream (e.g. a 404 on the fallback poll) no longer leaves the page blank; the response is validated before replacing the current run.
|
|
52
|
+
|
|
22
53
|
## [0.44.21] - 2026-10-25
|
|
23
54
|
|
|
24
55
|
<!-- stamped -->
|