Skip to content

[v3-3-test] Allow missing api_auth.jwt_secret for InProcessExecutionAPI (#68980) - #68982

Merged
ashb merged 1 commit into
v3-3-testfrom
backport-e886dfd-v3-3-test
Jun 25, 2026
Merged

[v3-3-test] Allow missing api_auth.jwt_secret for InProcessExecutionAPI (#68980)#68982
ashb merged 1 commit into
v3-3-testfrom
backport-e886dfd-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

PR #68840 fixed an issue where exceptions thrown by the FastAPI
lifecycle hook were swallowed. In doing so, it exposed a pre-existing
problem where the lifecycle hook couldn't run when the JWT secret was
not provided.

As the InProcessExecutionAPI overrides auth, it doesn't need a JWT
secret, and we certainly don't want to start crashing processes that
previously ran fine as a result of a missing secret that we don't need.

This commit stubs out the registered JWTValidator in the FastAPI app
created for the InProcessExecutionAPI. This is done in an isolated
services registry to ensure we don't leak this into any real app
instantiations.
(cherry picked from commit e886dfd)

Co-authored-by: Nick Stenning nick@whiteink.com

…onAPI` (#68980)
PR #68840 fixed an issue where exceptions thrown by the FastAPI
lifecycle hook were swallowed. In doing so, it exposed a pre-existing
problem where the lifecycle hook couldn't run when the JWT secret was
not provided.
As the `InProcessExecutionAPI` overrides auth, it doesn't need a JWT
secret, and we certainly don't want to start crashing processes that
previously ran fine as a result of a missing secret that we don't need.
This commit stubs out the registered `JWTValidator` in the FastAPI app
created for the `InProcessExecutionAPI`. This is done in an isolated
services registry to ensure we don't leak this into any real app
instantiations.
(cherry picked from commit e886dfd)
Co-authored-by: Nick Stenning <nick@whiteink.com>
@boring-cyborgboring-cyborgBot added area:API Airflow's REST/HTTP API area:task-sdk labels Jun 25, 2026
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review June 25, 2026 12:09
@vatsrahul1001vatsrahul1001 added this to the Airflow 3.3.0 milestone Jun 25, 2026
@vatsrahul1001vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Jun 25, 2026
@ashb
ashb merged commit eda27d1 into v3-3-testJun 25, 2026
121 of 127 checks passed
@ashb
ashb deleted the backport-e886dfd-v3-3-test branch June 25, 2026 16:46
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:APIAirflow's REST/HTTP APIarea:task-sdktype:bug-fixChangelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ashb@vatsrahul1001@nickstenning