feat: add Azure DevOps Flow Registry Client support#412
Merged
Conversation
Add nipyapi.versioning.ensure_azuredevops_registry() to provision NiFi's native AzureDevOpsFlowRegistryClient end to end. Azure DevOps authenticates only via a Microsoft Entra service principal (OAuth2 client credentials), so the helper ensures the two required management (controller-level) controller services - a Web Client Service and an OAuth2 Access Token Provider - and wires them into the registry client. Supporting changes: - canvas: add create_management_controller() (controller-level create via the Controller API, unlike the process-group-scoped create_controller) and the idempotent ensure_management_controller() composer built on the existing get/update/schedule controller functions. - ci: add an "azuredevops" provider branch to ensure_registry (with NIFI_ADO_* environment fallbacks). - cli: add native Azure Pipelines output format (##vso[task.setvariable], auto-detected via the TF_BUILD environment variable). - tests: management-controller CRUD tests, Azure DevOps unit/validation tests, gated live integration tests, and teardown fixtures.
…l ADO auth - ensure_management_controller: re-applying properties to an existing, already-enabled management service failed because update_controller refuses to modify an enabled service without auto_disable. Pass auto_disable=True so the update disables, applies, and re-enables (with built-in rollback). - test_canvas: cover re-invocation with properties on an already-enabled service (previously only the no-properties idempotent path was tested). - test_ci: the live Azure DevOps test now lists buckets from the repo, forcing the SP OAuth2 token fetch + a live ADO API call, to prove the service principal actually authenticated rather than only that config is VALID.
…pare_controller_config
Chaffelson
force-pushed
the
feature/azuredevops-registry
branch
from
July 18, 2026 08:44
c4b181f to
b9f9519
Compare
pvillard31
approved these changes
Jul 20, 2026
Chaffelson
added a commit
that referenced
this pull request
Jul 20, 2026
* feat: add Azure DevOps Flow Registry Client support Add nipyapi.versioning.ensure_azuredevops_registry() to provision NiFi's native AzureDevOpsFlowRegistryClient end to end. Azure DevOps authenticates only via a Microsoft Entra service principal (OAuth2 client credentials), so the helper ensures the two required management (controller-level) controller services - a Web Client Service and an OAuth2 Access Token Provider - and wires them into the registry client. Supporting changes: - canvas: add create_management_controller() (controller-level create via the Controller API, unlike the process-group-scoped create_controller) and the idempotent ensure_management_controller() composer built on the existing get/update/schedule controller functions. - ci: add an "azuredevops" provider branch to ensure_registry (with NIFI_ADO_* environment fallbacks). - cli: add native Azure Pipelines output format (##vso[task.setvariable], auto-detected via the TF_BUILD environment variable). - tests: management-controller CRUD tests, Azure DevOps unit/validation tests, gated live integration tests, and teardown fixtures. * fix(canvas): make ensure_management_controller idempotent; verify real ADO auth - ensure_management_controller: re-applying properties to an existing, already-enabled management service failed because update_controller refuses to modify an enabled service without auto_disable. Pass auto_disable=True so the update disables, applies, and re-enables (with built-in rollback). - test_canvas: cover re-invocation with properties on an already-enabled service (previously only the no-properties idempotent path was tested). - test_ci: the live Azure DevOps test now lists buckets from the repo, forcing the SP OAuth2 token fetch + a live ADO API call, to prove the service principal actually authenticated rather than only that config is VALID. * fix(canvas): validate ensure_management_controller properties via prepare_controller_config * docs: document Azure DevOps registry + Azure Pipelines support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for NiFi's native Azure DevOps Flow Registry Client, alongside the existing GitHub/GitLab providers. Unlike GitHub/GitLab (single PAT), Azure DevOps authenticates only via a Microsoft Entra service principal (OAuth2 client credentials), which requires two controller-level ("management") controller services. A single
versioning.ensure_azuredevops_registry()call provisions them and wires up the registry client.Changes
create_management_controller()(controller-level create via the Controller API, unlike the process-group-scopedcreate_controller) and the idempotentensure_management_controller()composer built on the existingget/update/schedulecontroller functions. CRUD tests prove those shared functions operate on management services, not only PG-scoped ones.azuredevopsprovider inensure_registry(withNIFI_ADO_*environment fallbacks).##vso[task.setvariable], auto-detected viaTF_BUILD).Test plan
ADO_*env)