Skip to content

build: ship third-party licences and notices with Sigyll - #34

Merged
JoeShook merged 1 commit into
mainfrom
third-party-notices
Nov 10, 2026
Merged

JoeShook merged 1 commit into
mainfrom
third-party-notices

Conversation

@JoeShook

@JoeShook JoeShook commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Sigyll redistributes its NuGet packages in the container image. Their licences ask for the copyright notice, the licence text and, for Apache-2.0, any NOTICE file to travel with them; nothing carried them. This generates THIRD-PARTY-NOTICES.txt at build time and puts it where Sigyll is distributed.

How

  • tools/third-party-notices/ThirdPartyNotices.cs (a single-file .NET program, no dependencies) reads a published application's deps.json, so the list is exactly what ships, at the versions that ship. Nothing is committed that could go stale, and dependency updates need no manual step.
  • For each package: licence, copyright and source; the notice files it includes (NOTICE, THIRD-PARTY-NOTICES); and its licence text. Identical texts appear once, with the packages they apply to.
  • Texts come from the packages themselves. A package with no licence file gets the standard text for its SPDX identifier from licences/ (Apache-2.0, MIT, BSD-3-Clause, PostgreSQL). The run fails when a licence text can't be found, so a new dependency can't ship without one.

Where it ends up

  • Image: both Dockerfiles run it after publish: /app/THIRD-PARTY-NOTICES.txt, plus Sigyll's own /app/LICENSE. CI and the release workflow refuse an image without them.
  • CI: one file covering all three applications, with the portal's bundled Bootstrap, uploaded beside the BOMs.
  • Release: the same file attached to the GitHub release, with a checksum.

Checked

  • Local run over the three published applications: 92 packages, 8 notice files, 12 distinct licence texts.
  • docker build -f Sigyll/Dockerfile: the image contains both files (72 packages for Sigyll alone), including Pkcs11Interop's notice.
  • A package missing from the package folder fails the run with exit code 1.

Not covered

  • The .NET runtime and Ubuntu packages in the base image carry their own licence files there.
  • The PostgreSQL licence text is the standard wording, not Npgsql's own file (the package doesn't include one).

🤖 Generated with Claude Code

https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As

Sigyll redistributes its NuGet packages in the container image, and
their licences ask for the copyright notice, the licence text and (for
Apache-2.0) any NOTICE file to travel with them. Nothing carried them.

tools/third-party-notices/ThirdPartyNotices.cs writes
THIRD-PARTY-NOTICES.txt from a published application's deps.json, so it
lists exactly what ships at the versions that ship: each package's
licence and copyright, the notice files packages include, and each
distinct licence text once. Texts come from the packages themselves; a
package without a licence file gets the standard text for its SPDX
identifier from licences/. The run fails when a licence text can't be
found.

Both Dockerfiles run it after publish, so the image holds
/app/THIRD-PARTY-NOTICES.txt and Sigyll's own LICENSE, and CI and the
release workflow refuse an image without them. CI also writes one file
covering all three applications (with the portal's bundled Bootstrap)
beside the BOMs, and a release attaches it with a checksum.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015WNuLiokmqeoddhdh8X3As
@JoeShook
JoeShook deleted the branch pkcs11-provider November 10, 2026 20:20
@JoeShook JoeShook closed this Nov 10, 2026
@JoeShook JoeShook reopened this Nov 10, 2026
@JoeShook
JoeShook changed the base branch from pkcs11-provider to main November 10, 2026 20:20
@JoeShook
JoeShook merged commit d7db9bf into main Nov 10, 2026
9 checks passed
@JoeShook
JoeShook deleted the third-party-notices branch November 10, 2026 20:26
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.

1 participant