Skip to content

Conversation

@jedcunningham
Copy link
Member

This fixes the standalone command.

At the same time, it switches standalone to use SimpleAuthManager (and forces the use of standalone!).

Similar to before, if it's the first time you run, the username and password will be printed out - now just at the very top of the output (which honestly is a bit easier to see before a ton of lines start
flying by). However, it will only output the password once. On
subsequent starts, it will print the file that contains the file so you can go grab the password yourself if you need it. This was done since there isn't a trivial way to both use the same password with standalone and api-server directly and make sure we aren't outputting a password you've populated yourself.

On a fresh start:

standalone | Starting Airflow Standalone
Simple auth manager | Password for user 'admin': r9GPxU6cn8Y7u29x

On a subsequent start:

standalone | Starting Airflow Standalone
standalone | Password for the admin user has been previously generated in /Users/jedc/airflow/simple_auth_manager_passwords.json.generated. Not echoing it here.

@ashb
Copy link
Member

ashb commented Mar 21, 2025

Should we remove the big scary warning for this use case do you think?

This fixes the standalone command.

At the same time, it switches standalone to use SimpleAuthManager.
Similar to before, if it's the first time you run, the username and
password will be printed out - now just at the very top of the output
(which honestly is a bit easier to see before a ton of lines start
 flying by). However, it will only output the password once. On
subsequent starts, it will print the file that contains the file so you
can go grab the password yourself if you need it. This was done since
there isn't an easy way to both use the same password with standalone and
api-server directly and make sure we aren't outputting a password you've
populated yourself.
@jedcunningham
Copy link
Member Author

Should we remove the big scary warning for this use case do you think?

We can't today, unfortunately. But it probably should be toggle-able. If we do though, should be in a follow up.

If we have all_admins, what folks configure for users doesn't matter.
@jedcunningham jedcunningham merged commit 1428890 into apache:main Mar 21, 2025
61 checks passed
@jedcunningham jedcunningham deleted the fix_standalone branch March 21, 2025 15:29
agupta01 pushed a commit to agupta01/airflow that referenced this pull request Mar 21, 2025
This fixes the standalone command.

At the same time, it switches standalone to use SimpleAuthManager.
Similar to before, if it's the first time you run, the username and
password will be printed out - now just at the very top of the output
(which honestly is a bit easier to see before a ton of lines start
 flying by). However, it will only output the password once. On
subsequent starts, it will print the file that contains the file so you
can go grab the password yourself if you need it. This was done since
there isn't an easy way to both use the same password with standalone and
api-server directly and make sure we aren't outputting a password you've
populated yourself.
@potiuk
Copy link
Member

potiuk commented Mar 22, 2025

Nice!

shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Mar 22, 2025
This fixes the standalone command.

At the same time, it switches standalone to use SimpleAuthManager.
Similar to before, if it's the first time you run, the username and
password will be printed out - now just at the very top of the output
(which honestly is a bit easier to see before a ton of lines start
 flying by). However, it will only output the password once. On
subsequent starts, it will print the file that contains the file so you
can go grab the password yourself if you need it. This was done since
there isn't an easy way to both use the same password with standalone and
api-server directly and make sure we aren't outputting a password you've
populated yourself.
@stephanetrou stephanetrou mentioned this pull request Apr 1, 2025
2 tasks
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
This fixes the standalone command.

At the same time, it switches standalone to use SimpleAuthManager.
Similar to before, if it's the first time you run, the username and
password will be printed out - now just at the very top of the output
(which honestly is a bit easier to see before a ton of lines start
 flying by). However, it will only output the password once. On
subsequent starts, it will print the file that contains the file so you
can go grab the password yourself if you need it. This was done since
there isn't an easy way to both use the same password with standalone and
api-server directly and make sure we aren't outputting a password you've
populated yourself.
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.

6 participants