Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALB and Lambda Based Cognito login to MWAA Airflow UI creates a new user in Airflow every time #136

Open
ramesh-maddegoda opened this issue Jan 16, 2025 · 2 comments
Assignees
Labels

Comments

@ramesh-maddegoda
Copy link
Contributor

Checked for duplicates

Yes - I've already checked

🐛 Describe the bug

Recently we implemented the MWAA COgnito login as explained in the following sites.

When I accessed this ALB and Lambda Based Cognito login to MWAA Airflow UI, it creates a new user in Airflow list of users every time.

🕵️ Expected behavior

I expected a unique Cognito user should create only one user entry in Airflow.

📜 To Reproduce

  1. Access the MWAA Airflow UI using the new ALB based approach multiple times using same Cognito user
  2. Check the list of users in Airflow UI - Security Menu
  3. Observe that it is creating a new user everytime you logged in with same Cognito user
    ...

🖥 Environment Info

  • Version of this software [e.g. vX.Y.Z]
  • Operating System: [e.g. MacOSX with Docker Desktop vX.Y]
    ...

📚 Version of Software Used

No response

🩺 Test Data / Additional context

No response

🦄 Related requirements

🦄 #xyz

Acceptance Criteria

Given
When I perform
Then I expect

⚙️ Engineering Details

No response

🎉 Integration & Test

No response

@tloubrieu-jpl
Copy link
Member

A user name was automatically generated as a UUID which is why many users were created.
Ramesh fixed that by using the actual user name.

@ramesh-maddegoda
Copy link
Contributor Author

Created pull request #137 with the bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ToDo
Development

No branches or pull requests

2 participants