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

Add protobuf serializers and schemas for vulnerability analysis domain #337

Merged
merged 8 commits into from
Feb 21, 2023

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Feb 20, 2023

This PR adds an initial draft of Protobuf schemas for use with the vulnerability analyzer, along with some serialization logic.

Custom serialization logic was needed, as the official Protobuf serializers require use of a schema registry, which we decided to not use for now.

Both serialization logic and generated Java classes reside in the new proto module, which is intended to be used by modules within the Hyades project. Applications living outside this repo are intended to pick the .proto files they're interested in (e.g. vuln-analysis_v1.proto), and generate the corresponding code by themselves.

In later PRs, existing code in vulnerability-analyzer and mirror-service will be updated to use these schemas.

Relates to #244

Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

95.1% 95.1% Coverage
0.0% 0.0% Duplication

@mehab mehab merged commit 5c39b7a into main Feb 21, 2023
@nscuro nscuro deleted the issue-244 branch March 7, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants