-
Notifications
You must be signed in to change notification settings - Fork 380
MSI POP Attestation #5612
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
base: main
Are you sure you want to change the base?
MSI POP Attestation #5612
Conversation
| } | ||
| } | ||
| } | ||
| // This file intentionally left empty. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we delete this project? do we need this?
| @@ -0,0 +1,44 @@ | |||
| <Project Sdk="Microsoft.NET.Sdk"> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we update the name to Microsoft.Identity.Client.Attestation or Microsoft.Identity.Client.KeyAttestation
| CsrMetadata csrMetadata = await GetCsrMetadataAsync(_requestContext).ConfigureAwait(false); | ||
|
|
||
| // Validate that mTLS PoP requires KeyGuard - fail fast before network calls | ||
| if (_isMtlsPopRequested) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong condition. Your comment is very clear,
- Attempt attestation only for KeyGuard keys when provider is available
- For non-KeyGuard keys (Hardware, InMemory), proceed with non-attested flow
| if (provider == null) | ||
| { | ||
| _requestContext.Logger.Info("[ImdsV2] No attestation provider configured. Proceeding with non-attested flow."); | ||
| return string.Empty; // Empty attestation token indicates non-attested flow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will MIRP accept an empty attestation string? has this been tested?
|
|
||
| // CreateManagedIdentityAsync does a probe; Add one more CSR response for the actual acquire. | ||
| httpManager.AddMockHandler(MockHelpers.MockCsrResponse()); | ||
| // Add mocks for successful non-attested flow (CSR + issuecredential + token) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we need to update existing POP tests to use WithAttestationSupport()
Implements #5591