secretspec 0.15.0-aarch64-linux → 0.16.0-aarch64-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: 484bf966477a3487bb050be087bf0698c47ea1b58dda9322d91810e50d40c6e7
4
- data.tar.gz: c92791c8306b24552d7f3d10ab3f7e862fd35525298ec49f9e80996eedf71671
3
+ metadata.gz: 776b23b5098306f53c300d556ae5921a2c61096e55c7c43fc4c3519c7870a962
4
+ data.tar.gz: 5ce2e9b49108d315d1d7588a70bf3d1f76311adf447d42b7cf8635f35751b724
5
5
  SHA512:
6
- metadata.gz: 39a5d5ba838d8e0d216f9649b3edd1b9076ae991172476d2282d437b3100bedcbf9f1edb6fa174bd807759282bf726d234c0ff57c840674c395baa5ced82623d
7
- data.tar.gz: b516fa46336f3e1f90f3ab0fe25de7734ab6a02bcefafcb32d3bfa19c235f05d8221c9d37d6e882da73e08bd8d8fb10049a047836afc51bd0dddeb3d2557eb02
6
+ metadata.gz: e384fd2b953f4f0179d2ea86507f381966c5be3fd2711cee32a79d5ba8f20ab0f64121af05d1fa511a1eb50dd2bf7f353ea1d322a1e1c7865099b039ff74739d
7
+ data.tar.gz: c3792261d7be630c3905a0046feb441d25b7d58382bc5374f7f63414ccc94e8720e0e2e1524e315902dc53f16f6855128e68b25d8ca07954ce9dd91282a3de1d
data/lib/secretspec.rb CHANGED
@@ -19,7 +19,7 @@ require "secretspec/secretspec_ext"
19
19
  module Secretspec
20
20
  # Response wire-format version this SDK understands. Tracks secretspec-ffi's
21
21
  # RESOLVE_SCHEMA_VERSION; a mismatch means the loaded library is incompatible.
22
- RESOLVE_SCHEMA_VERSION = 1
22
+ RESOLVE_SCHEMA_VERSION = 2
23
23
 
24
24
  # Wire-format version of the value-free report. Tracks secretspec's
25
25
  # RESOLUTION_REPORT_SCHEMA_VERSION.
Binary file
data/vendor/secretspec.h CHANGED
@@ -7,14 +7,37 @@
7
7
  *
8
8
  * Request JSON (all fields optional):
9
9
  * { "path": ".../secretspec.toml", "provider": "keyring://",
10
- * "profile": "production", "reason": "boot", "no_values": false }
10
+ * "profile": "production", "reason": "boot", "no_values": false,
11
+ * "mode": "resolve" }
12
+ *
13
+ * "mode" selects the response shape and defaults to "resolve":
14
+ *
15
+ * "resolve" the value-carrying resolve response. Set "no_values" to strip
16
+ * the values from it.
17
+ * "report" the value-free resolution report: the inventory/preflight view
18
+ * the CLI exposes as `check --json`.
19
+ *
20
+ * Any other value is rejected with an "invalid_request" error.
21
+ *
22
+ * "no_values" is NOT the same as "mode": "report". A "no_values" resolve blanks
23
+ * the values but keeps the resolve shape: its "secrets" is an object keyed by
24
+ * name, it never says whether a secret is *declared* required, and when a
25
+ * required secret is missing that object is empty. A report's "secrets" is an
26
+ * ARRAY of per-secret entries carrying "name", "required", "status"
27
+ * ("resolved" / "missing_required" / "missing_optional") and provenance, and
28
+ * lists every declared secret whether or not it resolved. "required" is
29
+ * reachable only via "report".
11
30
  *
12
31
  * Response envelope:
13
- * { "ok": true, "response": { ...resolve response... } }
32
+ * { "ok": true, "response": { ...resolve response | resolution report... } }
14
33
  * { "ok": false, "error": { "kind": "io", "message": "..." } }
15
34
  *
16
- * The response (when ok) carries secret values unless "no_values" was set.
17
- * Treat returned strings as sensitive and free them promptly.
35
+ * "ok": false means the call itself failed (bad manifest, provider error,
36
+ * unknown "mode"); a missing required secret is a domain result reported inside
37
+ * an "ok": true response.
38
+ *
39
+ * A resolve response carries secret values unless "no_values" was set; a report
40
+ * never does. Treat returned strings as sensitive and free them promptly.
18
41
  */
19
42
  #ifndef SECRETSPEC_H
20
43
  #define SECRETSPEC_H
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secretspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Cachix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-16 00:00:00.000000000 Z
11
+ date: 2026-07-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Ruby bindings for SecretSpec: a native extension that statically links
14
14
  the secretspec-ffi C ABI.'