<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v" -->

---
title: Misc Learnings: SBOMs, Provenance and Attestations
description: A developer building CNPG-Extensions, a project hosting Postgres extensions restricted by CNCF's licensing policies, shares hands-on lessons from a couple...
canonical: https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Misc Learnings: SBOMs, Provenance and Attestations | daily.dev
og:description: A developer building CNPG-Extensions, a project hosting Postgres extensions restricted by CNCF's licensing policies, shares hands-on lessons from a couple...
og:url: https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v
og:image: https://api.daily.dev/og/posts/PcvxkHL1v.png
og:image:alt: Misc Learnings: SBOMs, Provenance and Attestations
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Misc Learnings: SBOMs, Provenance and Attestations

**[Planet PostgreSQL](https://daily.dev/sources/planet-postgresql)** · 7 min read · 0 upvotes · 0 comments

## Summary

A developer building CNPG-Extensions, a project hosting Postgres extensions restricted by CNCF's licensing policies, shares hands-on lessons from a couple weeks of implementing SBOMs, provenance, and attestations. Covers Renovate auto-update pitfalls (mismatched SQL versions, unwanted beta/rc promotions), a comparison of Cosign/Sigstore versus GitHub Artifact Attestations (with a note that GitHub's may be paywalled behind Enterprise for repo mirroring), syft's incomplete Debian license detection, workarounds using CodeScan, slow cargo-about/cargo-cyclonedx builds causing six-hour CI timeouts, and several Trivy bugs (Cargo.lock workspace parsing, missed git-only deps) discovered while generating SBOMs for pgrx/Rust-based extensions. Closes with reflections on trust, maintenance responsibility, the OpenSSF Scorecard, and how AI agents change (and don't change) the fundamentals of maintaining software.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://postgr.es/p/9un>

## Questions this post answers

### Does GitHub Artifact Attestations have any limitations compared to Cosign for signing container attestations?

GitHub Artifact Attestations may have some functionality paywalled behind GitHub Enterprise, particularly around use cases like mirroring repositories. This was discovered via a GitHub Issue on the ParadeDB project after initially trying to switch from Cosign to GitHub Artifact Attestations, prompting a migration back to Cosign for signing.

_Anyone weighing Cosign against GitHub Artifact Attestations for signing can track real-world tradeoffs like this on daily.dev._

### Why does the default Docker SBOM generated by buildkit miss license information for Debian packages?

Docker/moby buildkit uses syft to generate SBOMs, and syft has open issues detecting licenses for a large number of Debian packages, so the default SBOM ends up missing significant license info. One workaround involves adding CodeScan as a supplementary license scanner, splitting oversized license files into chunks when CodeScan crashes on them.

_Developers debugging incomplete SBOM license data can follow tooling gaps like this on daily.dev._

### Can Trivy correctly parse Cargo.lock files for Rust workspace projects when generating an SBOM?

Older Trivy versions, including 0.66.0, have bugs preventing correct parsing of Cargo.lock files that use Rust workspaces, so the latest Trivy version is required. Even the newest Trivy release still misses git-only dependencies, and Trivy cannot emit CONTAINS records in an SPDX SBOM, requiring syft as a supplement for that purpose.

_Teams generating Rust SBOMs with Trivy can stay ahead of parsing bugs like this via daily.dev._

## Similar posts on daily.dev

- [Agents Gone Awry on Postgres SBOMs: Start Over](https://daily.dev/posts/agents-gone-awry-on-postgres-sboms-start-over-saxdpveyt) · Planet PostgreSQL · 1 upvotes · 0 comments
- [SBOM Generation for Container Workflows](https://daily.dev/posts/sbom-generation-for-container-workflows-nctydjhq9) · Docker · 4 upvotes · 0 comments
- [How SBOMs and Engineering Discipline Can Help You Avoid Trivy’s Compromise](https://daily.dev/posts/how-sboms-and-engineering-discipline-can-help-you-avoid-trivy-s-compromise-c6zqbaibq) · InfoQ · 0 upvotes · 0 comments
- [Why are SBOMs failing to stop supply chain attacks?](https://daily.dev/posts/why-are-sboms-failing-to-stop-supply-chain-attacks--ggyykwmq1) · Sysdig Blog · 0 upvotes · 0 comments
- [Codenotary updates its free SBOM scanning tool with capabilities that better support AI apps](https://daily.dev/posts/codenotary-updates-its-free-sbom-scanning-tool-with-capabilities-that-better-support-ai-apps-xpdpqgvfa) · SD Times · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#postgresql](https://daily.dev/tags/postgresql), [#sbom](https://daily.dev/tags/sbom)

[View this post on daily.dev](https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Misc Learnings: SBOMs, Provenance and Attestations","url":"https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v"},"datePublished":"2026-09-12T04:49:27.003Z","dateModified":"2026-09-12T04:50:39.883Z","description":"A developer building CNPG-Extensions, a project hosting Postgres extensions restricted by CNCF's licensing policies, shares hands-on lessons from a couple...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c82c8f6577b1790dc06f1e66cd51753e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c82c8f6577b1790dc06f1e66cd51753e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Planet PostgreSQL","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet PostgreSQL","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/planet-postgresql"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,postgresql,sbom","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet PostgreSQL","item":"https://daily.dev/sources/planet-postgresql"},{"@type":"ListItem","position":3,"name":"Misc Learnings: SBOMs, Provenance and Attestations"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/misc-learnings-sboms-provenance-and-attestations-pcvxkhl1v#faq","mainEntity":[{"@type":"Question","name":"Does GitHub Artifact Attestations have any limitations compared to Cosign for signing container attestations?","acceptedAnswer":{"@type":"Answer","text":"GitHub Artifact Attestations may have some functionality paywalled behind GitHub Enterprise, particularly around use cases like mirroring repositories. This was discovered via a GitHub Issue on the ParadeDB project after initially trying to switch from Cosign to GitHub Artifact Attestations, prompting a migration back to Cosign for signing. Anyone weighing Cosign against GitHub Artifact Attestations for signing can track real-world tradeoffs like this on daily.dev."}},{"@type":"Question","name":"Why does the default Docker SBOM generated by buildkit miss license information for Debian packages?","acceptedAnswer":{"@type":"Answer","text":"Docker/moby buildkit uses syft to generate SBOMs, and syft has open issues detecting licenses for a large number of Debian packages, so the default SBOM ends up missing significant license info. One workaround involves adding CodeScan as a supplementary license scanner, splitting oversized license files into chunks when CodeScan crashes on them. Developers debugging incomplete SBOM license data can follow tooling gaps like this on daily.dev."}},{"@type":"Question","name":"Can Trivy correctly parse Cargo.lock files for Rust workspace projects when generating an SBOM?","acceptedAnswer":{"@type":"Answer","text":"Older Trivy versions, including 0.66.0, have bugs preventing correct parsing of Cargo.lock files that use Rust workspaces, so the latest Trivy version is required. Even the newest Trivy release still misses git-only dependencies, and Trivy cannot emit CONTAINS records in an SPDX SBOM, requiring syft as a supplement for that purpose. Teams generating Rust SBOMs with Trivy can stay ahead of parsing bugs like this via daily.dev."}}]}
```

