Skip to content

Commit

Permalink
adding NanoTDF support
Browse files Browse the repository at this point in the history
  • Loading branch information
ttschampel committed Jun 5, 2024
1 parent 094f500 commit 756c532
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,55 @@ Components:
* [OpenTDFControllerService](./nifi-tdf-controller-services-api/src/main/java/io/opentdf/nifi/OpenTDFControllerService.java): A NiFi controller service providing OpenTDF Platform Configuration


#### FlowChart: Generic Plaintext to ZTDF Nifi Flow
#### FlowChart: Generic ZTDF Nifi Flows

```mermaid
---
title: Generic Plaintext to ZTDF NiFi Flow
title: Generic ZTDF NiFi Flows
---
flowchart TD
a[FlowFile: \nPlaintext content]
a[Nifi Processor]
b["`**UpdateAttribute**`" Add data policy attributes to FlowFile]
c["`**ConvertToZTDF**`"]
d["Process ZTDF"]
e["Handle Error"]
a -- success --> b
b -- success --> c
f[Nifi Processor]
g["`**ConvertFromZTDF**`"]
h[Process Plaintext]
i[Handle Error]
a -- success (content = PlainText) --> b
b -- success (content = PlainText) --> c
c -- success (content = ZTDF) --> d
c -- failure --> e
f -- success (content = ZTDF) --> g
g -- success (content = PlainText) --> h
g -- failure --> i
```

#### FlowChart: Generic ZTDF to Plaintext Nifi Flow
#### FlowChart: Generic NanoTDF NiFi Flows
```mermaid
---
title: Generic ZTDF to Plaintext Nifi Flow
title: Generic NanoTDF NiFi Flows
---
flowchart TD
a[FlowFile: \nZTDF content]
b["`**ConvertFromZTDF**`"]
c["Process ZTDF"]
d["Handle Error"]
a -- success --> b
b -- success (content = plaintext) --> c
b -- failure --> d
a[Nifi Processor]
b["`**UpdateAttribute**`" Add data policy attributes to FlowFile]
c["`**ConvertToNanoTDF**`"]
d["Process NanoTDF"]
e["Handle Error"]
e2["Handle Max Size Error"]
f[Nifi Processor]
g["`**ConvertFromZTDF**`"]
h[Process Plaintext]
i[Handle Error]
a -- success (content = Plaintext) --> b
b -- success (content = Plaintext)--> c
c -- success (content = NanoTDF) --> d
c -- failure --> e
c -- exceeds_size_limit --> e2
f -- success (content = NanoTDF) --> g
g -- success (content = Plaintext) --> h
g -- failure --> i
```

# Quick Start - Docker Compose
Expand Down

0 comments on commit 756c532

Please sign in to comment.