sundapeng opened a new pull request, #7270:
URL: https://github.com/apache/paimon/pull/7270

   ### Purpose
   
   Improve Paimon REST OpenAPI nonce generation and auth code (Inspired by 
aliyun/tea-java approach.): 
   - Use UUID + timestamp + thread ID for nonce instead of UUID alone, because 
UUID can collide in VMs.;
   - Replace `SimpleDateFormat` with `DateTimeFormatter`;
   - Add null checks in `signHeaders` and `authorization`.
   
   ### Tests
   
   - `DLFRequestSignerTest#testOpenApiSignHeadersWithEnhancedNonce` — nonce 
format (UUID, timestamp, thread ID)
   - `DLFRequestSignerTest#testConcurrentNonceGeneration` — concurrent nonce 
uniqueness
   
   ### API and Format
   
   No. Internal REST auth improvement only; no public API or storage format 
change.
   
   ### Documentation
   
   No. Internal improvement only.
   
   ### Generative AI tooling
   
   No.


-- 
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