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

RESUBMIT: Implement project pulling from Azure DevOps using Service Principals #14978

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

puiterwijk
Copy link
Contributor

RESUBMITTED FROM #14628, originally reverted in #14977, filed by request of @TheRealHaoLiu .
Note: rebased on top of devel, currently not re-tested.

SUMMARY

This adds support for syncing a project from Azure DevOps using an Azure Service Principal.

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • API
  • UI
  • Other
ADDITIONAL INFORMATION

In order to use this feature, create an Azure Resource Manager type secret, and assign this to the project (this PR allows attaching either an scm or azure_rm secret to projects).
The associated service principal must have Basic level access to the DevOps organization, and at least Reader level access to the Project.

@puiterwijk puiterwijk changed the title Azure service principal devops rebased RESUBMIT: Implement project pulling from Azure DevOps using Service Principals Mar 11, 2024
@TheRealHaoLiu TheRealHaoLiu self-requested a review March 11, 2024 14:45
@dmzoneill dmzoneill force-pushed the azure_service_principal_devops_rebased branch from fc67f42 to 327c963 Compare March 12, 2024 12:46
@TheRealHaoLiu TheRealHaoLiu force-pushed the azure_service_principal_devops_rebased branch from 327c963 to 262b428 Compare April 16, 2024 17:34
@TheRealHaoLiu TheRealHaoLiu force-pushed the azure_service_principal_devops_rebased branch from 262b428 to 6c34958 Compare July 1, 2024 20:21
Allow looking up a credential with one of multiple type IDs.

Signed-off-by: Patrick Uiterwijk <[email protected]>
Allow selecting an Azure Resource Manager credential for Git-based SCMs.
This is in order to enable using Azure Service Principals for project updates.

Signed-off-by: Patrick Uiterwijk <[email protected]>
@puiterwijk puiterwijk force-pushed the azure_service_principal_devops_rebased branch from 6c34958 to 5d79a30 Compare August 1, 2024 13:17
This adds support for using an Azure Service Principal for project updates.

Signed-off-by: Patrick Uiterwijk <[email protected]>
@puiterwijk puiterwijk force-pushed the azure_service_principal_devops_rebased branch from 5d79a30 to 38a9136 Compare August 1, 2024 13:20
@puiterwijk
Copy link
Contributor Author

I have reworked this to use the uri module again, as per request from @TheRealHaoLiu.

Copy link

sonarcloud bot commented Aug 1, 2024

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

Successfully merging this pull request may close these issues.

1 participant