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

database: Add ManagedServiceIdentity struct to ResourceDocument #1364

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

mbarnes
Copy link
Collaborator

@mbarnes mbarnes commented Feb 18, 2025

What this PR does

Cluster Service holds the user-assigned identities that are present in the top-level "identity" section of a cluster resource, but the other fields of that section were being lost.

Currently the other "identity" fields should have

  "identity": {
    "principalId": "",
    "tenantId": "",
    "type": "UserAssigned"
  }

but we should not be assuming this.

The RP is required to include the top-level "identity" section in full when returning a cluster resource in a response body. Therefore we will stash these remaining "identity" fields in Cosmos DB alongside the Azure system metadata and resource tags.

Jira: no Jira; observed during testing

Cluster Service holds the user-assigned identities that are present
in the top-level "identity" section of a cluster resource, but the
other fields of that section were being lost.

Currently the other "identity" fields should have

  "identity": {
    "principalId": "",
    "tenantId": "",
    "type": "UserAssigned"
  }

but we should not be assuming this.

The RP is required to include the top-level "identity" section in
full when returning a cluster resource in a response body. There-
fore we will stash these remaining "identity" fields in Cosmos DB
alongside the Azure system metadata and resource tags.
@mbarnes mbarnes merged commit 28f409d into main Feb 18, 2025
20 checks passed
@mbarnes mbarnes deleted the store-identity-type branch February 18, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants