iodine 0.8.4 → 0.8.6
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 +43 -1
- data/README.md +1 -1
- data/exe/iodine +5 -5
- data/ext/iodine/fio-stl.h +311 -145
- data/ext/iodine/fio-stl.md +59 -24
- data/ext/iodine/iodine_caller.h +1 -1
- data/ext/iodine/iodine_cli.h +4 -0
- data/ext/iodine/iodine_connection.h +34 -17
- data/ext/iodine/iodine_crypto.h +117 -0
- data/ext/iodine/iodine_listener.h +2 -1
- data/ext/iodine/iodine_minimap.h +17 -17
- data/ext/iodine/iodine_tls.h +21 -7
- data/ext/iodine/iodine_utils.h +26 -17
- data/lib/iodine/benchmark.rb +20 -3
- data/lib/iodine/documentation.rb +174 -7
- data/lib/iodine/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: a78e5e3d245628f5435cee4464e5d3cda671089abd62fb77d3774ef2c2f96f85
|
|
4
|
+
data.tar.gz: f7f6be135b098c5a83dd8d2b0991a2bb379cb26db33314984bdca2c8a343739d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e364ad32ead143b4f809bcd8c4a86d3bb30cce41d642d91a7212d46bb36bd752c08ce0328333cbd2acd15ec0771b08b66aa8b163b09898363872a6cfa0188cb
|
|
7
|
+
data.tar.gz: 2d994564dcef4a132011da2ce1f7d1ba1d6eccad17c66321409decfccb88872d8684c38bccba580c771f095d89ff35de4ba9a1d4a9b79c15c06207f0696bd659
|
data/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,49 @@ Please refer to the current gem version to review the relevant changes for your
|
|
|
7
7
|
|
|
8
8
|
## Changes
|
|
9
9
|
|
|
10
|
-
#### 0.8.
|
|
10
|
+
#### 0.8.6 - 2026-11-10
|
|
11
|
+
|
|
12
|
+
**Fix**: `rack.input#rewind` moves to the start of the body and `rack.input#seek` with no argument returns the current position (both moved to the end of the body since 0.8.3, leaving Rails with empty JSON and form bodies). Credit to Nazarenko Viktor (@vnazarenko) for PR #173.
|
|
13
|
+
|
|
14
|
+
**Fix**: the Rack env sets `CONTENT_LENGTH` (not `HTTP_CONTENT_LENGTH`), so `ActionDispatch::Request#raw_post` reads JSON bodies. Credit to Nazarenko Viktor (@vnazarenko) for PR #174.
|
|
15
|
+
|
|
16
|
+
**Fix**: the exposed exception log message no longer has a format specifier without a matching argument, which read garbage from the stack.
|
|
17
|
+
|
|
18
|
+
#### 0.8.5 - 2026-11-07
|
|
19
|
+
|
|
20
|
+
**Feature**: (`crypto`) `Iodine::Base::Crypto::P256` and `Iodine::Base::Crypto::P384` provide ECDSA signatures (ES256 / ES384: `keypair`, `public_key`, `sign`, `verify`) with OpenSSL compatible encodings (uncompressed SEC 1 public keys, DER signatures).
|
|
21
|
+
|
|
22
|
+
**Feature**: (`utils`) `Iodine::Utils.risky256` and `risky512` accept an optional `key:` for single pass keyed hashing (included in `Iodine::Benchmark.hmac` and `.non_crypto_hashing`).
|
|
23
|
+
|
|
24
|
+
**Feature**: `Iodine::Connection#local_addr` returns the local socket address (HTTP, WebSocket, SSE and raw connections).
|
|
25
|
+
|
|
26
|
+
**Feature**: (`cli`) `--max-params` / `-maxpr` sets the request params field limit (query pairs, form fields and multipart parts; default 4096).
|
|
27
|
+
|
|
28
|
+
**Feature**: `Iodine::Connection.new` / `Iodine.connect` accept `verify: true` to verify the server's TLS certificate (system trust store unless trust was set). Verification remains opt-in; the `?trust=sys` / `?trust=ca.pem` URL hints are now documented.
|
|
29
|
+
|
|
30
|
+
**Fix**: `Iodine::Listener#map(nil, handler)` sets the default (root) handler instead of crashing.
|
|
31
|
+
|
|
32
|
+
**Fix**: (`cli`) a NeoRack app file without `run` reports "Web App not found" instead of crashing; route maps without a root application are supported.
|
|
33
|
+
|
|
34
|
+
**Fix**: `Iodine::Base::MiniMap` accepts `true`, `false` and `nil` keys, as intended.
|
|
35
|
+
|
|
36
|
+
**Update**: random data uses the facil.io C STL PRNG (reseeded in forked workers automatically) instead of a private generator; raw client connection checks use `fio_sock_error`.
|
|
37
|
+
|
|
38
|
+
**Docs**: `Iodine::TLS#add_cert` documents SNI certificate selection, self-signed certificates and client certificates (mutual TLS).
|
|
39
|
+
|
|
40
|
+
[facil.io C STL](https://github.com/facil-io/cstl) updates:
|
|
41
|
+
|
|
42
|
+
**Security**: (`http` client) TLS hints (`tls`, `key`, `cert`, `pass`, `trust`, ...) at the head or tail of a client URL query are no longer sent to the server, so key paths and passwords stay private.
|
|
43
|
+
|
|
44
|
+
**Security**: (`listen`) a listen URL without a port (e.g., `localhost?tls`) keeps its TLS hints instead of serving plaintext.
|
|
45
|
+
|
|
46
|
+
**Fix**: idle servers no longer burn CPU, and raw TLS listeners no longer close every accepted connection.
|
|
47
|
+
|
|
48
|
+
**Fix**: (`openssl`) data buffered inside OpenSSL is read at once, instead of waiting for more bytes on the socket.
|
|
49
|
+
|
|
50
|
+
**Fix**: (`brotli`) RFC 7932 conformance: inputs over 16MB at quality 5-6 now compress correctly, and invalid streams are rejected.
|
|
51
|
+
|
|
52
|
+
**Fix**: string replacement, Base32 decoding and HTML unescaping work when the source overlaps the destination; Windows multi-file builds link.
|
|
11
53
|
|
|
12
54
|
#### 0.8.4 - 2026-11-02
|
|
13
55
|
|
data/README.md
CHANGED
|
@@ -146,7 +146,7 @@ iodine -b https://0.0.0.0/?trust=ca.pem
|
|
|
146
146
|
|
|
147
147
|
The [API reference](http://www.rubydoc.info/github/boazsegev/iodine) covers per-listener `Iodine::TLS#trust` and peer certificate-chain inspection.
|
|
148
148
|
|
|
149
|
-
**Security limits:** Iodine sets defaults for HTTP header and body sizes and incoming WebSocket message size. Configure them with `-maxln`, `-maxhd`, `-maxbd`, and `-maxms`. Large HTTP payloads can be diverted to temporary files. See `iodine -h` and load-test your chosen limits and timeouts.
|
|
149
|
+
**Security limits:** Iodine sets defaults for HTTP header and body sizes and incoming WebSocket message size. Configure them with `-maxln`, `-maxhd`, `-maxbd`, `-maxpr` (request params fields), and `-maxms`. Large HTTP payloads can be diverted to temporary files. See `iodine -h` and load-test your chosen limits and timeouts.
|
|
150
150
|
|
|
151
151
|
## Tune Workers and Threads for Your Workload
|
|
152
152
|
|
data/exe/iodine
CHANGED
|
@@ -95,11 +95,11 @@ module Iodine
|
|
|
95
95
|
Iodine.stop
|
|
96
96
|
raise e
|
|
97
97
|
end
|
|
98
|
-
# Returns
|
|
98
|
+
# Returns the routing map (the NeoRack Application is mapped to '/'), or `nil` if nothing was mapped (no `run`).
|
|
99
99
|
def app
|
|
100
100
|
@map ||= {}
|
|
101
|
-
@map['/'] ||= @app
|
|
102
|
-
@map
|
|
101
|
+
@map['/'] ||= @app if @app
|
|
102
|
+
@map.empty? ? nil : @map
|
|
103
103
|
end
|
|
104
104
|
# validate name of Web Application configuration file.
|
|
105
105
|
def self.iodine___detect_filename
|
|
@@ -166,8 +166,8 @@ module Iodine
|
|
|
166
166
|
Process.kill("TERM", root_pid)
|
|
167
167
|
raise(err)
|
|
168
168
|
end
|
|
169
|
-
if app
|
|
170
|
-
app.each {|k,v| listener.map(k,v) }
|
|
169
|
+
if app.is_a?(Hash)
|
|
170
|
+
app.each {|k,v| listener.map(k,v) if v }
|
|
171
171
|
elsif app
|
|
172
172
|
listener.map nil, app
|
|
173
173
|
else
|