Skip to content

Fix impersonation_chain ignored by deferrable Beam Dataflow pipelines - #72146

Draft
rjgoyln wants to merge 1 commit into
apache:mainfrom
rjgoyln:fix/beam-deferrable-impersonation-chain
Draft

Fix impersonation_chain ignored by deferrable Beam Dataflow pipelines#72146
rjgoyln wants to merge 1 commit into
apache:mainfrom
rjgoyln:fix/beam-deferrable-impersonation-chain

Conversation

@rjgoyln

@rjgoyln rjgoyln commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

A Beam pipeline on the Dataflow runner honours the service account chain from dataflow_config only until it defers: the trigger polls through a hook of its own, and neither impersonation_chain nor poll_sleep ever reached it. Impersonating deployments watch the job launch and then fail with a permission error the moment the task defers, which reads as a Dataflow problem rather than an Airflow one.

The report names the Java operator; the Python one builds its trigger the same way. Both trigger classes have accepted these arguments since before the DataflowJobStateCompleteTrigger compatibility branch existed, so the older-provider fallback is safe.

closes: #72135


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

Once a Beam pipeline on the Dataflow runner defers, the trigger polls the
job through a hook of its own. It was built only from operator-level
fields, so the service account the user asked for in dataflow_config never
reached it and polling fell back to the connection's own identity —
pipelines that depend on impersonation failed with permission errors the
moment they deferred, even though the synchronous path worked. The
configured poll interval was dropped the same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BeamRunJavaPipelineOperator deferrable impersonation chain issue

1 participant