iodine 0.8.3 → 0.8.5
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 +41 -1
- data/README.md +1 -1
- data/exe/iodine +5 -5
- data/ext/iodine/fio-stl.h +20676 -15830
- data/ext/iodine/fio-stl.md +6809 -932
- data/ext/iodine/iodine_cli.h +4 -0
- data/ext/iodine/iodine_connection.h +25 -17
- data/ext/iodine/iodine_crypto.h +159 -37
- data/ext/iodine/iodine_listener.h +2 -1
- data/ext/iodine/iodine_minimap.h +2 -2
- data/ext/iodine/iodine_params.h +14 -7
- data/ext/iodine/iodine_tls.h +21 -7
- data/ext/iodine/iodine_utils.h +35 -19
- data/lib/iodine/benchmark.rb +20 -3
- data/lib/iodine/documentation.rb +169 -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: a93e062310eea6dc1375a7b4ae65879f2650830e861b249c5b9e594f93c5cc2e
|
|
4
|
+
data.tar.gz: 60f6946949c76161446694fbb2e501a1ed14c00f0eb57ad856164145103059e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bcf4e2802b3776e3db522c4f8af42510fe8db84e85afaea1e3e3984c9902bf6adbaa52b87016e0fba7d7daf7c7474b2237fda2731afdd2cd0e35057c94e9fae
|
|
7
|
+
data.tar.gz: f5add513aa84de7938426065a967a5251c93b28018514e54d4b4108e86698da90a901a8a24ad30431f83cc397964840aeef5a94719c082f0057d7fc2023524a1
|
data/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,52 @@ 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.5 - 2026-11-07
|
|
11
|
+
|
|
12
|
+
**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).
|
|
13
|
+
|
|
14
|
+
**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`).
|
|
15
|
+
|
|
16
|
+
**Feature**: `Iodine::Connection#local_addr` returns the local socket address (HTTP, WebSocket, SSE and raw connections).
|
|
17
|
+
|
|
18
|
+
**Feature**: (`cli`) `--max-params` / `-maxpr` sets the request params field limit (query pairs, form fields and multipart parts; default 4096).
|
|
19
|
+
|
|
20
|
+
**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.
|
|
21
|
+
|
|
22
|
+
**Fix**: `Iodine::Listener#map(nil, handler)` sets the default (root) handler instead of crashing.
|
|
23
|
+
|
|
24
|
+
**Fix**: (`cli`) a NeoRack app file without `run` reports "Web App not found" instead of crashing; route maps without a root application are supported.
|
|
25
|
+
|
|
26
|
+
**Fix**: `Iodine::Base::MiniMap` accepts `true`, `false` and `nil` keys, as intended.
|
|
27
|
+
|
|
28
|
+
**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`.
|
|
29
|
+
|
|
30
|
+
**Docs**: `Iodine::TLS#add_cert` documents SNI certificate selection, self-signed certificates and client certificates (mutual TLS).
|
|
31
|
+
|
|
32
|
+
[facil.io C STL](https://github.com/facil-io/cstl) updates:
|
|
33
|
+
|
|
34
|
+
**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.
|
|
35
|
+
|
|
36
|
+
**Security**: (`listen`) a listen URL without a port (e.g., `localhost?tls`) keeps its TLS hints instead of serving plaintext.
|
|
37
|
+
|
|
38
|
+
**Fix**: idle servers no longer burn CPU, and raw TLS listeners no longer close every accepted connection.
|
|
39
|
+
|
|
40
|
+
**Fix**: (`openssl`) data buffered inside OpenSSL is read at once, instead of waiting for more bytes on the socket.
|
|
41
|
+
|
|
42
|
+
**Fix**: (`brotli`) RFC 7932 conformance: inputs over 16MB at quality 5-6 now compress correctly, and invalid streams are rejected.
|
|
43
|
+
|
|
44
|
+
**Fix**: string replacement, Base32 decoding and HTML unescaping work when the source overlaps the destination; Windows multi-file builds link.
|
|
45
|
+
|
|
46
|
+
#### 0.8.4 - 2026-11-02
|
|
11
47
|
|
|
12
48
|
[facil.io C STL](https://github.com/facil-io/cstl) updates:
|
|
13
49
|
|
|
14
50
|
**API**: (`http`) the HTTP params helpers now follow the NeoRack `params` extension, including its conflict-resolution rules: `fio_http_query_parse` parses the query string, `fio_http_body_parse` parses URL-encoded, multipart and JSON bodies, and `fio_http_params_parse` parses the query and then the body into a single map. Query and form names use dot / bracket paths (`a.b`, `a[b]`, terminal `[]`), repeated scalars become Arrays in arrival order, maps merge, and scalar/map conflicts nest the scalar under the empty-string key. Multipart file uploads stream in chunks and fields are limited by the new `fio_http_settings_s.max_params` (default `FIO_HTTP_PARAMS_MAX_FIELDS`, 4096).
|
|
15
51
|
|
|
52
|
+
**Security**: security fixes and hardening.
|
|
53
|
+
|
|
54
|
+
#### 0.8.3 - 2026-10-26
|
|
55
|
+
|
|
16
56
|
**API**: (`fiobj`) `FIOBJ_T_DATA` objects now carry upload metadata: `fiobj_data_filename`, `fiobj_data_type` and `fiobj_data_headers` (and their setters). `fio_http_params2FIOBJ` returns the request params as a FIOBJ Hash, with file uploads stored as Data objects.
|
|
17
57
|
|
|
18
58
|
**API**: (`json`) the JSON parser callback contract was reworked to support conflict resolution: containers are placed in their parent when opened (`on_map` / `on_array` receive a borrowed `fio_buf_info_s` key and may report a replaced value through `void **old`), `map_push` receives a borrowed key, and the new `is_map` / `is_array` callbacks support `fio_json_parse_update` and the conflict-resolution helpers. `Iodine::JSON` keeps last-wins semantics, matching the FIOBJ parser.
|
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
|