DanielLeens commented on PR #13698:
URL: https://github.com/apache/seatunnel/pull/13698#issuecomment-7246704551

   ### Implementation Notes and Trade-offs
   
   Head: 3cd1038fcdd87a86f815991e9eadab74022dcd83
   
   The connector owns the seller-finance read lifecycle: fixed identity-origin 
refresh POST, cached user token, fixed finance-origin GET with marketplace, 
native date/offset navigation, complete-page validation, bounded publication, 
and state capture. Transactions retain optional native identifiers and a 
separate transaction type; payouts require their native ID. Full JSON preserves 
nested/null fields and numeric values without flattening.
   
   The native date filters are inclusive with millisecond precision. The source 
exposes a half-open window and subtracts one millisecond at each slice upper 
bound. Slices are disjoint and at most 365 days, below the provider's 36-month 
filter maximum. The upper bound freezes once at enumeration. Actual next links 
must retain origin, endpoint, limit and exact date filter, and advance the 
numeric offset before a request is reconstructed. Explicit 204 or zero-total 
results are empty pages.
   
   A generic HTTP source would not carry this refresh lifecycle, date-slice 
recovery or signed request profile. Blind token POST retries were rejected 
because their outcome can be ambiguous. Filtering only the emitted prefix would 
miss changed unpublished or excluded raw records, so checkpoints verify 
canonical complete-page content. One bounded split keeps slice/resource 
traversal deterministic without touching shared engine or HTTP infrastructure.
   
   Optional signature generation uses the JDK 11 RSA/SHA-256 implementation 
with operator-provided PKCS8 private material and the native JWE from the same 
keypair. The GET profile covers the signature key, method, path, authority and 
creation time. There is no new signing SDK, automatic key registration, 
cryptographic provider installation, or private-key logging. The built-in Java 
11 path deliberately requires RSA keypairs; Ed25519 would require a different 
runtime or dependency boundary.
   
   Checkpoints exclude provider records, tokens, client secrets, private keys 
and certificates. Restore checks environment, application/refresh-token 
identity, marketplace, configured dates, resource order, page size and slice 
width. The application secret and valid signing material can rotate. Terminal 
and empty windows acquire no token. Live-list mutation, provider five-year 
retention and seller permissions remain external constraints.
   
   Actual validation was scoped Java 11 Spotless apply/check plus 
source/packaging/configuration/documentation, exact path/hash/whitespace/ASF 
and type-documentation checks. Twenty real engine methods, seven packaged 
recovery modes and three engine savepoint paths were authored. The independent 
test peer verifies native authentication and RSA signatures without calling 
production helpers. None ran locally. Compilation, runtime and live-provider 
interoperability remain pending GitHub CI; this initial PR is handed off for 
subsequent CI/comment maintenance without claiming merge or production 
readiness.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to