sdtk-spec-kit 0.4.9 → 0.4.10
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.
package/package.json
CHANGED
package/src/lib/entitlements.js
CHANGED
|
@@ -31,11 +31,18 @@ function resolvePublicKey() {
|
|
|
31
31
|
return process.env.SDTK_ENTITLEMENT_PUBLIC_KEY;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
// Try bundled default
|
|
34
|
+
// Try bundled default.
|
|
35
|
+
// __dirname is <pkg>/src/lib and the key ships at <pkg>/assets/keys, so we
|
|
36
|
+
// must go up TWO levels (src/lib -> src -> <pkg>) before descending into
|
|
37
|
+
// assets/keys. A single ".." here was a latent bug that resolved to the
|
|
38
|
+
// non-existent <pkg>/src/assets/keys and returned null ("Trust root not
|
|
39
|
+
// configured"); it went unnoticed while manifests were signed with a
|
|
40
|
+
// placeholder that never reached signature verification.
|
|
35
41
|
try {
|
|
36
42
|
const bundledKeyPath = path.join(
|
|
37
43
|
__dirname,
|
|
38
44
|
"..",
|
|
45
|
+
"..",
|
|
39
46
|
"assets",
|
|
40
47
|
"keys",
|
|
41
48
|
"spec-entitlement-public.pem"
|