← Back to Pull requests

feat(backend): add node pool encryption at host validation #7498

Open
miguelsorianod opened this pull request with 680 lines diff across 16 files
View on GitHub
miguelsorianod miguelsorianod commented on Oct 13, 2026 14:43 UTC
Author

Node pools can request encryption at host, but nothing validates beforehand that the chosen VM size actually supports it or that the EncryptionAtHost feature is registered on the customer's subscription. Both are prerequisites for the setting to actually take effect in Azure.

Add AzureNodePoolEncryptionAtHostValidation, a node pool validation controller that checks the VM size's EncryptionAtHostSupported Resource SKU capability via the existing cached SKU reader, and separately checks the Microsoft.Compute/EncryptionAtHost feature registration state via a new Azure Features client added to the FPA client builder. Both checks run independently so a single failed validation reports every unmet prerequisite, not just the first one found.

Node pools that don't request encryption at host are skipped.

This validation is being performed on CS side through a CS inflight check so this implements it on this side. Once it's rolled out we should remove the validation on CS side.

<!-- Link to Jira issue -->

What

<!-- Briefly describe what this PR does -->

Why

<!-- Briefly explain why this change is needed -->

Testing

Testing is required for feature completion and tests should be part of the pull
request along with the feature changes.

Describe the testing provided. If you did not add tests, provide a clear
justification.

  • Unit tests

  • Integration tests

  • E2E tests
  • Special notes for your reviewer

    <!-- optional -->

    PR Checklist

  • PR is scoped to a single task (no mixed concerns)

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Screenshots included (if dashboards or other UI changes)

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented

  • Specific reviewers tagged

  • All comment threads resolved before merge
  • If E2E tests are included:

  • E2E tests follow Principles of Good E2E Test Case Design

  • If new E2E use case is covered (via a new test or new check/verifier),

  • demonstrate that the test is able to detect a defect/error and fail with
    proper error message and logs which communicates nature of the problem.

    Diff: 680 lines (+677 / -3) across 16 files Reviewer: machi1990 Review duration: 20823m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.94) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.94 · 680 lines diff across 16 files
    0.94
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.86 · 5 substantive comment(s)
    0.86
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    88%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.390
    Sensitive Paths sensitive_paths
    0.094
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    22 items
    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 13, 2026 14:43 UTC
    Bot

    Pipeline controller notification

    This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

    Use /test ? to list jobs and /pipeline help for commands.

    Copilot Copilot commented on code on Oct 13, 2026 14:48 UTC
    Code Review
    backend/pkg/utils/validationutils/azure_nodepool_encryption_at_host_validation.go:1
    @@ -0,0 +1,143 @@
    +// Copyright 2026 Microsoft Corporation
    +//
    +// Licensed under the Apache License, Version 2.0 (the "License");
    +// you may not use this file except in compliance with the License.
    +// You may obtain a copy of the License at
    +//
    +//     http://www.apache.org/licenses/LICENSE-2.0
    +//
    +// Unless required by applicable law or agreed to in writing, software
    +// distributed under the License is distributed on an "AS IS" BASIS,
    +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +// See the License for the specific language governing permissions and
    +// limitations under the License.
    +
    +package validationutils
    +
    +import (
    +	"context"
    +	"fmt"
    +	"strings"
    +
    +	"github.com/Azure/ARO-HCP/backend/pkg/azure/cachedreader"
    +	azureclient "github.com/Azure/ARO-HCP/backend/pkg/azure/client"
    +	"github.com/Azure/ARO-HCP/internal/api/coreapi"
    +)
    +
    +const (
    +	// encryptionAtHostFeatureResourceProviderNamespace is the Azure Resource Provider namespace
    +	// that owns the EncryptionAtHost feature.
    +	encryptionAtHostFeatureResourceProviderNamespace = "Microsoft.Compute"
    +	// encryptionAtHostFeatureName is the Microsoft.Features feature name that gates a
    +	// subscription's ability to use encryption at host.
    +	encryptionAtHostFeatureName = "EncryptionAtHost"
    +	// featureRegistrationStateRegistered is the Microsoft.Features registration state value
    +	// indicating a feature is registered for a subscription.
    +	featureRegistrationStateRegistered = "Registered"
    +)
    +
    +// AzureNodePoolEncryptionAtHostValidation validates that a node pool requesting encryption at
    +// host uses a VM size that supports it and that the EncryptionAtHost feature is registered for
    +// the customer's subscription. Node pools that do not request encryption at host are skipped.
    +type AzureNodePoolEncryptionAtHostValidation struct {
    +	resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader
    +	azureFPAClientBuilder    azureclient.FirstPartyApplicationClientBuilder
    +}
    +
    +func NewAzureNodePoolEncryptionAtHostValidation(resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader, azureFPAClientBuilder azureclient.FirstPartyApplicationClientBuilder) *AzureNodePoolEncryptionAtHostValidation {
    +	return &AzureNodePoolEncryptionAtHostValidation{
    +		resourceSKUsCachedReader: resourceSKUsCachedReader,
    +		azureFPAClientBuilder:    azureFPAClientBuilder,
    +	}
    +}
    +
    +var _ NodePoolValidation = (*AzureNodePoolEncryptionAtHostValidation)(nil)
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Name() string {
    +	return "AzureNodePoolEncryptionAtHostValidation"
    +}
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Validate(ctx context.Context, _ *coreapi.Cluster, nodePoolSubscription *coreapi.Subscription, nodePool *coreapi.NodePool) ValidationResult {
    +	if !nodePool.Properties.Platform.EnableEncryptionAtHost {
    +		return SkippedValidation(
    +			"NotApplicable",
    +			"Node pool does not request encryption at host.",
    +			"Node pool does not request encryption at host; encryption at host validation does not apply.",
    +		)
    +	}
    +
    +	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || *nodePoolSubscription.Properties.TenantId == "" {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"subscription is missing tenant ID",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	tenantID := *nodePoolSubscription.Properties.TenantId
    +	subscriptionID := nodePool.ID.SubscriptionID
    +
    +	vmSize := nodePool.Properties.Platform.VMSize
    +	sku, err := v.resourceSKUsCachedReader.GetVirtualMachineSKU(ctx, tenantID, subscriptionID, nodePool.Location, vmSize)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get resource SKU for VM size %q: %s", vmSize, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	supported, found := isCapabilityEncryptionAtHostSupported(sku)
    +	if !found {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("resource SKU for VM size %q is missing %s capability", vmSize, computeResourceSKUCapabilityNameEncryptionAtHostSupported),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	featuresClient, err := v.azureFPAClientBuilder.FeaturesClient(tenantID, subscriptionID)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to create features client: %s", err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	feature, err := featuresClient.Get(ctx, encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, nil)

    The deployed DEV/CSPR FPA mock cannot authorize this new call: dev-infrastructure/templates/e2e-subscription-rbac-assignment-subscription.bicep:60-68 grants that principal only SAL and resource-group actions, with no Microsoft.Features read action. Consequently Get will return an authorization error and every encryption-enabled node pool in those environments will remain Unknown/requirements-invalid. Add the required feature-read permission to the mock role and reapply its subscription assignments; also verify the production FPA contract before rollout.

    Copilot Copilot commented on code on Oct 13, 2026 14:49 UTC
    Code Review
    backend/pkg/controllers/nodepool/registration.go:1
    @@ -383,6 +402,7 @@ func Register(registry map[string]controllerconfig.ControllerRegistration) {
     	registry[strings.ToLower(nodepoolstatus.NodePoolRequirementsValidAggregatorControllerName)] = registerNodePoolRequirementsValidAggregatorController()
     	registry[strings.ToLower(nodepoolvalidation.NodePoolValidationAzureVMSizeSupportsEphemeralOSDiskValidationControllerName)] = registerAzureVMSizeSupportsEphemeralOSDiskValidationController()
     	registry[strings.ToLower(nodepoolvalidation.NodePoolValidationAzureNodePoolVMQuotaValidationControllerName)] = registerAzureNodePoolVMQuotaValidationController()
    +	registry[strings.ToLower(nodepoolvalidation.NodePoolValidationAzureNodePoolEncryptionAtHostValidationControllerName)] = registerAzureNodePoolEncryptionAtHostValidationController()

    Registering this controller changes the documented backend controller catalog and Cosmos write flow, but docs/cosmos-data-flow.md still omits this validation (and its controller totals). Repository guidance requires regenerating that document and its synchronized graph sources/artifacts whenever controller implementation or startup registration changes.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Oct 13, 2026 14:49 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟡 Changes recommended

    The feature lookup lacks required mock-FPA authorization, and mandatory controller data-flow documentation is missing.

    <details open>
    <summary><strong>2 open findings</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> Add Microsoft.Features read permission to DEV/CSPR mock role · New

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture> Regenerate Cosmos data-flow documentation for new controller · New

  • </details>

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    Adds backend validation for node-pool encryption-at-host prerequisites.

    Changes:

  • Validates VM SKU capability and subscription feature registration.

  • Adds the Azure Features client and mocks.

  • Registers and tests the new validation controller.
  • | File | Description |
    | ---- | ----------- |
    | backend/​go.mod | Adds Azure Features SDK. |
    | backend/​go.sum | Records dependency checksums. |
    | test-integration/​go.mod | Propagates indirect dependency. |
    | test-integration/​go.sum | Records integration checksums. |
    | backend/​pkg/​azure/​client/​features_client.go | Defines Features client interface. |
    | backend/​pkg/​azure/​client/​mock_features_client.go | Adds generated client mock. |
    | backend/​pkg/​azure/​client/​fpa_client_builder.go | Constructs Features clients. |
    | backend/​pkg/​azure/​client/​mock_fpa_client_builder.go | Extends builder mock. |
    | backend/​pkg/​azure/​azuremockclient/​mock_clients.go | Implements expanded builder interface. |
    | backend/​pkg/​utils/​validationutils/​resource_sku_capabilities.go | Adds encryption capability lookup. |
    | backend/​pkg/​utils/​validationutils/​resource_sku_capabilities_test.go | Tests capability lookup. |
    | backend/​pkg/​utils/​validationutils/​azure_nodepool_encryption_at_host_validation.go | Implements prerequisite validation. |
    | backend/​pkg/​utils/​validationutils/​azure_nodepool_encryption_at_host_validation_test.go | Tests validation outcomes. |
    | backend/​pkg/​controllers/​nodepool/​validation/​nodepool_validation_controller.go | Adds controller name. |
    | backend/​pkg/​controllers/​nodepool/​registration.go | Registers the controller. |
    | backend/​pkg/​app/​controller_registry_test.go | Updates registry expectations. |
    </details>

    <details>
    <summary>Files not reviewed (2)</summary>

    backend/pkg/azure/client/mock_features_client.go: Generated file
    backend/pkg/azure/client/mock_fpa_client_builder.go: Generated file
    </details>

    🧠 Review effort: Balanced

    ---

    💡 <a href="/Azure/ARO-HCP/new/main?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 13, 2026 15:32 UTC
    Bot

    Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
    /test e2e-parallel

    machi1990 machi1990 commented on code on Oct 14, 2026 05:51 UTC
    Code Review
    backend/pkg/utils/validationutils/azure_nodepool_encryption_at_host_validation.go:1
    @@ -0,0 +1,143 @@
    +// Copyright 2026 Microsoft Corporation
    +//
    +// Licensed under the Apache License, Version 2.0 (the "License");
    +// you may not use this file except in compliance with the License.
    +// You may obtain a copy of the License at
    +//
    +//     http://www.apache.org/licenses/LICENSE-2.0
    +//
    +// Unless required by applicable law or agreed to in writing, software
    +// distributed under the License is distributed on an "AS IS" BASIS,
    +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +// See the License for the specific language governing permissions and
    +// limitations under the License.
    +
    +package validationutils
    +
    +import (
    +	"context"
    +	"fmt"
    +	"strings"
    +
    +	"github.com/Azure/ARO-HCP/backend/pkg/azure/cachedreader"
    +	azureclient "github.com/Azure/ARO-HCP/backend/pkg/azure/client"
    +	"github.com/Azure/ARO-HCP/internal/api/coreapi"
    +)
    +
    +const (
    +	// encryptionAtHostFeatureResourceProviderNamespace is the Azure Resource Provider namespace
    +	// that owns the EncryptionAtHost feature.
    +	encryptionAtHostFeatureResourceProviderNamespace = "Microsoft.Compute"
    +	// encryptionAtHostFeatureName is the Microsoft.Features feature name that gates a
    +	// subscription's ability to use encryption at host.
    +	encryptionAtHostFeatureName = "EncryptionAtHost"
    +	// featureRegistrationStateRegistered is the Microsoft.Features registration state value
    +	// indicating a feature is registered for a subscription.
    +	featureRegistrationStateRegistered = "Registered"
    +)
    +
    +// AzureNodePoolEncryptionAtHostValidation validates that a node pool requesting encryption at
    +// host uses a VM size that supports it and that the EncryptionAtHost feature is registered for
    +// the customer's subscription. Node pools that do not request encryption at host are skipped.
    +type AzureNodePoolEncryptionAtHostValidation struct {
    +	resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader
    +	azureFPAClientBuilder    azureclient.FirstPartyApplicationClientBuilder
    +}
    +
    +func NewAzureNodePoolEncryptionAtHostValidation(resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader, azureFPAClientBuilder azureclient.FirstPartyApplicationClientBuilder) *AzureNodePoolEncryptionAtHostValidation {
    +	return &AzureNodePoolEncryptionAtHostValidation{
    +		resourceSKUsCachedReader: resourceSKUsCachedReader,
    +		azureFPAClientBuilder:    azureFPAClientBuilder,
    +	}
    +}
    +
    +var _ NodePoolValidation = (*AzureNodePoolEncryptionAtHostValidation)(nil)
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Name() string {
    +	return "AzureNodePoolEncryptionAtHostValidation"
    +}
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Validate(ctx context.Context, _ *coreapi.Cluster, nodePoolSubscription *coreapi.Subscription, nodePool *coreapi.NodePool) ValidationResult {
    +	if !nodePool.Properties.Platform.EnableEncryptionAtHost {
    +		return SkippedValidation(
    +			"NotApplicable",
    +			"Node pool does not request encryption at host.",
    +			"Node pool does not request encryption at host; encryption at host validation does not apply.",
    +		)
    +	}
    +
    +	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || *nodePoolSubscription.Properties.TenantId == "" {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"subscription is missing tenant ID",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	tenantID := *nodePoolSubscription.Properties.TenantId
    +	subscriptionID := nodePool.ID.SubscriptionID
    +
    +	vmSize := nodePool.Properties.Platform.VMSize
    +	sku, err := v.resourceSKUsCachedReader.GetVirtualMachineSKU(ctx, tenantID, subscriptionID, nodePool.Location, vmSize)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get resource SKU for VM size %q: %s", vmSize, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	supported, found := isCapabilityEncryptionAtHostSupported(sku)
    +	if !found {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("resource SKU for VM size %q is missing %s capability", vmSize, computeResourceSKUCapabilityNameEncryptionAtHostSupported),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	featuresClient, err := v.azureFPAClientBuilder.FeaturesClient(tenantID, subscriptionID)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to create features client: %s", err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	feature, err := featuresClient.Get(ctx, encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, nil)

    This mock has been in use with CS without issue @copilot

    machi1990 machi1990 commented on code on Oct 14, 2026 05:54 UTC
    Code Review
    backend/pkg/utils/validationutils/azure_nodepool_encryption_at_host_validation.go:1
    @@ -0,0 +1,143 @@
    +// Copyright 2026 Microsoft Corporation
    +//
    +// Licensed under the Apache License, Version 2.0 (the "License");
    +// you may not use this file except in compliance with the License.
    +// You may obtain a copy of the License at
    +//
    +//     http://www.apache.org/licenses/LICENSE-2.0
    +//
    +// Unless required by applicable law or agreed to in writing, software
    +// distributed under the License is distributed on an "AS IS" BASIS,
    +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +// See the License for the specific language governing permissions and
    +// limitations under the License.
    +
    +package validationutils
    +
    +import (
    +	"context"
    +	"fmt"
    +	"strings"
    +
    +	"github.com/Azure/ARO-HCP/backend/pkg/azure/cachedreader"
    +	azureclient "github.com/Azure/ARO-HCP/backend/pkg/azure/client"
    +	"github.com/Azure/ARO-HCP/internal/api/coreapi"
    +)
    +
    +const (
    +	// encryptionAtHostFeatureResourceProviderNamespace is the Azure Resource Provider namespace
    +	// that owns the EncryptionAtHost feature.
    +	encryptionAtHostFeatureResourceProviderNamespace = "Microsoft.Compute"
    +	// encryptionAtHostFeatureName is the Microsoft.Features feature name that gates a
    +	// subscription's ability to use encryption at host.
    +	encryptionAtHostFeatureName = "EncryptionAtHost"
    +	// featureRegistrationStateRegistered is the Microsoft.Features registration state value
    +	// indicating a feature is registered for a subscription.
    +	featureRegistrationStateRegistered = "Registered"
    +)
    +
    +// AzureNodePoolEncryptionAtHostValidation validates that a node pool requesting encryption at
    +// host uses a VM size that supports it and that the EncryptionAtHost feature is registered for
    +// the customer's subscription. Node pools that do not request encryption at host are skipped.
    +type AzureNodePoolEncryptionAtHostValidation struct {
    +	resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader
    +	azureFPAClientBuilder    azureclient.FirstPartyApplicationClientBuilder
    +}
    +
    +func NewAzureNodePoolEncryptionAtHostValidation(resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader, azureFPAClientBuilder azureclient.FirstPartyApplicationClientBuilder) *AzureNodePoolEncryptionAtHostValidation {
    +	return &AzureNodePoolEncryptionAtHostValidation{
    +		resourceSKUsCachedReader: resourceSKUsCachedReader,
    +		azureFPAClientBuilder:    azureFPAClientBuilder,
    +	}
    +}
    +
    +var _ NodePoolValidation = (*AzureNodePoolEncryptionAtHostValidation)(nil)
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Name() string {
    +	return "AzureNodePoolEncryptionAtHostValidation"
    +}
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Validate(ctx context.Context, _ *coreapi.Cluster, nodePoolSubscription *coreapi.Subscription, nodePool *coreapi.NodePool) ValidationResult {
    +	if !nodePool.Properties.Platform.EnableEncryptionAtHost {
    +		return SkippedValidation(
    +			"NotApplicable",
    +			"Node pool does not request encryption at host.",
    +			"Node pool does not request encryption at host; encryption at host validation does not apply.",
    +		)
    +	}
    +
    +	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || *nodePoolSubscription.Properties.TenantId == "" {

    	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || len(*nodePoolSubscription.Properties.TenantId) == 0 {
    

    machi1990 machi1990 commented on code on Oct 14, 2026 05:57 UTC
    Code Review
    backend/pkg/utils/validationutils/azure_nodepool_encryption_at_host_validation.go:1
    @@ -0,0 +1,143 @@
    +// Copyright 2026 Microsoft Corporation
    +//
    +// Licensed under the Apache License, Version 2.0 (the "License");
    +// you may not use this file except in compliance with the License.
    +// You may obtain a copy of the License at
    +//
    +//     http://www.apache.org/licenses/LICENSE-2.0
    +//
    +// Unless required by applicable law or agreed to in writing, software
    +// distributed under the License is distributed on an "AS IS" BASIS,
    +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +// See the License for the specific language governing permissions and
    +// limitations under the License.
    +
    +package validationutils
    +
    +import (
    +	"context"
    +	"fmt"
    +	"strings"
    +
    +	"github.com/Azure/ARO-HCP/backend/pkg/azure/cachedreader"
    +	azureclient "github.com/Azure/ARO-HCP/backend/pkg/azure/client"
    +	"github.com/Azure/ARO-HCP/internal/api/coreapi"
    +)
    +
    +const (
    +	// encryptionAtHostFeatureResourceProviderNamespace is the Azure Resource Provider namespace
    +	// that owns the EncryptionAtHost feature.
    +	encryptionAtHostFeatureResourceProviderNamespace = "Microsoft.Compute"
    +	// encryptionAtHostFeatureName is the Microsoft.Features feature name that gates a
    +	// subscription's ability to use encryption at host.
    +	encryptionAtHostFeatureName = "EncryptionAtHost"
    +	// featureRegistrationStateRegistered is the Microsoft.Features registration state value
    +	// indicating a feature is registered for a subscription.
    +	featureRegistrationStateRegistered = "Registered"
    +)
    +
    +// AzureNodePoolEncryptionAtHostValidation validates that a node pool requesting encryption at
    +// host uses a VM size that supports it and that the EncryptionAtHost feature is registered for
    +// the customer's subscription. Node pools that do not request encryption at host are skipped.
    +type AzureNodePoolEncryptionAtHostValidation struct {
    +	resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader
    +	azureFPAClientBuilder    azureclient.FirstPartyApplicationClientBuilder
    +}
    +
    +func NewAzureNodePoolEncryptionAtHostValidation(resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader, azureFPAClientBuilder azureclient.FirstPartyApplicationClientBuilder) *AzureNodePoolEncryptionAtHostValidation {
    +	return &AzureNodePoolEncryptionAtHostValidation{
    +		resourceSKUsCachedReader: resourceSKUsCachedReader,
    +		azureFPAClientBuilder:    azureFPAClientBuilder,
    +	}
    +}
    +
    +var _ NodePoolValidation = (*AzureNodePoolEncryptionAtHostValidation)(nil)
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Name() string {
    +	return "AzureNodePoolEncryptionAtHostValidation"
    +}
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Validate(ctx context.Context, _ *coreapi.Cluster, nodePoolSubscription *coreapi.Subscription, nodePool *coreapi.NodePool) ValidationResult {
    +	if !nodePool.Properties.Platform.EnableEncryptionAtHost {
    +		return SkippedValidation(
    +			"NotApplicable",
    +			"Node pool does not request encryption at host.",
    +			"Node pool does not request encryption at host; encryption at host validation does not apply.",
    +		)
    +	}
    +
    +	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || *nodePoolSubscription.Properties.TenantId == "" {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"subscription is missing tenant ID",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	tenantID := *nodePoolSubscription.Properties.TenantId
    +	subscriptionID := nodePool.ID.SubscriptionID
    +
    +	vmSize := nodePool.Properties.Platform.VMSize
    +	sku, err := v.resourceSKUsCachedReader.GetVirtualMachineSKU(ctx, tenantID, subscriptionID, nodePool.Location, vmSize)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get resource SKU for VM size %q: %s", vmSize, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	supported, found := isCapabilityEncryptionAtHostSupported(sku)
    +	if !found {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("resource SKU for VM size %q is missing %s capability", vmSize, computeResourceSKUCapabilityNameEncryptionAtHostSupported),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	featuresClient, err := v.azureFPAClientBuilder.FeaturesClient(tenantID, subscriptionID)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to create features client: %s", err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	feature, err := featuresClient.Get(ctx, encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, nil)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get feature %s/%s: %s", encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	if feature.Properties == nil || feature.Properties.State == nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"feature properties or state is missing",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	var failureMessages []string
    +	if !supported {
    +		failureMessages = append(failureMessages, fmt.Sprintf("vm size %q does not support encryption at host", vmSize))
    +	}
    +	if *feature.Properties.State != featureRegistrationStateRegistered {

    do we want to ignore casing? We used to not ignore casing in CS but asking if this is something we want to consder

    miguelsorianod miguelsorianod commented on code on Oct 14, 2026 09:00 UTC
    Code Review
    backend/pkg/utils/validationutils/azure_nodepool_encryption_at_host_validation.go:1
    @@ -0,0 +1,143 @@
    +// Copyright 2026 Microsoft Corporation
    +//
    +// Licensed under the Apache License, Version 2.0 (the "License");
    +// you may not use this file except in compliance with the License.
    +// You may obtain a copy of the License at
    +//
    +//     http://www.apache.org/licenses/LICENSE-2.0
    +//
    +// Unless required by applicable law or agreed to in writing, software
    +// distributed under the License is distributed on an "AS IS" BASIS,
    +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +// See the License for the specific language governing permissions and
    +// limitations under the License.
    +
    +package validationutils
    +
    +import (
    +	"context"
    +	"fmt"
    +	"strings"
    +
    +	"github.com/Azure/ARO-HCP/backend/pkg/azure/cachedreader"
    +	azureclient "github.com/Azure/ARO-HCP/backend/pkg/azure/client"
    +	"github.com/Azure/ARO-HCP/internal/api/coreapi"
    +)
    +
    +const (
    +	// encryptionAtHostFeatureResourceProviderNamespace is the Azure Resource Provider namespace
    +	// that owns the EncryptionAtHost feature.
    +	encryptionAtHostFeatureResourceProviderNamespace = "Microsoft.Compute"
    +	// encryptionAtHostFeatureName is the Microsoft.Features feature name that gates a
    +	// subscription's ability to use encryption at host.
    +	encryptionAtHostFeatureName = "EncryptionAtHost"
    +	// featureRegistrationStateRegistered is the Microsoft.Features registration state value
    +	// indicating a feature is registered for a subscription.
    +	featureRegistrationStateRegistered = "Registered"
    +)
    +
    +// AzureNodePoolEncryptionAtHostValidation validates that a node pool requesting encryption at
    +// host uses a VM size that supports it and that the EncryptionAtHost feature is registered for
    +// the customer's subscription. Node pools that do not request encryption at host are skipped.
    +type AzureNodePoolEncryptionAtHostValidation struct {
    +	resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader
    +	azureFPAClientBuilder    azureclient.FirstPartyApplicationClientBuilder
    +}
    +
    +func NewAzureNodePoolEncryptionAtHostValidation(resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader, azureFPAClientBuilder azureclient.FirstPartyApplicationClientBuilder) *AzureNodePoolEncryptionAtHostValidation {
    +	return &AzureNodePoolEncryptionAtHostValidation{
    +		resourceSKUsCachedReader: resourceSKUsCachedReader,
    +		azureFPAClientBuilder:    azureFPAClientBuilder,
    +	}
    +}
    +
    +var _ NodePoolValidation = (*AzureNodePoolEncryptionAtHostValidation)(nil)
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Name() string {
    +	return "AzureNodePoolEncryptionAtHostValidation"
    +}
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Validate(ctx context.Context, _ *coreapi.Cluster, nodePoolSubscription *coreapi.Subscription, nodePool *coreapi.NodePool) ValidationResult {
    +	if !nodePool.Properties.Platform.EnableEncryptionAtHost {
    +		return SkippedValidation(
    +			"NotApplicable",
    +			"Node pool does not request encryption at host.",
    +			"Node pool does not request encryption at host; encryption at host validation does not apply.",
    +		)
    +	}
    +
    +	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || *nodePoolSubscription.Properties.TenantId == "" {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"subscription is missing tenant ID",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	tenantID := *nodePoolSubscription.Properties.TenantId
    +	subscriptionID := nodePool.ID.SubscriptionID
    +
    +	vmSize := nodePool.Properties.Platform.VMSize
    +	sku, err := v.resourceSKUsCachedReader.GetVirtualMachineSKU(ctx, tenantID, subscriptionID, nodePool.Location, vmSize)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get resource SKU for VM size %q: %s", vmSize, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	supported, found := isCapabilityEncryptionAtHostSupported(sku)
    +	if !found {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("resource SKU for VM size %q is missing %s capability", vmSize, computeResourceSKUCapabilityNameEncryptionAtHostSupported),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	featuresClient, err := v.azureFPAClientBuilder.FeaturesClient(tenantID, subscriptionID)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to create features client: %s", err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	feature, err := featuresClient.Get(ctx, encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, nil)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get feature %s/%s: %s", encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	if feature.Properties == nil || feature.Properties.State == nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"feature properties or state is missing",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	var failureMessages []string
    +	if !supported {
    +		failureMessages = append(failureMessages, fmt.Sprintf("vm size %q does not support encryption at host", vmSize))
    +	}
    +	if *feature.Properties.State != featureRegistrationStateRegistered {

    good question...

    Azure doesn't really provide documentation nor guidance about it so there's no answer nor consistent way and it depends on each case.

    In https://learn.microsoft.com/en-us/javascript/api/@azure/arm-features/subscriptionfeatureregistrationstate?view=azure-node-latest for example it documents the values cased. But then in the https://learn.microsoft.com/en-us/rest/api/resources/features/get?view=rest-resources-2021-07-01&tabs=HTTP sample response it shows lowercase

    The actual API call returns it cased:

    msoriano@localhost:~/go/src/github.com/Azure/ARO-HCP (add-np-encryptionathost-validation)(ocm:?)$ az feature show --namespace Microsoft.Compute --name EncryptionAtHost --query '{name:name, state:properties.state}' -o json
    {
      "name": "Microsoft.Compute/EncryptionAtHost",
      "state": "Registered"
    }
    

    So, who knows. It doesn't really seem possible to know what should be done and I suspect ignoring casing can be dangerous in some cases.

    I am going to ignore casing because of having seen differences in several written places. In this case because semantically they mean the same I am fine with ignoring the casing.

    machi1990 machi1990 commented on code on Oct 14, 2026 09:10 UTC
    Code Review
    backend/pkg/utils/validationutils/azure_nodepool_encryption_at_host_validation.go:1
    @@ -0,0 +1,143 @@
    +// Copyright 2026 Microsoft Corporation
    +//
    +// Licensed under the Apache License, Version 2.0 (the "License");
    +// you may not use this file except in compliance with the License.
    +// You may obtain a copy of the License at
    +//
    +//     http://www.apache.org/licenses/LICENSE-2.0
    +//
    +// Unless required by applicable law or agreed to in writing, software
    +// distributed under the License is distributed on an "AS IS" BASIS,
    +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +// See the License for the specific language governing permissions and
    +// limitations under the License.
    +
    +package validationutils
    +
    +import (
    +	"context"
    +	"fmt"
    +	"strings"
    +
    +	"github.com/Azure/ARO-HCP/backend/pkg/azure/cachedreader"
    +	azureclient "github.com/Azure/ARO-HCP/backend/pkg/azure/client"
    +	"github.com/Azure/ARO-HCP/internal/api/coreapi"
    +)
    +
    +const (
    +	// encryptionAtHostFeatureResourceProviderNamespace is the Azure Resource Provider namespace
    +	// that owns the EncryptionAtHost feature.
    +	encryptionAtHostFeatureResourceProviderNamespace = "Microsoft.Compute"
    +	// encryptionAtHostFeatureName is the Microsoft.Features feature name that gates a
    +	// subscription's ability to use encryption at host.
    +	encryptionAtHostFeatureName = "EncryptionAtHost"
    +	// featureRegistrationStateRegistered is the Microsoft.Features registration state value
    +	// indicating a feature is registered for a subscription.
    +	featureRegistrationStateRegistered = "Registered"
    +)
    +
    +// AzureNodePoolEncryptionAtHostValidation validates that a node pool requesting encryption at
    +// host uses a VM size that supports it and that the EncryptionAtHost feature is registered for
    +// the customer's subscription. Node pools that do not request encryption at host are skipped.
    +type AzureNodePoolEncryptionAtHostValidation struct {
    +	resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader
    +	azureFPAClientBuilder    azureclient.FirstPartyApplicationClientBuilder
    +}
    +
    +func NewAzureNodePoolEncryptionAtHostValidation(resourceSKUsCachedReader cachedreader.VirtualMachineResourceSKUsCachedReader, azureFPAClientBuilder azureclient.FirstPartyApplicationClientBuilder) *AzureNodePoolEncryptionAtHostValidation {
    +	return &AzureNodePoolEncryptionAtHostValidation{
    +		resourceSKUsCachedReader: resourceSKUsCachedReader,
    +		azureFPAClientBuilder:    azureFPAClientBuilder,
    +	}
    +}
    +
    +var _ NodePoolValidation = (*AzureNodePoolEncryptionAtHostValidation)(nil)
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Name() string {
    +	return "AzureNodePoolEncryptionAtHostValidation"
    +}
    +
    +func (v *AzureNodePoolEncryptionAtHostValidation) Validate(ctx context.Context, _ *coreapi.Cluster, nodePoolSubscription *coreapi.Subscription, nodePool *coreapi.NodePool) ValidationResult {
    +	if !nodePool.Properties.Platform.EnableEncryptionAtHost {
    +		return SkippedValidation(
    +			"NotApplicable",
    +			"Node pool does not request encryption at host.",
    +			"Node pool does not request encryption at host; encryption at host validation does not apply.",
    +		)
    +	}
    +
    +	if nodePoolSubscription.Properties == nil || nodePoolSubscription.Properties.TenantId == nil || *nodePoolSubscription.Properties.TenantId == "" {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"subscription is missing tenant ID",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	tenantID := *nodePoolSubscription.Properties.TenantId
    +	subscriptionID := nodePool.ID.SubscriptionID
    +
    +	vmSize := nodePool.Properties.Platform.VMSize
    +	sku, err := v.resourceSKUsCachedReader.GetVirtualMachineSKU(ctx, tenantID, subscriptionID, nodePool.Location, vmSize)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get resource SKU for VM size %q: %s", vmSize, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	supported, found := isCapabilityEncryptionAtHostSupported(sku)
    +	if !found {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("resource SKU for VM size %q is missing %s capability", vmSize, computeResourceSKUCapabilityNameEncryptionAtHostSupported),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +	featuresClient, err := v.azureFPAClientBuilder.FeaturesClient(tenantID, subscriptionID)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to create features client: %s", err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	feature, err := featuresClient.Get(ctx, encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, nil)
    +	if err != nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			fmt.Sprintf("failed to get feature %s/%s: %s", encryptionAtHostFeatureResourceProviderNamespace, encryptionAtHostFeatureName, err),
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	if feature.Properties == nil || feature.Properties.State == nil {
    +		return UnknownValidation(
    +			"InternalError",
    +			"Unable to verify encryption at host support.",
    +			"feature properties or state is missing",
    +			ControllerReportingPolicyTypeError,
    +		)
    +	}
    +
    +	var failureMessages []string
    +	if !supported {
    +		failureMessages = append(failureMessages, fmt.Sprintf("vm size %q does not support encryption at host", vmSize))
    +	}
    +	if *feature.Properties.State != featureRegistrationStateRegistered {

    Makes sense to ignore casing and thank you for the fix and detailed followup on this

    machi1990 machi1990 approved these changes on Oct 14, 2026 09:11 UTC
    Approved Reviewer

    /lgtm

    openshift-ci[bot] openshift-ci[bot] commented on Oct 14, 2026 09:11 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/Azure/ARO-HCP/pull/7498#pullrequestreview-5515603478" title="LGTM">machi1990</a>, <a href="https://github.com/Azure/ARO-HCP/pull/7498#" title="Author self-approved">miguelsorianod</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~backend/OWNERS~~ [machi1990,miguelsorianod]

  • ~~test-integration/OWNERS~~ [miguelsorianod]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Copilot Copilot commented on code on Oct 14, 2026 09:12 UTC
    Code Review
    backend/pkg/controllers/nodepool/registration.go:1
    @@ -383,6 +402,7 @@ func Register(registry map[string]controllerconfig.ControllerRegistration) {
     	registry[strings.ToLower(nodepoolstatus.NodePoolRequirementsValidAggregatorControllerName)] = registerNodePoolRequirementsValidAggregatorController()
     	registry[strings.ToLower(nodepoolvalidation.NodePoolValidationAzureVMSizeSupportsEphemeralOSDiskValidationControllerName)] = registerAzureVMSizeSupportsEphemeralOSDiskValidationController()
     	registry[strings.ToLower(nodepoolvalidation.NodePoolValidationAzureNodePoolVMQuotaValidationControllerName)] = registerAzureNodePoolVMQuotaValidationController()
    +	registry[strings.ToLower(nodepoolvalidation.NodePoolValidationAzureNodePoolEncryptionAtHostValidationControllerName)] = registerAzureNodePoolEncryptionAtHostValidationController()

    The PR description does not reference a Jira/GitHub tracking ticket or explain why no ticket exists. CONTRIBUTING.md:98-101 requires one of those before merge; please update the PR metadata.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Oct 14, 2026 09:12 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟡 Changes recommended

    Required controller-flow documentation and a tracking-ticket reference are missing.

    <details open>
    <summary><strong>2 open findings</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture> Add tracking ticket or explain why none exists · New

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/low-v2-light.png" alt="Low severity" width="62" height="18" align="texttop"></picture> Regenerate Cosmos data-flow documentation for new controller

  • </details>

    <details>
    <summary><strong>1 resolved since last review</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> Add Microsoft.Features read permission to DEV/CSPR mock role

  • </details>

    <details>
    <summary>Files not reviewed (2)</summary>

    backend/pkg/azure/client/mock_features_client.go: Generated file
    backend/pkg/azure/client/mock_fpa_client_builder.go: Generated file
    </details>

    🧠 Review effort: Balanced

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 14, 2026 09:43 UTC
    Bot

    Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
    /test e2e-parallel

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 14, 2026 12:52 UTC
    Bot

    /retest-required

    Remaining retests: 0 against base HEAD 4a04076b8f4563d63b3f7b265c14c30b0890e732 and 2 for PR HEAD 814133ccb42b63d5c700439f9f596b28801d82cb in total

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 14, 2026 19:26 UTC
    Bot

    /retest-required

    Remaining retests: 0 against base HEAD a509eebe04553eee0b2c11754a6c6387b4e633ad and 1 for PR HEAD 814133ccb42b63d5c700439f9f596b28801d82cb in total

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 15, 2026 02:28 UTC
    Bot

    /retest-required

    Remaining retests: 0 against base HEAD 56e655b05d089072840185c67940ec3f670c8773 and 0 for PR HEAD 814133ccb42b63d5c700439f9f596b28801d82cb in total

    openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Oct 15, 2026 05:34 UTC
    Bot

    /hold

    Revision 814133ccb42b63d5c700439f9f596b28801d82cb was retested 3 times: holding

    openshift-ci[bot] openshift-ci[bot] commented on Oct 18, 2026 07:50 UTC
    Bot

    PR needs rebase.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
    </details>

    openshift-ci[bot] openshift-ci[bot] commented on Oct 27, 2026 14:54 UTC
    Bot

    @miguelsorianod: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

    Test name | Commit | Details | Required | Rerun command
    --- | --- | --- | --- | ---
    ci/prow/e2e-parallel | 814133ccb42b63d5c700439f9f596b28801d82cb | link | true | /test e2e-parallel
    ci/prow/podman-integration | 814133ccb42b63d5c700439f9f596b28801d82cb | link | true | /test podman-integration
    ci/prow/podman-mega-linter | 814133ccb42b63d5c700439f9f596b28801d82cb | link | true | /test podman-mega-linter

    Full PR test history. Your PR dashboard.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
    </details>
    <!-- test report -->

    Reviewers
    Assignees
    miguelsorianod miguelsorianod
    Labels
    risk: low confidence: 88.9% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 93.7% (HIGH) · Higher = larger blast radius
    93.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.9% · Lower = rushed or shallow review
    88.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 10.4% · Safe to merge
    10.4%
    Repository