Skip to content

Conversation

jakedoublev
Copy link
Contributor

@jakedoublev jakedoublev commented Oct 6, 2025

  • send X-Rewrap-Additional-Context to KAS.Rewrap during decrypt from client config or reader config specified fulfillableObligationFQNs (with reader config obligations taking preference as most granular specificity)
  • access kas rewrap response responses > results > metadata for special obligations metadata key
  • merge/deduplicate obligations and surface them on TDF readers
  • provide reader with obligations() method that retrieves obligations through the rewrap flow

This comment was marked as resolved.

jakedoublev and others added 2 commits October 7, 2025 10:10
Signed-off-by: jakedoublev <[email protected]>
Signed-off-by: jakedoublev <[email protected]>
@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 2173ca8 to 2fe0892 Compare October 7, 2025 17:10
@jakedoublev jakedoublev changed the title feat(core): initial obligations support in rewrap flow feat(sdk): initial obligations support in rewrap flow Oct 8, 2025

This comment was marked as resolved.

Signed-off-by: jakedoublev <[email protected]>
@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 20c4c05 to 45c7127 Compare October 8, 2025 19:45

This comment was marked as resolved.

Signed-off-by: jakedoublev <[email protected]>
Signed-off-by: jakedoublev <[email protected]>
@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 7f6e8c0 to d1480b9 Compare October 8, 2025 22:34

This comment was marked as outdated.

Signed-off-by: jakedoublev <[email protected]>
@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 80ea30a to b19ec8e Compare October 8, 2025 22:37

This comment was marked as resolved.

@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 71084e3 to 8b3d2c0 Compare October 15, 2025 20:46

This comment was marked as resolved.

1 similar comment

This comment was marked as resolved.

This comment was marked as resolved.

Signed-off-by: jakedoublev <[email protected]>
@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 7b91fdd to ed3b4a5 Compare October 17, 2025 03:40
@jakedoublev
Copy link
Contributor Author

3/4 of the Sonarcloud issues are existing code I only touched, and the 4th asking for DRYness within the ZTDFReader and NanoTDFReader I would rather avoid because they satisfy the same interface but may differ in implementation as Nano is aligned with other ZTDF features like splits and streaming.

Copy link

If these changes look good, signoff on them with:

git pull && git commit --amend --signoff && git push --force-with-lease origin

If they aren't any good, please remove them with:

git pull && git reset --hard HEAD~1 && git push --force-with-lease origin

jakedoublev and others added 2 commits October 17, 2025 07:34
Signed-off-by: jakedoublev <[email protected]>
Signed-off-by: jakedoublev <[email protected]>
@jakedoublev jakedoublev force-pushed the feat/DSPX-1367-obligations branch from 98ca20b to bbebc87 Compare October 17, 2025 14:34
c-r33d
c-r33d previously approved these changes Oct 17, 2025
Copy link

@c-r33d c-r33d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to have Nick or Eugene review too, looks good to me.

eugenioenko
eugenioenko previously approved these changes Oct 17, 2025
Copy link
Contributor

@eugenioenko eugenioenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left small inline comments that can be addressed later on, non-blocking from merging

Copy link
Contributor

@ntrevino-virtru ntrevino-virtru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely seems fine, and like it will work. From an API standpoint, I'm not sure I'm fond of mixing setting this.requiredObligations in with a call to decrypt. I think it could always be cleaned up later though.

Copy link

@jakedoublev jakedoublev merged commit 0361361 into main Oct 17, 2025
17 checks passed
@jakedoublev jakedoublev deleted the feat/DSPX-1367-obligations branch October 17, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants