Dataflow Policy

Checks a Prism dataflow project script against its declared memory and PII-encryption policies and prints the canonical project.

People who write Prism dataflow project scripts.

  1. Start the script with the header dataflow-policy/1.
  2. Write one statement per line; the statement reference lists all five forms.
  3. Check the project and read the status line first.
  4. Every error and finding code below has an explanation and a fix.

Loading the checker.

Raw request

Statement reference

node NAME KIND MEMORY

Declares a node; KIND is input, operator, encrypt or output and MEMORY is the bytes it requires.

edge SOURCE TARGET

Adds a dataflow edge between two nodes declared on earlier lines.

pii NAME

Marks an input node as carrying personal data.

policy memory LIMIT

No node may require more than LIMIT bytes.

policy encrypt-pii

Personal data must pass an encrypt node before it reaches any output.