Skip to content
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

Retain IEEE 1609.2 Security Headers #65

Merged
merged 14 commits into from
Apr 16, 2024
Merged

Retain IEEE 1609.2 Security Headers #65

merged 14 commits into from
Apr 16, 2024

Conversation

drewjj
Copy link
Collaborator

@drewjj drewjj commented Mar 15, 2024

PR Details

Description

Includes updates to both the UDP endpoints and the log ingest endpoint to ensure ASN.1 encoded messages are recorded in Kafka with signed IEEE 1609.2 security headers on them (when present).

The log ingestion no longer deposits J2735 message types directly to the topic.Asn1DecoderInput topic, instead routes the messages depending upon their message type to the corresponding topic.OdeRawEncodedXJson topic.

The UDP endpoints now build out proper OdeData objects before depositing ASN.1 messages to their corresponding topic.OdeRawEncodedXJson topic. This is to ensure all data within the RawEncoded topics conform to the same message structure.

Everything downstream from the RawEncoded topics remain unaffected by these changes. (topic.Asn1DecoderInput and beyond)

Related Issue

N/A

Motivation and Context

  • Support misbehavior detection and allow reporting of the original messages and their security headers
  • Allow for easier troubleshooting and message replay for all endpoints

How Has This Been Tested?

  • Unit tests
  • Local jpo-ode Dockerized environment
  • CDOT GCP K8s cluster with Confluent Cloud

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
    ODE Contributing Guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@drewjj drewjj changed the title Udp security headers Retain IEEE 1609.2 Security Headers Mar 15, 2024
Copy link
Member

@dmccoystephenson dmccoystephenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are some pretty exciting changes! I've left a few questions/comments.

Also, I ran the unit tests in the dev container and a few of the tests for the File Upload Controller failed:
image

image

Note: I've yet to run the solution and send data through with these changes.

@drewjj
Copy link
Collaborator Author

drewjj commented Mar 20, 2024

These are some pretty exciting changes! I've left a few questions/comments.

Also, I ran the unit tests in the dev container and a few of the tests for the File Upload Controller failed: image

image

Note: I've yet to run the solution and send data through with these changes.

I fixed these test failures. I originally removed several threads that weren't clear to me on their purpose. I think they are actually for the port 8080 site's log upload so it is good I add these back.

All your comments should now be addressed as well.

Copy link
Member

@dmccoystephenson dmccoystephenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good & the unit tests pass now, just a few comments:

  1. The ODE Data Flow Overview diagram appears to have an inaccuracy.
  2. The changes to the data flow still need to be reflected in the corresponding data flow explanations in the relevant README file.

Note: I've yet to run the solution and send data through with these changes.

docs/data-flow-diagrams/ODE Data Flow Overview.drawio.png Outdated Show resolved Hide resolved
docs/data-flow-diagrams/ODE Data Flow Overview.drawio.png Outdated Show resolved Hide resolved
docs/data-flow-diagrams/bsm/BSM Data Flow.drawio.png Outdated Show resolved Hide resolved
docs/data-flow-diagrams/map/MAP Data Flow.drawio.png Outdated Show resolved Hide resolved
docs/data-flow-diagrams/spat/SPAT Data Flow.drawio.png Outdated Show resolved Hide resolved
docs/data-flow-diagrams/tim/TIM Data Flow.drawio.png Outdated Show resolved Hide resolved
Copy link
Member

@dmccoystephenson dmccoystephenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link

@Michael7371 Michael7371 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Locally tested and works for all Commsignia log files.

@dmccoystephenson dmccoystephenson mentioned this pull request Apr 12, 2024
6 tasks
Copy link

@payneBrandon payneBrandon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just the one question!

Copy link

@payneBrandon payneBrandon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@payneBrandon payneBrandon merged commit a5d7477 into dev Apr 16, 2024
4 checks passed
@payneBrandon payneBrandon deleted the udp-security-headers branch April 16, 2024 17:25
@drewjj drewjj restored the udp-security-headers branch April 19, 2024 21:14
@drewjj drewjj deleted the udp-security-headers branch April 19, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants