-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix saml bug unable to login #10868
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
base: 4.20
Are you sure you want to change the base?
Fix saml bug unable to login #10868
Conversation
|
@blueorangutan package |
|
@vits-hugs a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13387 |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm, maybe this should be a setting allowing the operator to enable the ‘bypass’ login or not. What do you think @vits-hugs ?
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10868 +/- ##
=========================================
Coverage 16.23% 16.23%
- Complexity 13371 13374 +3
=========================================
Files 5657 5657
Lines 498860 498864 +4
Branches 60543 60544 +1
=========================================
+ Hits 81003 81004 +1
- Misses 408824 408825 +1
- Partials 9033 9035 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Could be a security risk - perhaps wrap around a global setting. Some orgs may not want that? |
|
I think that displaying warning would make more sense, after you disable the SAML login, since if an admin would want to unable a user to access the application, it should disable the account. What do you think about that? |
I think certain operators would want to be able to guarantee a user can only login via SSO. For some other operators your change makes sense. That is why we are asking to make the behaviour configurable. |
|
@DaanHoogland @rohityadavcloud, As requested i added a configuration to make the behaviour configurable, please review the changes. |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
@blueorangutan package |
|
@vits-hugs a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13639 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13483)
|
|
I am not a SAML user, but I have two questions
|
|
@vits-hugs , do you still want to move this forwards? It need addressing @weizhouapache ’s comments and a test/review. |
|
Hello, @DaanHoogland and @weizhouapache
Yes, I think we can move this PR forward. I will take care of it on behalf of Vitor.
It's not the SAML user that is disabled, but the possibility of logging in with SAML SSO. As an example, let's say the user used to log in with their own ACS credentials (username and password), and then SAML authentication was added to the environment by the operators. If, after a while, the operators decide to remove the SAML authentication from the environment, the user cannot log in anymore, neither with SAML (as it was removed), nor with their credentials. Thus, this PR allows users in these scenarios to log in with their credentials again, even if their SAML login was disabled. If the operator wishes to actually disable the user, they should use
Personally, I think that the default value for the configuration should be However, I also understand that this PR implements a sensitive change and it could take operators by surprise. Therefore, I propose the change of the default value to |
|
I think your approach is sane @erikbocks . The only snag is that saml users may not have a local account at all. |
hsato03
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm, I agree changing the new global setting to have the default value as false to keep the current behavior.
yes, the default value should be @erikbocks |
a578d56 to
49266dd
Compare
Description
After setting a user to login using SAML, and then disabling the login by SAML for the user, he cannot access the account anymore, neither by saml nor by username and password. So this PRs adds and verification to let a user with SAML authentication disabled login with username and password.
Types of changes
Bug Severity
How Has This Been Tested?
To test, i followed this process:
enable.login.saml.unathourizedset to true:enable.login.saml.unathourizedset to false: