Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

closes: #58313

Restore backward compatibility for connections stored in secrets backends that don't include the conn_type field. In Airflow 2, connections without conn_type worked correctly (with conn_type=None), but recently we introduced
a validation check that required conn_type, breaking existing secrets backend configurations.

This change removes the ValueError check in Connection.from_json() that was preventing connections without conn_type from being deserialized, allowing them to work as they did in Airflow 2.

P.S: I do not know why I even added that check in the first place tbh.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@amoghrajesh
Copy link
Contributor Author

Issue for further steps: #58529

@amoghrajesh amoghrajesh requested a review from potiuk November 20, 2025 16:27
@amoghrajesh amoghrajesh self-assigned this Nov 20, 2025
@amoghrajesh amoghrajesh added this to the Airflow 3.1.4 milestone Nov 20, 2025
Copy link

@bmanan7 bmanan7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amoghrajesh
Copy link
Contributor Author

Since the reporter is happy, @potiuk can I get a binding review?

@potiuk potiuk added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Nov 24, 2025
@amoghrajesh amoghrajesh merged commit 762423c into apache:main Nov 25, 2025
85 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 25, 2025
…n_type (#58528)

(cherry picked from commit 762423c)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Nov 25, 2025
…n_type (apache#58528)

(cherry picked from commit 762423c)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:task-sdk backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airflow 3 fails to retrieve AWS Secret without conn_type defined (works in Airflow 2)

3 participants