Skip to content

Conversation

@melissaahn
Copy link
Contributor

Summary

See https://github.com/AzureAD/ad-accounts-for-android/pull/3300. We are going to keep it consistent and also remove this check for broker app validation (but put a feature flag just in case).
AB#3437920

Copilot AI review requested due to automatic review settings January 5, 2026 23:00
@melissaahn melissaahn requested a review from a team as a code owner January 5, 2026 23:00
@melissaahn melissaahn added the No-Changelog This Pull-Request has no associated changelog entry. label Jan 5, 2026
@github-actions github-actions bot changed the title Removing cert chain check from broker app verification Removing cert chain check from broker app verification, Fixes AB#3437920 Jan 5, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the certificate chain validation check from broker app verification by default, while introducing a feature flag to re-enable it if needed. This change aligns with a similar modification in the broker repository (referenced PR #3300).

Key Changes:

  • Added a new feature flag RE_ENABLE_VALIDATE_SIGNING_CERT_CHAIN_BROKER_APPS (default: false) to control certificate chain validation
  • Modified BrokerValidator.validateSigningCertificate() to conditionally perform certificate chain validation only when the feature flag is enabled
  • The signature thumbprint validation (verifySignatureHash) remains active in all cases; only the chain validation logic is now gated

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
common4j/src/main/com/microsoft/identity/common/java/flighting/CommonFlight.java Adds the RE_ENABLE_VALIDATE_SIGNING_CERT_CHAIN_BROKER_APPS feature flag enum with default value false to allow disabling certificate chain validation by default while maintaining rollback capability
common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerValidator.kt Wraps the certificate chain validation logic in a feature flag check, ensuring the validation is only executed when RE_ENABLE_VALIDATE_SIGNING_CERT_CHAIN_BROKER_APPS is enabled; imports the required flighting classes

@melissaahn melissaahn merged commit 0ef7eb7 into dev Jan 7, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-Changelog This Pull-Request has no associated changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants