Skip to content

Conversation

@prakharcode
Copy link
Contributor

@prakharcode prakharcode commented Sep 24, 2025

closes: #51304

As describe in the issue, the createUserJob fails on the new standalone installation on helm.
This is because the createUserJob only checks in the setting for defaultUser.enabled in webserver. This value check while being perfectly fine for older versions of airflow, created a bit of confusion for newer versions where you just put webserver.enable: false and expect nothing to be coupled with other deployments.
Particularly, deployment trying to use simple_auth get an "unwanted" createUserJob which always fails.

To make the creation of createUserJob explicit, I have included another value which explicitly sets enabled: true | false.
This should make things clear and init control (a bit) independent.


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

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Sep 24, 2025
@shahar1 shahar1 changed the title [fix]: Creating an explicit control for createUserJob Create an explicit control for createUserJob Sep 24, 2025
@prakharcode
Copy link
Contributor Author

@hussein-awala can you take a look here ?

@prakharcode
Copy link
Contributor Author

@jedcunningham can you take a look here?

Copy link
Contributor

@Miretpl Miretpl left a comment

Choose a reason for hiding this comment

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

Could you add a test case for it?

@prakharcode
Copy link
Contributor Author

@Miretpl I will add a test for it today

@Miretpl
Copy link
Contributor

Miretpl commented Nov 25, 2025

@prakharcode to me the change looks good now.

@jedcunningham @hussein-awala @jscheffl could you take a look in a free moment?

@prakharcode
Copy link
Contributor Author

@Miretpl @jedcunningham @jscheffl can we move the PR forward?

@Miretpl
Copy link
Contributor

Miretpl commented Dec 5, 2025

@prakharcode I can't do much more really, cause I'm not able to merge the change to the repository. Just be patient till one of the PMC members takes a look.

@potiuk potiuk merged commit 908e6c2 into apache:main Dec 7, 2025
85 checks passed
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Dec 8, 2025
* [fix]: Creating an explicit control for createUserJob

* added tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airflow v3 user creation command fails

4 participants