feat(external-call): Add HTTP extension service client#442
Closed
trusch wants to merge 2 commits into
Closed
Conversation
|
✅ All required contributors have signed the CLA for this PR. Thank you! |
741cbad to
cc8088d
Compare
cc8088d to
edc6e9d
Compare
edc6e9d to
50e44bc
Compare
50e44bc to
d8190c0
Compare
9145be1 to
98e5c16
Compare
- Extend ActionDescription with external call results - Update participant_transaction.proto - Update ViewParticipantData - Update NodeHashBuilder for external call hashing
6f57aba to
01ad572
Compare
- Add ExtensionServiceConfig for configuration - Implement HttpExtensionServiceClient with retry logic - Add ExtensionServiceManager for service routing - Add ExtensionValidator for DAR validation - Add ExtensionServiceExternalCallHandler bridge
01ad572 to
42652d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the HTTP client infrastructure for making external service calls. It provides an implementation with retry logic, authentication, TLS support, and connection pooling.
Requires #441
Changes
Configuration (
ExtensionServiceConfig.scala)Service Interface (
ExtensionService.scala)HTTP Client (
HttpExtensionServiceClient.scala)Features:
HttpClientacross callsRetry-Afterheader (429, 503)Service Manager (
ExtensionServiceManager.scala)Validator (
ExtensionValidator.scala)Validates DAR packages against extension configuration:
Engine Bridge (
ExtensionServiceExternalCallHandler.scala)Engine Config (
CantonEngineConfig.scala)extensionsconfiguration sectionCanton Configuration Example
Testing
This will be covered by integration tests in the daml repo.