Skip to content

[azure-security-attestation-cpp] Use non-deprecated syntax#40203

Merged
BillyONeal merged 3 commits intomicrosoft:masterfrom
antkmsft:azsdk-attestation-context-syntax-patch
Aug 1, 2024
Merged

[azure-security-attestation-cpp] Use non-deprecated syntax#40203
BillyONeal merged 3 commits intomicrosoft:masterfrom
antkmsft:azsdk-attestation-context-syntax-patch

Conversation

@antkmsft
Copy link
Copy Markdown
Member

Updating a single line in the released SDK to a syntax that works with both old and new azure-core-cpp versions. The old syntax will be deprecated in the upcoming azure-core-cpp release, which, if not fixed, will result in deprecation warnings (potentially treated as errors) for the existing azure-security-attestation-cpp customers.

Cheney-W
Cheney-W previously approved these changes Aug 1, 2024
@Cheney-W Cheney-W added category:port-bug The issue is with a library, which is something the port should already support info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. labels Aug 1, 2024
@BillyONeal
Copy link
Copy Markdown
Member

Has this been submitted upstream?

@antkmsft antkmsft force-pushed the azsdk-attestation-context-syntax-patch branch from 9d90698 to cdb2942 Compare August 1, 2024 19:46
@antkmsft
Copy link
Copy Markdown
Member Author

antkmsft commented Aug 1, 2024

@BillyONeal, I have updated the PR so that it matches the line numbers exactly, so it is easier to verify visually.

Thank you for checking - yes, this change is in azure-sdk-for-cpp repo, see the latest main - https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/attestation/azure-security-attestation/inc/azure/attestation/attestation_client.hpp#L187

The line numbers have changed since then, but here would be this line in the azure-security-attestation_1.1.0 release - https://github.com/Azure/azure-sdk-for-cpp/blob/azure-security-attestation_1.1.0/sdk/attestation/azure-security-attestation/inc/azure/attestation/attestation_client.hpp#L176-L179 (GetOpenIdMetadata() function). And if you look around, {} for the context parameter is used in other functions in the same file.

We just feel, this change is not sufficient to make another release of azure-security-attestation, so we just patch it. In the upcoming azure-core-cpp release, Context::ApplicationContext is deprecated: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/core/azure-core/inc/azure/core/context.hpp#L379-L381

We also have the same change made for our vcpkg registry which we use for beta releases, https://github.com/Azure/azure-sdk-vcpkg-betas

@BillyONeal BillyONeal merged commit b8ac669 into microsoft:master Aug 1, 2024
@BillyONeal
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants