Skip to content

Flag Usage of ManagedIdentityCredentialBuilder.fromObjectId(String objectId) #27

@Njeriiii

Description

@Njeriiii

Need to implement a check to flag calls to methods like ManagedIdentityCredentialBuilder.fromObjectId(String objectId). These methods are intended for very specific scenarios, and their usage should be limited. Instead, developers are encouraged to use other methods such as ManagedIdentityCredentialBuilder.resourceId(String resourceId) or ManagedIdentityCredentialBuilder.clientId(String clientId).

Implementation Details:

  1. Detect calls to ManagedIdentityCredentialBuilder.fromObjectId(String objectId).
  2. Flag these calls and display the suggested message.
  3. Provide links to the documentation or source code for ManagedIdentityCredentialBuilder.resourceId(String resourceId) and ManagedIdentityCredentialBuilder.clientId(String clientId).

Note:
warn that it's for a very niche scenario and while it will pass at dev time will likely fail after deployment. This is just to shift-left detection of bugs in customer code to reduce support costs for the 99% of users who this will be the wrong thing to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions