data_redactor 0.10.0-x86_64-darwin → 0.10.1-x86_64-darwin
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 +12 -1
- data/{readme.md → README.md} +2 -2
- data/lib/data_redactor/3.0/data_redactor.bundle +0 -0
- data/lib/data_redactor/3.1/data_redactor.bundle +0 -0
- data/lib/data_redactor/3.2/data_redactor.bundle +0 -0
- data/lib/data_redactor/3.3/data_redactor.bundle +0 -0
- data/lib/data_redactor/3.4/data_redactor.bundle +0 -0
- data/lib/data_redactor/4.0/data_redactor.bundle +0 -0
- data/lib/data_redactor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85bd57c818650ea452e6787af3596c4b868d54d9b4d0caaf66b4729bd3618ddb
|
|
4
|
+
data.tar.gz: 61eba720403deacbce30fea57626629885cf4b0d68bc8c1446e31f79e66569d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 937c343346177564cd9688b85028817fac5918846e96a03bf2376cb276c54e6df6b33238271a17473106b823cebc54ac2c2ff98d6459b34825941b0162c885e2
|
|
7
|
+
data.tar.gz: a44bee564f7ab53c85b1cc244ae14f2893b39761d59b4043b81acf19c053315731ce4756e5cf54540a38ca1867f723c60c11312510772a3496f076ac11c98753
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.10.1] - 2026-06-10
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **musl/Alpine load failure** — the `hashicorp_vault_batch_token` pattern used a
|
|
14
|
+
`{138,300}` interval whose upper bound exceeds POSIX `RE_DUP_MAX` (255). glibc
|
|
15
|
+
accepts it, but musl's `regcomp` rejects it ("Invalid contents of {}"), so the
|
|
16
|
+
native musl gem raised at load (`require "data_redactor"`) on Alpine. Capped the
|
|
17
|
+
bound at 255; tokens are still neutralized (prefix + 251+ chars redacted).
|
|
18
|
+
|
|
10
19
|
## [0.10.0] - 2026-06-09
|
|
11
20
|
|
|
12
21
|
### Changed
|
|
@@ -204,7 +213,9 @@ features as 0.7.1 plus the pipeline fix.
|
|
|
204
213
|
- `DataRedactor.redact(text)` module function returning the input with every match replaced by `[REDACTED]`.
|
|
205
214
|
- RSpec suite with one example per pattern.
|
|
206
215
|
|
|
207
|
-
[Unreleased]: https://github.com/danielefrisanco/data_redactor/compare/v0.
|
|
216
|
+
[Unreleased]: https://github.com/danielefrisanco/data_redactor/compare/v0.10.1...HEAD
|
|
217
|
+
[0.10.1]: https://github.com/danielefrisanco/data_redactor/compare/v0.10.0...v0.10.1
|
|
218
|
+
[0.10.0]: https://github.com/danielefrisanco/data_redactor/compare/v0.9.0...v0.10.0
|
|
208
219
|
[0.9.0]: https://github.com/danielefrisanco/data_redactor/compare/v0.8.0...v0.9.0
|
|
209
220
|
[0.8.0]: https://github.com/danielefrisanco/data_redactor/compare/v0.7.2...v0.8.0
|
|
210
221
|
[0.7.2]: https://github.com/danielefrisanco/data_redactor/compare/v0.7.1...v0.7.2
|
data/{readme.md → README.md}
RENAMED
|
@@ -523,7 +523,7 @@ All C-side buffers are heap-allocated with `malloc`/`strdup` and freed before th
|
|
|
523
523
|
|
|
524
524
|
## Thread safety
|
|
525
525
|
|
|
526
|
-
`DataRedactor.redact` and `DataRedactor.scan` are safe to call concurrently from multiple threads.
|
|
526
|
+
`DataRedactor.redact` and `DataRedactor.scan` are safe to call concurrently from multiple threads. The v19 engine holds MRI's GVL for the duration of each call (no `rb_thread_call_without_gvl`), so concurrent calls are serialised by the GVL. Each call allocates its own working buffers; built-in engine state is read-only after `mm_init()` at load time.
|
|
527
527
|
|
|
528
528
|
`DataRedactor.add_pattern`, `remove_pattern`, and `clear_custom_patterns!` mutate a shared dynamic array and are **not** thread-safe. Register custom patterns once at boot — before spawning worker threads or forking — and they will be visible (read-only) to every subsequent `redact`/`scan` call.
|
|
529
529
|
|
|
@@ -540,4 +540,4 @@ Released under the [MIT License](LICENSE).
|
|
|
540
540
|
- **Pattern ordering matters** — patterns run sequentially. An early broad pattern (e.g. the 9-digit passport) may consume digits that a later pattern (e.g. credit card) depends on. Boundary wrapping mitigates this for pure-digit patterns.
|
|
541
541
|
- **AWS Secret Key (pattern 1)** — 40 consecutive base64 characters is a broad match. It can produce false positives in base64-encoded content such as embedded images or binary blobs.
|
|
542
542
|
- **Duplicate digit patterns** — several national ID formats share the same digit-length (11 digits: PESEL, Norwegian Fødselsnummer, Belgian National Number). They are kept as separate slots for clarity but the practical effect is that any 11-digit boundary-delimited number will be redacted.
|
|
543
|
-
- **
|
|
543
|
+
- **Single-pass overlap semantics** — built-in patterns are resolved by an index-order greedy claim: the lower-index pattern wins any region it matches. When two secrets abut with no separator, a rewrite-created word boundary can cause the second to be missed. This is rare in real text (secrets are almost always separator-delimited) and will be fixed by the upcoming longest-match-wins resolver in 1.0.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: data_redactor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.1
|
|
5
5
|
platform: x86_64-darwin
|
|
6
6
|
authors:
|
|
7
7
|
- Daniele Frisanco
|
|
@@ -106,6 +106,7 @@ extra_rdoc_files: []
|
|
|
106
106
|
files:
|
|
107
107
|
- CHANGELOG.md
|
|
108
108
|
- LICENSE
|
|
109
|
+
- README.md
|
|
109
110
|
- lib/data_redactor.rb
|
|
110
111
|
- lib/data_redactor/3.0/data_redactor.bundle
|
|
111
112
|
- lib/data_redactor/3.1/data_redactor.bundle
|
|
@@ -118,7 +119,6 @@ files:
|
|
|
118
119
|
- lib/data_redactor/integrations/rails.rb
|
|
119
120
|
- lib/data_redactor/name_pattern.rb
|
|
120
121
|
- lib/data_redactor/version.rb
|
|
121
|
-
- readme.md
|
|
122
122
|
homepage: https://github.com/danielefrisanco/data_redactor
|
|
123
123
|
licenses:
|
|
124
124
|
- MIT
|