legion-transport 1.4.24 → 1.4.25

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: 9dbb99fd575325dfdccd23836ec69ae6fd3b931d3a57c7159cec211b61b7caac
4
- data.tar.gz: 66c2f33752023d583eaf07ebd8c437863c1355409aff0fa9e5a92d1c7e95455e
3
+ metadata.gz: b3257739440ff409750a6b555beeda06961106a34550640aba80d25047a89682
4
+ data.tar.gz: 205dd2249629c4ded7831cd2e3c46b461deb26dc58ee23e6ca0b0d404c08e19b
5
5
  SHA512:
6
- metadata.gz: 11c1c2451dc9bca677ba8abf01890fe05d4e1692d3cdd7d4c87a9fa953267fd73017b74f7210faddd901da9ac28f28cba4d46e3b2242a6c74a814ab32f170606
7
- data.tar.gz: 0d95280b4c5d4b147735037962a2cac2cd4f41308a21143ade1f69d1360fc8b9131dbd465a073de8bdb7d5626740d996c330f403d1beac14610390bb337829c5
6
+ metadata.gz: 597ab35e69a59cf40b8d99f4d2cd17234f60104140cf83fa37594e2894002b30ae4f04a9beaa5873f56db4258d671ee4241e81dd4158455363f6b2f0189a4b8d
7
+ data.tar.gz: f5552c15fe1463f572c960823bf9e02cec9605048909c1ba5c33c4dba384cd11369fbf3b3018dff2d8289e5a47a10ee3ba8564b921e2bd30992a04356ce5a297
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.4.25] - 2026-05-15
6
+
7
+ ### Added
8
+ - `Message#identity_headers` now emits `x-legion-identity-db-principal-id` and `x-legion-identity-db-identity-id` as integer AMQP headers when non-nil, enabling downstream consumers (e.g. legion-apollo `inject_identity_context`) to use the DB primary keys without string parsing. Nil values are omitted.
9
+
5
10
  ## [1.4.24] - 2026-05-11
6
11
 
7
12
  ### Fixed
@@ -326,7 +326,7 @@ module Legion
326
326
 
327
327
  def identity_headers
328
328
  id = Legion::Identity::Process.identity_hash
329
- {
329
+ headers = {
330
330
  'x-legion-identity-canonical-name' => id[:canonical_name].to_s,
331
331
  'x-legion-identity-trust' => id[:trust].to_s,
332
332
  'x-legion-identity-id' => id[:id].to_s,
@@ -334,6 +334,9 @@ module Legion
334
334
  'x-legion-identity-mode' => id[:mode].to_s,
335
335
  'x-legion-identity-source' => id[:source].to_s
336
336
  }
337
+ headers['x-legion-identity-db-principal-id'] = id[:db_principal_id] if id[:db_principal_id]
338
+ headers['x-legion-identity-db-identity-id'] = id[:db_identity_id] if id[:db_identity_id]
339
+ headers
337
340
  end
338
341
 
339
342
  def inject_identity_headers
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Transport
5
- VERSION = '1.4.24'
5
+ VERSION = '1.4.25'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.24
4
+ version: 1.4.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity