-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Harbor and Azure Active Directory #9193
Comments
It is not supported. Can you please test and let us know if there are any issues, and we can support from there? @roldancer |
This works when using the oicd provider.
|
Thanks for the info!!!! |
No worries, i got my answer. |
Mind sharing this answer in this issue thread? It looks to me it has been removed from the documentation. |
@jeremy-chua It is a misunderstanding. The information is not covered in the documentation, but in the bottom if the configuration page of the harbor instance WebUI. |
Yes, you are right. It's like a fine print. :) |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
@yaron @xaleeks any information on connecting groups to Azure AD? |
You set Group Claim Name to groups then the groups can be referred to by their ID. It doesn't give you their name field though, so you gotta figure out what ID is what group yourself, but it works. |
Just want to document how I got it working in 2022. The steps above are correct but there's a couple other things to note
Save it. This will now enable a Have your users go to the Harbor dashboard login screen and choose Once logged in they'll have access to basically nothing until you add them to Projects. I added an Azure AD groups Once logged in I can go to my Hope this helps someone! |
Does anyone know if it's possible to use Azure AD groups instead of Windows AD groups synced in Azure? We tried many different configurations in Azure including using App Roles, but I think these aren't supported? |
Azure AD groups should have unique ids like Windows groups. Get the ID and
set that. If it still doesn't work then you misconfiguration something.
Azure AD and Windows Server groups are typically on the same domain within
your organisation, so you should have both available to set.
…On Fri, 20 Jan 2023, 15:20 UPiotr, ***@***.***> wrote:
Does anyone know if it's possible to use Azure AD groups instead of
Windows AD groups synced in Azure? We tried many different configurations
in Azure including using App Roles, but I think these aren't supported?
—
Reply to this email directly, view it on GitHub
<#9193 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3RH6OXWHRZOPTOUPLMMCDDWTKNLNANCNFSM4IZEMIRA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I managed to get to working by settings additional group claim on Azure AD side in AppRegistration settings. Then all AD groups have been populated into Harbor using their GroupID. Edit: still have issue to claim groups.... |
Hello, if you have set up Azure AD OIDC auth, then you have to go to App Registrations >> your harbor app >> Token configuration >> + Add groups claim >> Security groups >> ID >> Group ID >> Access >> Group ID >> SAML >> Group ID. Like this, when some user will login through OIDC, there will appear group id's in Groups. But now i need to learn, how to use group names instead of id's. |
@olinigorov #12178 - sorry, not really possible out of the box. |
@olinigorov did you get the group mapping working this way ? it set person of the group as admin ? |
I went with Dex in between AAD and Harbor. i.e.: Harbor -> (oidc) -> Dex -> (microsoft) -> Azure AD ref: https://dexidp.io/docs/connectors/microsoft/ Dex uses the Microsoft Graph API to enrich the OIDC token group claim with group names. I might be able to get rid of Dex once I have access to this AzureAD feature: https://learn.microsoft.com/en-us/azure/active-directory/hybrid/connect/how-to-connect-fed-group-claims#emit-cloud-only-group-display-name-in-token - which is currently in preview. |
You can use "app roles " in your azure app registration , link the roles to an azure ad group As "Group Claim" use "roles" Group Claim Name --> roles (https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/groups-concept) |
I found a solution for using the group names that requires editing the azure ad application manifest: #12178 (comment) |
Just for additional context. if you define Azure/Entera groups for users, and also use You will still get an error in the harbor-core logs about |
can we automate this authmode: OIDC from values.yaml file |
@johanot can you give me a sample of your dex config that could enrich the token to get me the AD group info from Azure? I am having problems getting dex to work correctly. |
you could try terraform since auth is kind of day 30 type operation anyway https://registry.terraform.io/providers/goharbor/harbor/latest/docs/resources/config_auth |
Hi All, I would like to know if Harbor supports authentication via Azure Active Directory, is there any documentation about that integration ?
Many thanks.
The text was updated successfully, but these errors were encountered: