@clef-sh/core 0.1.25 → 0.1.27-beta.189

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/dist/index.mjs CHANGED
@@ -8461,7 +8461,12 @@ var ArtifactPacker = class {
8461
8461
  ciphertext,
8462
8462
  envelope: {
8463
8463
  provider: kmsConfig.provider,
8464
- keyId: kmsConfig.keyId,
8464
+ // Prefer the provider's resolved key ARN over the manifest input.
8465
+ // The manifest may carry an alias ARN (which `kms:Encrypt` accepts
8466
+ // and silently resolves), but downstream `kms:CreateGrant` calls
8467
+ // reject aliases. Persisting the resolved ARN keeps the envelope
8468
+ // valid for grant minting and stable across alias re-targeting.
8469
+ keyId: wrapped.resolvedKeyId ?? kmsConfig.keyId,
8465
8470
  wrappedKey: wrapped.wrappedKey.toString("base64"),
8466
8471
  algorithm: wrapped.algorithm,
8467
8472
  iv: iv.toString("base64"),