confium 0.6.1-x86_64-linux → 0.6.2-x86_64-linux

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: 89ed5a2d53e4f681e72e808764f2f74e7df11d2718b4fba69c242a02aedf0e03
4
- data.tar.gz: 7c343f5918b91fa767a5fb0e0df8905ad6b6049ee37eb50d7b0f1d96d9f8e20f
3
+ metadata.gz: 483fa8b781dec437fafbdfbc6fe06aa0891070c3b358c4ab2c4faa871651c253
4
+ data.tar.gz: 95702d7aae525a0e4fd0eedf87b3516c1b9400ef82b25561f18053e99d1a54c0
5
5
  SHA512:
6
- metadata.gz: eb9666adedf3f5427456d8cc05582b9a78e255a2558110d1da48287eb99c9a3aed1a608de9f44be767fe241fdf715c94ff3567594fe36f2c451b3ffee89612f4
7
- data.tar.gz: 2530edc4403831efaa8b2022591ece35fe570deb5a0263b02fb45a0661f14a4587fcba3c92f4e6d80846a819910c918ebae50d58c1fa21db986d7ab6a60b2409
6
+ metadata.gz: d55bc883f15562a231ab1281b4b83b9406bddb512350fd218b03e7c6522321f99c08d7060d386a000d88264ec68bf3a4c77fd61315a01b8db6ede8005e600995
7
+ data.tar.gz: 34c3f2807a7ba4fb9de549cf58b38c4f15ec6fb75b7fe6e65994ba16ee628fb84b67637c7c834acd4b37aef95f4230cba03164f180a20d2fa1627148b36c0349
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.2] — 2026-08-26
4
+
5
+ ### Added
6
+
7
+ - `Confium::Store::Keystore` — Ruby surface for the store layer and
8
+ the sign-with-handle contract: `.new(backend, options)`,
9
+ `#sign(key_id, algorithm, message)` returning binary signature
10
+ bytes, plus `Confium::Store.backends`. Local backends raise a
11
+ typed `Confium::Error` for `#sign`; remote-holding backends (cloud
12
+ KMS) come via source builds that opt into their cargo features
13
+ (confium-store 0.5.8). `Confium::Error` now also accepts the
14
+ positional details-Hash form every typed subclass already accepts,
15
+ so native-constructed base errors carry `details` too.
16
+
3
17
  ## [0.6.1] — 2026-08-25
4
18
 
5
19
  ### Changed
data/Cargo.lock CHANGED
@@ -290,7 +290,7 @@ dependencies = [
290
290
  "chrono",
291
291
  "confium-api",
292
292
  "confium-net",
293
- "confium-store",
293
+ "confium-store 0.3.0",
294
294
  "confium-tc-core",
295
295
  "data-encoding",
296
296
  "hex",
@@ -463,6 +463,16 @@ dependencies = [
463
463
  "snafu 0.8.9",
464
464
  ]
465
465
 
466
+ [[package]]
467
+ name = "confium-store"
468
+ version = "0.5.8"
469
+ source = "registry+https://github.com/rust-lang/crates.io-index"
470
+ checksum = "5559e7f26bcf9f6dd3a76cf7eb0cf0684966c504cf662efef14f69ade8103e26"
471
+ dependencies = [
472
+ "inventory",
473
+ "snafu 0.9.2",
474
+ ]
475
+
466
476
  [[package]]
467
477
  name = "confium-tc"
468
478
  version = "0.3.1"
@@ -473,7 +483,7 @@ dependencies = [
473
483
  "confium-api",
474
484
  "confium-coordinator",
475
485
  "confium-net",
476
- "confium-store",
486
+ "confium-store 0.3.0",
477
487
  "confium-tc-keys",
478
488
  "data-encoding",
479
489
  "hex",
@@ -527,7 +537,7 @@ dependencies = [
527
537
  "chrono",
528
538
  "confium-api",
529
539
  "confium-net",
530
- "confium-store",
540
+ "confium-store 0.3.0",
531
541
  "data-encoding",
532
542
  "hex",
533
543
  "hmac",
@@ -638,6 +648,7 @@ dependencies = [
638
648
  "confium-observability",
639
649
  "confium-pki",
640
650
  "confium-privacy",
651
+ "confium-store 0.5.8",
641
652
  "confium-tc",
642
653
  "confium-tc-cmp20",
643
654
  "confium-tc-core",
@@ -12,8 +12,17 @@ module Confium
12
12
  class Error < StandardError
13
13
  attr_reader :details
14
14
 
15
- def initialize(message = nil, details: {})
16
- @details = details.transform_keys(&:to_sym)
15
+ # The native extension constructs errors positionally
16
+ # (message, details_hash) — the same shape every typed subclass
17
+ # accepts via Errors::Coerce. Accepting it here keeps the whole
18
+ # family uniform; the keyword form still works.
19
+ def initialize(message = nil, details_hash = nil, details: {})
20
+ base = if details_hash.is_a?(Hash) && !details_hash.empty?
21
+ details_hash
22
+ else
23
+ details
24
+ end
25
+ @details = base.transform_keys(&:to_sym)
17
26
  super(message)
18
27
  end
19
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Confium
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Ribose Open
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-25 00:00:00.000000000 Z
11
+ date: 2026-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake