-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[Confidential Ledger][Data Plane] Introduce new API version 2023-01-18-preview #21659
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
[Confidential Ledger][Data Plane] Introduce new API version 2023-01-18-preview #21659
Conversation
Hi, @andpiccione Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected] |
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
common.json | 2023-01-18-preview(57d59d4) | 2022-05-13(main) |
common.json | 2023-01-18-preview(57d59d4) | 2022-20-04-preview(main) |
identityservice.json | 2023-01-18-preview(57d59d4) | 2022-05-13(main) |
identityservice.json | 2023-01-18-preview(57d59d4) | 2022-20-04-preview(main) |
The following breaking changes are detected by comparison with the latest stable version:
Rule | Message |
---|---|
Runtime Exception |
"new":"https://github.com/Azure/azure-rest-api-specs/blob/57d59d4c04fd70c6e6f2692e9f32ee823bd990ad/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/preview/2023-01-18-preview/confidentialledger.json", "old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-05-13/confidentialledger.json", "details":"Command failed: dotnet "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.49/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/@azure/oad/dlls/OpenApiDiff.dll" -o /tmp/old-resolved.json -n /tmp/new-resolved.json\nUnhandled exception. Newtonsoft.Json.JsonReaderException: JSON integer 9223372036854776000 is too large or small for an Int64. Path 'parameters.CommitParameter.maximum', line 1, position 40197.\n at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\n at Newtonsoft.Json.JsonTextReader.ParseValue()\n at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)\n at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JObject.Parse(String json)\n at AutoRest.Swagger.JsonConverters.PathL" |
The following breaking changes are detected by comparison with the latest preview version:
Rule | Message |
---|---|
Runtime Exception |
"new":"https://github.com/Azure/azure-rest-api-specs/blob/57d59d4c04fd70c6e6f2692e9f32ee823bd990ad/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/preview/2023-01-18-preview/confidentialledger.json", "old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/confidentialledger/data-plane/Microsoft.ConfidentialLedger/preview/2022-20-04-preview/confidentialledger.json", "details":"Command failed: dotnet "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.49/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/@azure/oad/dlls/OpenApiDiff.dll" -o /tmp/old-resolved.json -n /tmp/new-resolved.json\nUnhandled exception. Newtonsoft.Json.JsonReaderException: JSON integer 9223372036854776000 is too large or small for an Int64. Path 'parameters.CommitParameter.maximum', line 1, position 40081.\n at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)\n at Newtonsoft.Json.JsonTextReader.ParseValue()\n at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)\n at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)\n at Newtonsoft.Json.Linq.JObject.Parse(String json)\n at AutoRest.Swagger.JsonConverters.PathL" |
The operation id has been changed from 'ConfidentialLedgerIdentityService_GetLedgerIdentity' to 'GetLedgerIdentity'. This will impact generated code. New: Microsoft.ConfidentialLedger/preview/2023-01-18-preview/identityservice.json#L33:7 Old: Microsoft.ConfidentialLedger/preview/2022-20-04-preview/identityservice.json#L33:7 |
|
The new version is missing a property found in the old version. Was 'innererror' renamed or removed? New: Microsoft.ConfidentialLedger/preview/2023-01-18-preview/common.json#L22:7 Old: Microsoft.ConfidentialLedger/preview/2022-20-04-preview/common.json#L22:7 |
|
The new version is missing a property found in the old version. Was 'innererror' renamed or removed? New: Microsoft.ConfidentialLedger/preview/2023-01-18-preview/common.json#L22:7 Old: Microsoft.ConfidentialLedger/preview/2022-20-04-preview/common.json#L22:7 |
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌
LintDiff: 2 Errors, 92 Warnings failed [Detail]
compared tags (via openapi-validator v2.0.0) | new version | base version |
---|---|---|
package-2023-01-18-preview-ledger | package-2023-01-18-preview-ledger(57d59d4) | default(main) |
package-2023-01-18-preview-identity | package-2023-01-18-preview-identity(57d59d4) | default(main) |
[must fix]The following errors/warnings are introduced by current PR:
Only 30 items are listed, please refer to log for more details.
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
ApiReadinessCheck succeeded [Detail] [Expand]
️⚠️
~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]
API Test is not triggered due to precheck failure. Check pipeline log for details.
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
CadlAPIView succeeded [Detail] [Expand]
️️✔️
TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️
TypeSpec Validation succeeded [Detail] [Expand]
Validation passes for TypeSpec Validation.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger pipeline restarted successfully, please wait for status update in this comment. |
Generated ApiView
|
...tialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-11-23/confidentialledger.json
Outdated
Show resolved
Hide resolved
...tialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-11-23/confidentialledger.json
Outdated
Show resolved
Hide resolved
...tialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-11-23/confidentialledger.json
Outdated
Show resolved
Hide resolved
...tialledger/data-plane/Microsoft.ConfidentialLedger/stable/2022-11-23/confidentialledger.json
Outdated
Show resolved
Hide resolved
…l-ledger-2022-11-23-api-specs
Hi, @andpiccione, For review efficiency consideration, when creating a new api version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Or you could onboard API spec pipeline |
My first commit included the base API specs version, with just a change to the version number. Hopefully this should suffice. |
…l-ledger-2022-11-23-api-specs
@jhendrixMSFT This PR is approved and ready to merge. |
@mikekistler Thanks for pushing this through. Before merging, we would like to just resolve the last two unresolved comments above and make the required changes in our backend to comply with the latest model changes. We will drop a message here when we are ready to merge. |
Hi, @andpiccione. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove |
Hi, @andpiccione. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove |
Hi, @andpiccione. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove |
Hi, @andpiccione. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove |
…l-ledger-2022-11-23-api-specs
…l-ledger-2022-11-23-api-specs
@jhendrixMSFT The PR is almost ready to be merged (just waiting for a few changes to be finalized on our backend, I'll drop a message here when they are merged so we can close this too), but I just want to make sure there are no other blockers related to the CI checks failing. The failures have been documented in the PR comments above, please let me know if there is anything else that needs to be addressed or if there is some other workaround for these. Thanks! |
@jhendrixMSFT @lmazuel The PR is ready to be merged. |
Merging, since I see approval from @mikekistler and @JeffreyRichter after the request changes from @markweitzel , so I assume it's ok to merge. |
Data Plane API - Pull Request
This PR adds new Data Plane API specifications for Azure Confidential Ledger. The new API version (
2023-01-18-preview
) adds a newapplicationClaims
object field to the response payload of the write transaction receipt returned by a Confidential Ledger resource through theGetReceipt
operation.For context, application claims are arbitrary data that can be attached to write transactions by an Azure Confidential Ledger application, and they effectively represent statements of what was executed during a write operation. When application claims are attached to a transaction, the SHA-256 digest of the claims object is appended to the ledger and committed as part of the write transaction itself (thus, the digest is signed in place and cannot be tampered with).
Application claims can later be revealed in their "plain" / un-digested form in the receipt payload corresponding to the same transaction where claims have been added. Users can leverage the information attached to the receipt to "re-compute" the same claims digest that was attached and signed in place by the Azure Confidential Ledger instance during the transaction. The claims digest can be used as part of the write transaction receipt verification process and allows users to fully verify offline the authenticity of the recorded claims.
More details about application claims can also be found at the following CCF documentation links:
API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.
Is this review for (select one):
Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.
❔Got questions? Need additional info?? We are here to help!
Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.
Click here for links to tools, specs, guidelines & other good stuff
Tooling
Guidelines & Specifications
Helpful Links
fix #21804