asherah 0.7.0 → 0.8.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/.rubocop.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/README.md +16 -0
- data/ext/asherah/checksums.yml +5 -5
- data/lib/asherah/config.rb +2 -0
- data/lib/asherah/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: 6c099a6a66b5d0f86edfaf4c05b9a3fe53234dae2e592ca6951e9b55a15727ab
|
|
4
|
+
data.tar.gz: 2a5c95bcc046532ca280ad2f5ac9ac5043462dc5ec877f3042a359c6a0ac9167
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 990780fe56c076bb75f9827364e0ed9d47062e38528101dc22770000670111421d8c55f4d4748f31aec55b83cb896372b32398a1c0cbeff715237f0d3c9191f0
|
|
7
|
+
data.tar.gz: c254644b64bfd6d702113e1fa650daa066122969ebb7a33a2f868dbdb99b13d1c589a50545cc1195d57c36b6e39163417cdd54b5e8bf30fc7503f096b339501c
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -69,6 +69,22 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
69
69
|
|
|
70
70
|
For tests requiring secrets (AWS KMS, database credentials), copy `.env.secrets.example` to `.env.secrets` and fill in the required values. The `.env.secrets` file is already in `.gitignore` to prevent accidental commits.
|
|
71
71
|
|
|
72
|
+
### Cross-Language Tests
|
|
73
|
+
|
|
74
|
+
Cross-language tests verify that data encrypted with the Go implementation can be decrypted with the Ruby implementation and vice versa.
|
|
75
|
+
|
|
76
|
+
**Prerequisites:**
|
|
77
|
+
- MySQL running locally
|
|
78
|
+
- Go 1.24+ installed
|
|
79
|
+
|
|
80
|
+
**Running the tests:**
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
TEST_DB_PASSWORD=pass bin/cross-language-test.sh
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
See `bin/cross-language-test.sh` for available environment variables and their defaults.
|
|
87
|
+
|
|
72
88
|
To install this gem onto your local machine, run `rake install`.
|
|
73
89
|
|
|
74
90
|
To release a new version, update the version number in `version.rb`, create and push a version tag:
|
data/ext/asherah/checksums.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
version: v0.
|
|
2
|
-
libasherah-arm64.so:
|
|
3
|
-
libasherah-x64.so:
|
|
4
|
-
libasherah-arm64.dylib:
|
|
5
|
-
libasherah-x64.dylib:
|
|
1
|
+
version: v0.5.0
|
|
2
|
+
libasherah-arm64.so: 8271298c357808d7e6daa4ca81ded8f39c1947a55043abe3b32359e0f5840a6c
|
|
3
|
+
libasherah-x64.so: 645c0da7d1330db511c6724f08154cfae3959610bd709d60eded1c1420d2fce8
|
|
4
|
+
libasherah-arm64.dylib: 909097bf62207e6927a0184e41859ccf42a62afd711cdadf69b8c5672939468b
|
|
5
|
+
libasherah-x64.dylib: e53ee66b7dd16ce587d5062e9eed8835f272653b6a91b4b5c5c1efd2ca97483e
|
data/lib/asherah/config.rb
CHANGED
|
@@ -21,6 +21,7 @@ module Asherah
|
|
|
21
21
|
# @attr [Integer] expire_after, The amount of time in seconds a key is considered valid
|
|
22
22
|
# @attr [Integer] check_interval, The amount of time in seconds before cached keys are considered stale
|
|
23
23
|
# @attr [Boolean] enable_session_caching, Enable shared session caching
|
|
24
|
+
# @attr [Boolean] disable_zero_copy, Disable zero-copy FFI input buffers to prevent use-after-free from caller runtime
|
|
24
25
|
# @attr [Boolean] verbose, Enable verbose logging output
|
|
25
26
|
class Config
|
|
26
27
|
MAPPING = {
|
|
@@ -40,6 +41,7 @@ module Asherah
|
|
|
40
41
|
session_cache_max_size: :SessionCacheMaxSize,
|
|
41
42
|
session_cache_duration: :SessionCacheDuration,
|
|
42
43
|
enable_session_caching: :EnableSessionCaching,
|
|
44
|
+
disable_zero_copy: :DisableZeroCopy,
|
|
43
45
|
expire_after: :ExpireAfter,
|
|
44
46
|
check_interval: :CheckInterval,
|
|
45
47
|
verbose: :Verbose
|
data/lib/asherah/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asherah
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GoDaddy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cobhan
|