-
Notifications
You must be signed in to change notification settings - Fork 59
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
Azure AD Authorization is currently not working on Jenkins because it can't find the users, e.g. it is loading forever and does not return any user #314
Comments
You can perhaps work around the problem by checking the "Disable graph integration" box in the Jenkins security settings. That way, Jenkins won't attempt to query all users and groups from Azure AD, and you have to paste the names and IDs as text instead. I do this to minimize the information leaks in case the Jenkins controller is somehow compromised. |
Stumbled upon a workaround here, I haven't taken the time to dig into the code the figure out why it works, but if you follow these steps I think you'll have a working graph integration:
At this point the group/user lookup works. I've done this on two distinct jenkins boxes and had the same result. You'll probably want to remove admin from authenticated users and add at least one entry for yourself. I think the bug had something to do with the list of authorized entities being empty, but that's just a guess. I've checked and the fix persists after restart. Good luck! |
@hawknewton I have tried your workaround but it did not work in my case.
|
@hawknewton @tgquan67 |
@Raviyadav409 when you tried what I posted, was you able to search for users/groups? Notice that you have to enable graph integration to be able to search, otherwise you will have to enter the user manually in a very specific and precise way, or else the user will not be granted anything. Basically in my case there are 2 requirements:
|
Hi @tgquan67 i have singed as AAD .For your reference i have attached screenshot as below . And one thing i would like to mention is i'm not able to search for users/groups . We have already make App registration and provided all permissions. U can see all permission here as well .!! |
On my side the permissions are different I think you will at least need |
you shouldn't need that, is there any errors in the browser console or Jenkins logs? |
This fixed it for me, thanks a lot. The logs were totally silent with no clues as to what the underlying root cause might be. |
Hi @andysworkshop @tgquan67 @hawknewton @KalleOlaviNiemitalo Azure ad matrix based is working now but when we are providing the access the of All read permission to authenticated users managed jenkins is not visible on jenkins home page . And also when we are providing the admin permission to our user even i provide Administer to myself in that case also not able to find the managed jenkins on jenkins page . in the above image clearly u can see managed jenkins is missing for the user having Administer access. Apart from that i'm facing other issue regarding jenkins login . once i setup the things for azure ad security matrix based after that i'm not able to login in jenkins as admin . Even i'm using correct username and password for the jenkins . |
@Raviyadav409 I'm not sure about your first question, but for your second question, once you have set up a different authentication scheme, you will not be able to use |
Has anyone tried the update 2.361.2 to see if that resolves this issue? |
Hii @cap-mevans sorry to infrom we haven't get this application update at container level . U can check ArtifactHub is using 2.361.1 jenkins version |
artifact hub is now updated FWIW |
Hi All, I tested the azure ad matrix based security in latest jenkins version i.e 2.361.2 . In this version i'm also getting the same issue what i have raised earlier . U can find the that issue in below .
|
Did you add those user by selecting from search box (with graph integration enabled) or you just forcefully added them there while graph integration disabled? Because even if the name there is a bit incorrect, the permission will not take effect. In my case, the names there are displayed in |
@tgquan67 FYI , for me search box is not appearing at azure ad matrix based security . so i just disable graph integration and then i added users manually . |
One way to know if the name you added is correct is to enable graph integration again. I think when you enable it, any invalid entry you added will be crossed out. |
@tgquan67 FYI , In my case every entry which i have added manaully is correct one and that entry is not getting crossed out . It means my all entries correct and authorized . But Still when i giving the admin access to that entry . That is not working as expected . It means that user or entry is not getting any admin permission . |
Hi @andysworkshop @tgquan67 @hawknewton @KalleOlaviNiemitalo, I too have similar issue. I tested the azure ad matrix based security in latest jenkins version i.e 2.372. while i configure global security, user names are not able to find. Any suggestion to fix this Jenkins Azure integration? |
@madhulikap0903 the only thing I realized in my case is that you have to give all permissions to |
You may not need to log out, saving the config and refreshing the page should be enough. |
I had this issue when setting the plugin up. All the previous steps were tried, or attempted, as I had to roll back the config to the point before I configured the Azure plugin a few times after getting locked out.
|
Have the same issue on Jenkins 2.346.3 and Azure AD Plugin Version 306.va_7083923fd50 it started working after re-enabling option "Disable graph integration" |
I'm having the same issue on Jenkins Jenkins 2.426.1 with latest Azure ad plugin on multiple servers. Disabling and reenabling Graph integration resolves it, but it cannot be done without disruption to group based security permissions. It should be considered priority 1 issue for this plugin. |
We are using jenkins latest application version i.e 2.361.1
Jenkins application version :- Jenkins 2.361.1
Helm Version : 4.2.0
Azure AD Plugin Version: 267.v5b_dfb_514d9fd
Operating system: Linux/windows
Helm Chart Version link :- https://artifacthub.io/packages/helm/jenkinsci/jenkins/4.2.0
Web Browser: Any
Cluster- GKE CLUSTER
GKE Cluster Version:- v1.21.14-gke.700
Azure AD Authorization is currently not working on Jenkins because it can't find the users, e.g. it is loading forever and does not return any user, Even We have already make App registration and provided all permissions .
The text was updated successfully, but these errors were encountered: