eventhub-processor2 1.26.1 → 1.26.2
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/.github/workflows/02_test_build_and_release.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/README.md +5 -3
- data/lib/eventhub/actor_listener_http.rb +9 -2
- data/lib/eventhub/configuration.rb +2 -2
- data/lib/eventhub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3195a1503417b8ac4ce8dc345ad7263ceacde2d473229ccbc1ad5b1c18e3a2e4
|
|
4
|
+
data.tar.gz: cf9b94c789e85c2b05fc3e9eea1c4f4ef4773b6f29fec0bdbf58256e73fbe280
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d3236c5f6db00ff7baf430811d34c1d2eb10be68a9cc7ed69c3463dc637528a6fd9d2b9433c3b94dd36c014bb2413b07366bbd9ebfce364527921a18a5db9b1
|
|
7
|
+
data.tar.gz: c40045da1746f9aea76bb658e8a309921e80becdae9979d8adaa7989d018f96564870145ac72a9a8af38b20a7dce3c661b13b9a53ca1352de6af3cc7ea2828af
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog of EventHub::Processor2
|
|
2
2
|
|
|
3
|
+
# 1.26.2 / 2026-03-25
|
|
4
|
+
|
|
5
|
+
* Change default `http.bind_address` from `localhost` to `0.0.0.0` for container compatibility (ECS, Docker, K8s)
|
|
6
|
+
* Add deprecation warning when legacy `heartbeat` configuration block is used
|
|
7
|
+
|
|
3
8
|
# 1.26.1 / 2026-03-20
|
|
4
9
|
|
|
5
10
|
* Show only processor name in browser tab title
|
data/README.md
CHANGED
|
@@ -204,7 +204,7 @@ If --config option is not provided processor tries to load config/{class_name}.j
|
|
|
204
204
|
"verify_peer": false,
|
|
205
205
|
"show_bunny_logs": false,
|
|
206
206
|
"http": {
|
|
207
|
-
"bind_address": "
|
|
207
|
+
"bind_address": "0.0.0.0",
|
|
208
208
|
"port": 8080,
|
|
209
209
|
"base_path": "/svc/{class_name}"
|
|
210
210
|
}
|
|
@@ -307,7 +307,7 @@ Processor2 exposes HTTP resources for health checks and monitoring. All resource
|
|
|
307
307
|
{
|
|
308
308
|
"server": {
|
|
309
309
|
"http": {
|
|
310
|
-
"bind_address": "
|
|
310
|
+
"bind_address": "0.0.0.0",
|
|
311
311
|
"port": 8080,
|
|
312
312
|
"base_path": "/svc/{class_name}"
|
|
313
313
|
}
|
|
@@ -315,6 +315,8 @@ Processor2 exposes HTTP resources for health checks and monitoring. All resource
|
|
|
315
315
|
}
|
|
316
316
|
```
|
|
317
317
|
|
|
318
|
+
The default `bind_address` is `0.0.0.0` (all interfaces), which is required for containerized deployments (ECS, Docker, K8s) where health checks come from outside the container.
|
|
319
|
+
|
|
318
320
|
Resources are mounted under the `base_path`:
|
|
319
321
|
- `{base_path}/heartbeat` - Health check
|
|
320
322
|
- `{base_path}/version` - Version info as JSON
|
|
@@ -325,7 +327,7 @@ Resources are mounted under the `base_path`:
|
|
|
325
327
|
|
|
326
328
|
Accessing `{base_path}` or `{base_path}/` redirects to `{base_path}/docs`.
|
|
327
329
|
|
|
328
|
-
**Backward Compatibility:** If you have existing configuration using the old `heartbeat` block with `bind_address`, `port`, and `path`, it will continue to work.
|
|
330
|
+
**Backward Compatibility:** If you have existing configuration using the old `heartbeat` block with `bind_address`, `port`, and `path`, it will continue to work but will emit a deprecation warning. Please migrate to the `http` configuration block. The `heartbeat` block will be removed in a future major version.
|
|
329
331
|
|
|
330
332
|
### Heartbeat
|
|
331
333
|
|
|
@@ -184,8 +184,15 @@ module EventHub
|
|
|
184
184
|
|
|
185
185
|
def http_config(key)
|
|
186
186
|
# Try new http config first, fall back to deprecated heartbeat config
|
|
187
|
-
EventHub::Configuration.server.dig(:
|
|
188
|
-
|
|
187
|
+
heartbeat_value = EventHub::Configuration.server.dig(:heartbeat, key)
|
|
188
|
+
http_value = EventHub::Configuration.server.dig(:http, key)
|
|
189
|
+
|
|
190
|
+
if heartbeat_value && http_value != heartbeat_value
|
|
191
|
+
EventHub.logger.warn("[DEPRECATION] heartbeat.#{key} is deprecated. Please use http.#{key} instead.")
|
|
192
|
+
return heartbeat_value
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
http_value
|
|
189
196
|
end
|
|
190
197
|
|
|
191
198
|
def resource_enabled?(name)
|
|
@@ -138,7 +138,7 @@ module EventHub
|
|
|
138
138
|
verify_peer: false,
|
|
139
139
|
show_bunny_logs: false,
|
|
140
140
|
http: {
|
|
141
|
-
bind_address: "
|
|
141
|
+
bind_address: "0.0.0.0",
|
|
142
142
|
port: 8080,
|
|
143
143
|
base_path: "/svc/#{@name}",
|
|
144
144
|
docs: {
|
|
@@ -148,7 +148,7 @@ module EventHub
|
|
|
148
148
|
},
|
|
149
149
|
# deprecated: use http instead (kept for backward compatibility)
|
|
150
150
|
heartbeat: {
|
|
151
|
-
bind_address: "
|
|
151
|
+
bind_address: "0.0.0.0",
|
|
152
152
|
port: 8080,
|
|
153
153
|
path: "/svc/#{@name}/heartbeat"
|
|
154
154
|
}
|
data/lib/eventhub/version.rb
CHANGED