flyte icon indicating copy to clipboard operation
flyte copied to clipboard

Cryptographic audit trails for AI workflow compliance

Open jagmarques opened this issue 8 months ago • 6 comments

Flyte orchestrates AI workflows with data, models, and compute. In regulated environments, teams need more than execution logs - they need provable, tamper-proof records of what ran, with what data, and what the outputs were.

asqav adds cryptographic signatures to workflow steps. Each task execution gets a signed record - useful for proving to auditors that a model training run or data processing step happened exactly as reported.

Could integrate as a Flyte plugin that wraps task execution with signed audit records, especially useful for ML pipelines in finance and healthcare.

jagmarques avatar Mar 24 '26 20:03 jagmarques

It seems likely that Flyte already provides strong data lineage, versioning, and audit trails for workflow executions, including capturing inputs, outputs, and metadata for each task and workflow run. However, Flyte's built-in audit trail is not explicitly described as cryptographically tamper-proof or signed; it focuses on immutability, reproducibility, and traceability by storing execution artifacts and metadata in object storage and catalog systems, with each execution being versioned and immutable. This provides a robust audit trail, but not cryptographic guarantees out of the box. See Using Flyte to Power MLOps at Striveworks, Build Indestructible Pipelines With Flyte, and Declarative Infrastructure: The Power of Unmatched Reliability.

Integrating a system like asqav as a Flyte plugin to add cryptographic signatures to each task execution is not described in the current data sources, but Flyte's plugin architecture is designed for extensibility, including custom task plugins and backend plugins. This suggests that such an integration is feasible, especially for regulated environments needing cryptographically signed audit trails, but there is no official or community-supported plugin for this purpose documented yet. See Extending Flyte.

Would you like more detail on Flyte's existing audit and lineage features, or on how to build a custom plugin for cryptographic audit trails?

Sources:


This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.

Mention @runllm to ask follow-up questions. See runllm.com for more!

runllm avatar Mar 24 '26 20:03 runllm

Hi,

This idea looks really interesting, especially for compliance use cases.

I’m interested in contributing to this. Would it be okay to start by exploring a minimal prototype or plugin approach for adding signed audit records to task executions?

Any guidance on where this could fit best in Flyte’s architecture would be really helpful.

Thanks!

muskan-creates352 avatar Apr 26 '26 06:04 muskan-creates352

Hi @muskan-creates352, yes please go for it.

Cleanest fit is a flytekit decorator wrapping @task that emits signed receipts at the queued/started/finished hooks. The Asqav SDK already does the signing (pip install asqav, free tier is enough for a spike): https://github.com/jagmarques/asqav-sdk

Happy to review a draft PR.

jagmarques avatar Apr 26 '26 07:04 jagmarques

#take

falloficaruss avatar Jun 24 '26 11:06 falloficaruss

@jagmarques Since no PR was raised by @muskan-creates352 , I have implemented the asqav audit plugin You may review it

falloficaruss avatar Jun 24 '26 13:06 falloficaruss

@falloficaruss thank you for picking this up and shipping a full implementation. The PR is at flyteorg/flytekit#3447. We left a detailed review there with a couple of items worth addressing before merge. Happy to help land it.

jagmarques avatar Jun 24 '26 14:06 jagmarques