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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d95676a331273b8afbe6f83ed5349e515ff7631d3217df6338b79f2e6e125f4f
4
- data.tar.gz: 18b6632417f91ff8795d9e2b755dea4cd4c0f0eddfec10afa9a375c9ba717a13
3
+ metadata.gz: 3195a1503417b8ac4ce8dc345ad7263ceacde2d473229ccbc1ad5b1c18e3a2e4
4
+ data.tar.gz: cf9b94c789e85c2b05fc3e9eea1c4f4ef4773b6f29fec0bdbf58256e73fbe280
5
5
  SHA512:
6
- metadata.gz: db9e521ff4185fd17012c8beaf62e11d440469116c77a02b246c4b675e4abab3d3f863985f4a55c99908cffeec2f500298f2bbffb803f4fabcf41934ca1774b3
7
- data.tar.gz: d6686f41f63a610a7a66eaf3f476e8e5a0d0de3a8e387fc70a972969b95690170c82e8d5f1ae06d05afc38a8dc69c4ff1c0dffe0f1604cb299458d954c958600
6
+ metadata.gz: 9d3236c5f6db00ff7baf430811d34c1d2eb10be68a9cc7ed69c3463dc637528a6fd9d2b9433c3b94dd36c014bb2413b07366bbd9ebfce364527921a18a5db9b1
7
+ data.tar.gz: c40045da1746f9aea76bb658e8a309921e80becdae9979d8adaa7989d018f96564870145ac72a9a8af38b20a7dce3c661b13b9a53ca1352de6af3cc7ea2828af
@@ -42,6 +42,8 @@ jobs:
42
42
  steps:
43
43
  - name: Checkout current code
44
44
  uses: actions/checkout@v6
45
+ with:
46
+ ref: main
45
47
 
46
48
  - name: Set up Ruby
47
49
  uses: ruby/setup-ruby@v1
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": "localhost",
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": "localhost",
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. The new `http` configuration takes precedence when both are present.
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(:http, key) ||
188
- EventHub::Configuration.server.dig(:heartbeat, key)
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: "localhost",
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: "localhost",
151
+ bind_address: "0.0.0.0",
152
152
  port: 8080,
153
153
  path: "/svc/#{@name}/heartbeat"
154
154
  }
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = "1.26.1".freeze
2
+ VERSION = "1.26.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventhub-processor2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.1
4
+ version: 1.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas