Skip to content

[hotfix-0.1353] fix(sbom): Do not pollute database with stale SBoM blobs (#889)#890

Merged
8R0WNI3 merged 1 commit into
open-component-model:hotfix-0.1353from
8R0WNI3:hotfix-0.1353
Jul 16, 2026
Merged

[hotfix-0.1353] fix(sbom): Do not pollute database with stale SBoM blobs (#889)#890
8R0WNI3 merged 1 commit into
open-component-model:hotfix-0.1353from
8R0WNI3:hotfix-0.1353

Conversation

@8R0WNI3

@8R0WNI3 8R0WNI3 commented Jul 16, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:
SBoMs can be re-generated, however the technical digest used to reference the blobs is not stable. This leads to a situation where regeneration updates the referenced digest, but does not clean up the old blob, effectively polluting the database and letting it grow in size.

As a mitigation, introduce an explicit overwrite codepath which tackles deletion. Optionally, skip regeneration in case an SBoM exists for the artefact already (can be detected as OCM artefact identities are used instead of the technical blob referenece).

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

SBoM generator can no longer create stale SBoM blobs, leading to growing database size

…ent-model#889)

SBoMs can be re-generated, however the technical digest used to
reference the blobs is not stable. This leads to a situation where
regeneration updates the referenced digest, but does not clean up the old
blob, effectively polluting the database and letting it grow in size.

As a mitigation, introduce an explicit overwrite codepath which tackles
deletion. Optionally, skip regeneration in case an SBoM exists for the
artefact already (can be detected as OCM artefact identities are used
instead of the technical blob referenece).

Signed-off-by: Philipp Heil (zkdev) <philipp.heil@sap.com>
@8R0WNI3 8R0WNI3 self-assigned this Jul 16, 2026
@8R0WNI3
8R0WNI3 requested a review from a team as a code owner July 16, 2026 09:03
@8R0WNI3 8R0WNI3 added kind/task small task, normally part of feature or epic area/cicd Continuous Integration and Continuous Deployment related labels Jul 16, 2026
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7b06e6fa-4776-494e-8bf0-d48d02f51c8b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@8R0WNI3
8R0WNI3 merged commit df5755e into open-component-model:hotfix-0.1353 Jul 16, 2026
8 of 9 checks passed
@8R0WNI3
8R0WNI3 deleted the hotfix-0.1353 branch July 16, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cicd Continuous Integration and Continuous Deployment related kind/task small task, normally part of feature or epic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants