Hi all,

I'd like to start a discussion about adding an OCI registry as a source for
Dag bundles in Airflow 3, next to the existing Local, Git and object
storage bundles. I opened a GitHub Discussion with the full proposal and a
small PoC, and I'm bringing it here because this is where proposals get
discussed:

https://github.com/apache/airflow/discussions/78109

The problem: many teams run in air-gapped, restricted or registry-centric
environments. Production clusters there can reach a container registry
(often a mirror), but not Git. Today the options are to bake Dags into the
Airflow image, which ties every Dag change to a rollout of Airflow itself,
or to use Git or object storage, which means opening another path into
production. Argo CD faced the same situation and added OCI as an
application source next to Git: Git stays the authoring system, and the
registry becomes the distribution channel.

What an OCI bundle would give:

- Immutable, versioned Dag artifacts with a content digest, the same
release discipline teams already use for images.
- No Git access from production, only the registry the cluster already
trusts.
- Refresh through a tracking tag without rebuilding or restarting Airflow,
and promotion between tags per team or per domain.

PoC: I built a custom OciDagBundle (BaseDagBundle subclass, about 50 lines)
and wired it through [dag_processor] dag_bundle_config_list with no core
changes. It ran locally on Airflow 3.1.6 with a local OCI registry and
LocalExecutor. Discovery, parsing, a triggered run, and a refresh after
pushing a new version to the same tag all worked. Not covered yet: registry
auth, digest-based versioning, signature verification, and
KubernetesExecutor.

I didn't find an existing issue or proposal for this. If I missed one,
please point me to it.

Questions I'd appreciate input on:

1. Is there interest in this as an official bundle, and would a new
provider be the right home for it?
2. Consistency: how should the Dag processor and workers resolve the same
digest for a run when a tag moves, and should get_current_version() report
the digest?
3. Should signature verification (cosign or Notation) be optional or
required?
4. Artifact layout: a single tar+gzip layer, a dedicated media type, or
both?
5. Registry authentication through Connections, including cloud workload
identity.

If the direction is welcome, I'm happy to contribute the implementation,
tests and docs.

Thanks,
Adir Atias


בברכה,

אדיר אטיאס
0503060971

Reply via email to