ASN Hex 1609.2 Signature Retention (ITSA)#596
Conversation
…ctor UdpHexDecoder to extract and log untrimmed payload hex
….1 strings end with expected values across multiple receiver test classes.
…o-commit interval and add fetch-max-wait, retries, and linger.ms properties.
…type and improve packet description for troubleshooting.
| @@ -1,16 +1,14 @@ | |||
| /******************************************************************************* | |||
| * Copyright 2018 572682 | |||
There was a problem hiding this comment.
Year needs to be updated.
There was a problem hiding this comment.
nitpick: also the copyright holder is named USDOT not 572682
There was a problem hiding this comment.
@dan-du-car @iyourshaw I agree with these comments, but the cause of this issue is out of scope for this PR. A complete solution to the issue being raised would require a standalone PR to address across the codebase.
I will update this PR to remove the autoformatting changes to these sections, but don't plan to address this problem in this PR.
There was a problem hiding this comment.
@dan-du-car same response as in this comment
| int off = packet.getOffset(); | ||
| byte[] data = packet.getData(); | ||
| // int end = Math.min(off + len, data.length); | ||
| // int actualLen = Math.max(0, end - off); |
There was a problem hiding this comment.
remove commented out code
There was a problem hiding this comment.
This is resolved now.
| consumer: | ||
| enable-auto-commit: true | ||
| auto-commit-interval: 1000 | ||
| auto-commit-interval: 100 |
There was a problem hiding this comment.
can this interval be configurable? Is 100 the best choice?
There was a problem hiding this comment.
This was for optimizing message latency and I agree that it should be configurable. I will have it take KAFKA_AUTO_COMMIT_INTERVAL as and environmental override and default back to the previous value.
There was a problem hiding this comment.
Please update readme or other document that describe (including feature, purpose, interface etc) the modules in the architecture diagram. If the module codebase exist, please add link to the codebase.
There was a problem hiding this comment.
|
@Michael7371 "Adding signature retention to metadata.asn1 field before stripping signature header off for decoding." I see the asn1 field is populated in the metadata, but where the signature retention logic is added? |
… to include KAFKA_AUTO_COMMIT_INTERVAL environment variable; enhance README with architecture module reference and improve documentation structure in Architecture.md.
…ove error logging for header stripping failures. Update multiple receiver tests to remove assertions on ASN.1 string endings, ensuring consistency across test cases.
…ngs in JSON output. Update tests to validate that metadata matches CodecUtils serialization, enhancing reliability across various message types.
The signature retention logic is added to the UdpHexDecoder's |
iyourshaw
left a comment
There was a problem hiding this comment.
The updates look good.
Just noticed an issue with the unit tests that is important, plus a few nitpicks.
…c OdeMsgPayload type. Update multiple receiver tests to utilize parameterized tests for improved readability and maintainability, ensuring consistent setup and teardown processes across test classes. Reverting default UDP receiver tests to use unsigned messaging. Added additional tests with signed messages.
…MP header" across multiple test classes for consistency. Refactor test input formatting for improved readability. Adjust test files to ensure proper newline endings and correct expected output values.
…ues and ensure proper newline endings. Remove unnecessary commas in JSON validation file for cleaner formatting.
| @@ -1 +1 @@ | |||
| 0022e12d18466c65c1493800000e00e4616183e85a8f0100c000038081bc001480b8494c4c950cd8cde6e9651116579f22a424dd78fffff00761e4fd7eb7d07f7fff80005f11d1020214c1c0ffc7c016aff4017a0ff65403b0fd204c20ffccc04f8fe40c420ffe6404cefe60e9a10133408fcfde1438103ab4138f00e1eec1048ec160103e237410445c171104e26bc103dc4154305c2c84103b1c1c8f0a82f42103f34262d1123198103dac25fb12034ce10381c259f12038ca103574251b10e3b2210324c23ad0f23d8efffe0000209340d10000004264bf00 No newline at end of file | |||
| 001480b8494c4c950cd8cde6e9651116579f22a424dd78fffff00761e4fd7eb7d07f7fff80005f11d1020214c1c0ffc7c016aff4017a0ff65403b0fd204c20ffccc04f8fe40c420ffe6404cefe60e9a10133408fcfde1438103ab4138f00e1eec1048ec160103e237410445c171104e26bc103dc4154305c2c84103b1c1c8f0a82f42103f34262d1123198103dac25fb12034ce10381c259f12038ca103574251b10e3b2210324c23ad0f23d8efffe0000209340d10000004264bf00 No newline at end of file | |||
There was a problem hiding this comment.
I removed the message signature on this sample payload
| @@ -1 +1 @@ | |||
| 011d0000201a0000021bd86891de75f84da101c13f042e2214141fff00022c2000270000000163b2cc7986010000 No newline at end of file | |||
| 00201a0000021bd86891de75f84da101c13f042e2214141fff00022c2000270000000163b2cc7986010000 No newline at end of file | |||
There was a problem hiding this comment.
Same payload with removed message signature.
…l test methods for improved clarity and maintainability. Update test input handling and ensure consistent formatting across all receiver test classes.
…for cleaner code.
…d of ASD signatures.
iyourshaw
left a comment
There was a problem hiding this comment.
looks good, issues have been addressed & verified unit tests pass
PR Details
Description
metadata.asn1field before stripping signature header off for decoding.Related Issue
N/A
Motivation and Context
Updates to the ODE that are required for the ITSA direct -> network V2X exchange work.
How Has This Been Tested?
Types of changes
Checklist:
ODE Contributing Guide