Skip to content

Change directory used by simple auth manager to store generated passwords - #42860

Merged
potiuk merged 3 commits into
apache:mainfrom
aws-mwaa:vincbeck/simple_am_generated_file
Oct 13, 2024
Merged

Change directory used by simple auth manager to store generated passwords#42860
potiuk merged 3 commits into
apache:mainfrom
aws-mwaa:vincbeck/simple_am_generated_file

Conversation

@vincbeck

Copy link
Copy Markdown
Contributor

See discussion


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

Comment threadairflow/auth/managers/simple/simple_auth_manager.py Outdated
@vincbeck
vincbeckforce-pushed the vincbeck/simple_am_generated_file branch from ac57857 to c9ee0dfCompareOctober 9, 2024 16:54

@jscheffljscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good for me.

Would be "cool" if not created that upon start via Breeze the default admin/admin is created by Breeze so that after clean checkout it runs out-of-the-box... but not required in this PR...

@vincbeck

Copy link
Copy Markdown
ContributorAuthor

Looks good for me.

Would be "cool" if not created that upon start via Breeze the default admin/admin is created by Breeze so that after clean checkout it runs out-of-the-box... but not required in this PR...

A user is created if no user is defined and generate the password for you. The file where the password is saved is now in /files so that the password does not change every-time you restart your env. You can also modify the password directly in this file and set it to admin if you want

@vincbeck
vincbeckforce-pushed the vincbeck/simple_am_generated_file branch from c9ee0df to a2b704eCompareOctober 9, 2024 20:10
@potiuk

Copy link
Copy Markdown
Member

Maybe we can have a non-specific env variable and define it in BREEZE instead?

say AIRFLOW_AUTH_MANAGER_CREDENTIAL_DIRECTORY ? Then we will just have to set it in entrypoint_ci.sh.

@kaxil

kaxil commented Oct 9, 2024

Copy link
Copy Markdown
Member

Maybe we can have a non-specific env variable and define it in BREEZE instead?

say AIRFLOW_AUTH_MANAGER_CREDENTIAL_DIRECTORY ? Then we will just have to set it in entrypoint_ci.sh.

Yeah, I like that

@vincbeck
vincbeckforce-pushed the vincbeck/simple_am_generated_file branch from a2b704e to 1ebf550CompareOctober 10, 2024 17:00
@vincbeck

Copy link
Copy Markdown
ContributorAuthor

I just did as you suggested :)

@vincbeck
vincbeckforce-pushed the vincbeck/simple_am_generated_file branch from 1ebf550 to 46a2ed9CompareOctober 10, 2024 17:01
Comment threadairflow/auth/managers/simple/simple_auth_manager.py Outdated
@vincbeck
vincbeckforce-pushed the vincbeck/simple_am_generated_file branch from 46a2ed9 to ad90090CompareOctober 10, 2024 19:56

@jscheffljscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Comment threadairflow/auth/managers/simple/simple_auth_manager.py Outdated
vincbeckand others added 2 commits October 10, 2024 16:13
@potiuk
potiuk merged commit d6a1a52 into apache:mainOct 13, 2024
pavansharma36 pushed a commit to pavansharma36/airflow that referenced this pull request Oct 14, 2024
…ords (apache#42860)
* Change directory used by simple auth manager to store generated passwords
* Update airflow/auth/managers/simple/simple_auth_manager.py
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
---------
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
@vincbeck
vincbeck deleted the vincbeck/simple_am_generated_file branch October 17, 2024 14:55
R7L208 pushed a commit to R7L208/airflow that referenced this pull request Oct 17, 2024
…ords (apache#42860)
* Change directory used by simple auth manager to store generated passwords
* Update airflow/auth/managers/simple/simple_auth_manager.py
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
---------
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
…ords (apache#42860)
* Change directory used by simple auth manager to store generated passwords
* Update airflow/auth/managers/simple/simple_auth_manager.py
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
---------
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
…ords (apache#42860)
* Change directory used by simple auth manager to store generated passwords
* Update airflow/auth/managers/simple/simple_auth_manager.py
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
---------
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
…ords (apache#42860)
* Change directory used by simple auth manager to store generated passwords
* Update airflow/auth/managers/simple/simple_auth_manager.py
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
---------
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vincbeck@potiuk@kaxil@jscheffl