Skip to content

chore(migrate): migrate Errata Tool client from SBOMer classic#54

Open
jonathanchristison wants to merge 1 commit intosbomer-project:mainfrom
jonathanchristison:et-adapter-impl-from-sbomer-classic-squash
Open

chore(migrate): migrate Errata Tool client from SBOMer classic#54
jonathanchristison wants to merge 1 commit intosbomer-project:mainfrom
jonathanchristison:et-adapter-impl-from-sbomer-classic-squash

Conversation

@jonathanchristison
Copy link
Copy Markdown
Contributor

This commit ports the initial Errata Tool client implementation and supporting infrastructure from the SBOMer "classic" codebase.

In this commit:

  • Core Migration:
    • Ported Kerberos support and custom HTTP exception handling.
    • Added Quarkus dependencies for restclient and kerberos.
    • Enabled SmallRye Fault Tolerance for external service resilience.
    • Adjusted package structures and imports to match the current project.
    • Implemented the initial fetchBuilds endpoint in ErrataToolService.
  • Test Infrastructure:
    • Added a script (hack/anonymize-test-data.sh) to help sanitize future test payloads.
    • Replaced some generated mock data with real-world Erratum examples (Advisories: 155577, 157587, 157826, 152887, 157751).
    • Shifted away from QuarkusTest in several instances to reduce test execution overhead.
    • Note: Testing currently covers basic advisory types and is intended as a starting point.

Source Reference:

  • Ported from SBOMer classic at commit: f1c3bca

@jonathanchristison jonathanchristison force-pushed the et-adapter-impl-from-sbomer-classic-squash branch 2 times, most recently from 4fdde2b to 5225315 Compare January 28, 2026 17:34
This commit ports the initial Errata Tool client implementation and supporting
infrastructure from the SBOMer "classic" codebase.

In this commit:
* **Core Migration:**
    * Ported Kerberos support and custom HTTP exception handling.
    * Added Quarkus dependencies for `restclient` and `kerberos`.
    * Enabled SmallRye Fault Tolerance for external service resilience.
    * Adjusted package structures and imports to match the current project.
    * Implemented the initial `fetchBuilds` endpoint in `ErrataToolService`.
* **Test Infrastructure:**
    * Added a script (`hack/anonymize-test-data.sh`) to help sanitize future test payloads.
    * Replaced some generated mock data with real-world Erratum examples (Advisories: 155577,
	157587, 157826, 152887, 157751).
    * Shifted away from `QuarkusTest` in several instances to reduce test execution overhead.
    * Note: Testing currently covers basic advisory types and is intended as a starting point.

Source Reference:
* Ported from SBOMer classic at commit: [f1c3bca](https://github.com/sbomer-project/sbomer/tree/f1c3bca62becee57dedbdcd4105f56d395cfff7c)
@jonathanchristison jonathanchristison force-pushed the et-adapter-impl-from-sbomer-classic-squash branch from 5225315 to 71af9ec Compare March 9, 2026 11:30
@jonathanchristison jonathanchristison requested a review from a team March 9, 2026 11:31
@jonathanchristison jonathanchristison marked this pull request as ready for review March 9, 2026 11:31
Copy link
Copy Markdown
Collaborator

@mertbugrabicak mertbugrabicak left a comment

Choose a reason for hiding this comment

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

LGTM and approving, but just wanted to mention that I don't see any changes for it in the helm chart, so would these changes currently work nicely in Minikube?

Also after merging I can maybe help get those test files into wiremock endpoints to be served

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.

2 participants