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

Cannot log in to SSO with SAML after changing permanent cookies to session cookies. #15575

Open
4 of 11 tasks
laiminhtrung1997 opened this issue Oct 7, 2024 · 0 comments
Open
4 of 11 tasks

Comments

@laiminhtrung1997
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

Storing session information (cookies) on disk as permanent cookies poses a security risk, as they may be stolen. To mitigate this, I have configured Envoy to modify the cookie attributes, setting Expires/Max-Age to Session instead of a specific date and time.

After making this change, we attempted to log in to AWX using SAML. However, AWX continuously redirects, and after a few seconds, the AWX UI returns to the login page with two errors related to the APIs https://awx.com/api/v2/config/ and https://awx.com/api/v2/me/, both showing a 401 status code.

AWX version

23.6.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

Configured Envoy to modify the cookie attributes, setting Expires/Max-Age to Session instead of a specific date and time.

Expected results

Successfully logged in to AWX using SAML.

Actual results

Failed to log in to AWX using SAML.

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant