@opentdf/sdk 0.19.0 → 0.20.0-rc.183

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/tdf3/src/tdf.ts CHANGED
@@ -726,8 +726,13 @@ export function splitLookupTableFactory(
726
726
  for (const kao of keyAccess) {
727
727
  const disjunction = splitPotentials[kao.sid ?? ''];
728
728
  if (kao.url in disjunction) {
729
+ // TODO(DSPX-3454): Handle duplicate KAS URLs with different KIDs.
730
+ // Each KAO contains a KID - the function should be updated to use this
731
+ // information to differentiate between keys from the same KAS.
732
+ // Cross-SDK validation needed via xtest.
729
733
  throw new InvalidFileError(
730
- `TODO: Fallback to no split ids. Repetition found for [${kao.url}] on split [${kao.sid}]`
734
+ `Unable to decrypt: Multiple keys detected for Key Access Server [${kao.url}]. ` +
735
+ `Please contact your administrator.`
731
736
  );
732
737
  }
733
738
  if (allowed(kao)) {