Skip to content

feat(docs): expand TDF documentation (DSPX-2427)#203

Draft
marythought wants to merge 17 commits intomainfrom
feat/dspx-2427-expand-tdf-docs
Draft

feat(docs): expand TDF documentation (DSPX-2427)#203
marythought wants to merge 17 commits intomainfrom
feat/dspx-2427-expand-tdf-docs

Conversation

@marythought
Copy link
Contributor

@marythought marythought commented Feb 27, 2026

Summary

  • expand docs/sdks/tdf.mdx from a minimal stub into a full TDF guide
  • add conceptual overview, format selection guidance (zTDF vs full TDF), and flow diagram
  • add ABAC usage guidance, error handling patterns, and best practices
  • link to related SDK docs for discovery, policy, troubleshooting, quickstarts, authorization, and OpenTDF schema

Preview

@marythought marythought requested a review from a team as a code owner February 27, 2026 18:51
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request dramatically enhances the OpenTDF SDK documentation by transforming a basic TDF guide into a detailed resource. It aims to provide developers with a deeper understanding of TDF encryption and decryption, covering conceptual foundations, practical implementation choices, and essential operational considerations like ABAC, error handling, and best practices. The update ensures that users have comprehensive information to effectively integrate and troubleshoot TDF within their applications.

Highlights

  • Documentation Expansion: The TDF documentation guide has been significantly expanded from a minimal stub into a comprehensive resource for developers.
  • Conceptual Guidance Added: New sections include a conceptual overview of TDF, guidance on choosing between zTDF and the full OpenTDF container format, and a detailed encryption/decryption flow diagram.
  • ABAC, Error Handling, and Best Practices: The guide now provides explicit guidance on ABAC usage, common error handling patterns, and a list of best practices for TDF implementation.
  • Related Documentation Links: Links to relevant SDK documentation for discovery, policy, troubleshooting, quickstarts, authorization, and the OpenTDF schema have been integrated.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • docs/sdks/tdf.mdx
    • Expanded the content from a minimal stub to a comprehensive guide.
    • Added sections on TDF encryption/decryption concepts, format selection, and flow diagrams.
    • Included guidance on ABAC usage, error handling patterns, and best practices.
    • Integrated links to related SDK documentation.
Activity
  • No human activity has occurred on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly expands the TDF documentation, transforming it from a minimal stub into a comprehensive guide. The new content includes a conceptual overview, guidance on choosing between zTDF and the full TDF format, a process flow diagram, and detailed sections on ABAC usage, decryption patterns, error handling, and best practices. The changes are well-structured and clear. I have identified a couple of potential broken links to other documents or code samples.

@marythought marythought marked this pull request as draft February 27, 2026 18:58
@marythought marythought marked this pull request as ready for review February 27, 2026 19:11
@marythought marythought changed the title feat(docs): expand TDF documentation guide (DSPX-2427) feat(docs): expand TDF documentation (DSPX-2427) Feb 27, 2026
@marythought marythought marked this pull request as draft February 27, 2026 21:00

| Operation | Java | TypeScript |
| --- | --- | --- |
| Encrypt | `createTDF` | `createZTDF` |
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there really a createZTDF function in OpenTDF? We should rename it. Open cannot create compliant ZTDFs
As a rule; OpenTDF platform does not natively create ZTDFs as outlined here that is a USP of DSP.

Also the DSP SDKs allow creation of ZTDF using a shared_services


```mermaid
flowchart TB
A["1. Plaintext input"] --> B["2. Create TDF or zTDF"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
A["1. Plaintext input"] --> B["2. Create TDF or zTDF"]
A["1. Plaintext input"] --> B["2. Create TDF"]

2. Attribute value set (policy scope).
3. Wrapping/encapsulation algorithm choice where supported.
4. Data handling model: in-memory vs stream/file.
5. Expected interoperability target (`zTDF` profile vs full container exchange).
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, if there are internal references to zTDF; we should scrub

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.

2 participants