Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Mar 27, 2025

Currently, even the default backend is only loaded when the supervise process is called via initialize_secrets_backend_on_workers. This makes it difficult to test any operator without calling that function.

The changes in this commit unifies how we handle it to the 2.x side and on the API-server side.

https://github.com/apache/airflow/blob/2.10.5/airflow/models/connection.py#L524-L536


^ 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.

Currently, even the default backend is only loaded when the supervise process is called via initialize_secrets_backend_on_workers. This makes it difficult to test any operator without calling that function.

The changes in this commit unifies how we handle it to the 2.x side and on the API-server side.

https://github.com/apache/airflow/blob/2.10.5/airflow/models/connection.py#L524-L536
@kaxil kaxil merged commit 72d94ac into apache:main Mar 27, 2025
61 checks passed
@kaxil kaxil deleted the simplify-secrets-backends branch March 27, 2025 15:49
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Yeah parity with AF 2 is always good, thanks!

pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
Currently, even the default backend is only loaded when the supervise process is called via initialize_secrets_backend_on_workers. This makes it difficult to test any operator without calling that function.

The changes in this commit unifies how we handle it to the 2.x side and on the API-server side.

https://github.com/apache/airflow/blob/2.10.5/airflow/models/connection.py#L524-L536
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Apr 2, 2025
Currently, even the default backend is only loaded when the supervise process is called via initialize_secrets_backend_on_workers. This makes it difficult to test any operator without calling that function.

The changes in this commit unifies how we handle it to the 2.x side and on the API-server side.

https://github.com/apache/airflow/blob/2.10.5/airflow/models/connection.py#L524-L536
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
Currently, even the default backend is only loaded when the supervise process is called via initialize_secrets_backend_on_workers. This makes it difficult to test any operator without calling that function.

The changes in this commit unifies how we handle it to the 2.x side and on the API-server side.

https://github.com/apache/airflow/blob/2.10.5/airflow/models/connection.py#L524-L536
simonprydden pushed a commit to simonprydden/airflow that referenced this pull request Apr 8, 2025
Currently, even the default backend is only loaded when the supervise process is called via initialize_secrets_backend_on_workers. This makes it difficult to test any operator without calling that function.

The changes in this commit unifies how we handle it to the 2.x side and on the API-server side.

https://github.com/apache/airflow/blob/2.10.5/airflow/models/connection.py#L524-L536
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.

4 participants