Please do not report security vulnerabilities through public GitHub issues.
Report privately via GitHub's Security Advisories ("Report a vulnerability"). Include a description, affected package(s) and version(s), reproduction steps, and impact. You will receive an acknowledgement within 14 days, and we will coordinate a fix and disclosure timeline with you.
Because this is a security-relevant identity library, please give us a reasonable window to release a fix before any public disclosure.
Until the first stable (1.0.0) release the project is pre-release: every plan that ships is a 0.x.y release, and
only the newest release is supported. Once GA, security fixes target the newest patch of each supported major.minor
line; see GOVERNANCE.md for the release-line model.
Packages are built deterministically and source-linked to this public repository (ADR-1003); a maintainer publishes a release's packages to nuget.org, which signs each package it accepts. From the first stable release the packages are also signed and RFC-3161 timestamped by the project (#184). Verify a downloaded package with:
dotnet nuget verify path/to/NCode.Identity.<version>.nupkgWhile the repository is public, the Tag and publish release workflow signs each release tag with gitsign, through Sigstore's keyless signing, so no signing key exists to leak. With gitsign installed, check a tag in a clone of the repository:
gitsign verify-tag --certificate-identity https://github.com/NCodeGroup/identity/.github/workflows/tag-release.yml@refs/heads/main --certificate-oidc-issuer https://token.actions.githubusercontent.com <tag>Releases stay mutable, so publish-image.yml can attach each release's image.json and publish-chart.yml its
chart.json.
Each container image of a release, ncode-identity-host, ncode-identity-management-console and
ncode-identity-directory, is built in CI from the tagged commit for linux/amd64 and linux/arm64, checked, scanned
with Grype, and pushed by .github/workflows/publish-image.yml to the GitHub container registry as one index,
ghcr.io/ncodegroup/<image>:<version>, a tag that is never pushed again;
docker buildx imagetools inspect ghcr.io/ncodegroup/<image>:<version> lists its platforms. The release's image.json
lists each image with the index's digest and each platform's. Each digest is attested and signed:
gh attestation verify oci://ghcr.io/ncodegroup/<image>@<digest> --repo NCodeGroup/identity checks that this
repository's workflows built it from the tagged commit, the same command with
--predicate-type https://spdx.dev/Document/v2.3 checks its software bill of materials, and this command checks its
cosign signature, as Flux, Kyverno and Sigstore's policy controller do:
cosign verify ghcr.io/ncodegroup/<image>@<digest> --certificate-identity-regexp '^https://github\.com/NCodeGroup/identity/\.github/workflows/publish-image\.yml@refs/tags/v' --certificate-oidc-issuer https://token.actions.githubusercontent.comEach Helm chart of a release, ncode-identity-host and ncode-identity-directory, is packaged in CI from the tagged
commit at the release's version, which is also its appVersion, and pushed by .github/workflows/publish-chart.yml to
the GitHub container registry as oci://ghcr.io/ncodegroup/charts/<chart>, a version that is never pushed again, once
every image of the release is recorded. The release's chart.json lists each chart with its digest. Each digest is
attested and signed: the first command checks that this repository's workflows built it from the tagged commit, and the
second checks its cosign signature:
gh attestation verify oci://ghcr.io/ncodegroup/charts/<chart>@<digest> --repo NCodeGroup/identity
cosign verify ghcr.io/ncodegroup/charts/<chart>@<digest> --certificate-identity-regexp '^https://github\.com/NCodeGroup/identity/\.github/workflows/publish-chart\.yml@refs/tags/v' --certificate-oidc-issuer https://token.actions.githubusercontent.comA release's OpenAPI document, ghcr.io/ncodegroup/openapi/ncode-identity-host, is signed and attested by
.github/workflows/publish-openapi.yml: check it with the same gh attestation verify command and with:
cosign verify ghcr.io/ncodegroup/openapi/ncode-identity-host:<version> --certificate-identity-regexp '^https://github\.com/NCodeGroup/identity/\.github/workflows/publish-openapi\.yml@refs/tags/v' --certificate-oidc-issuer https://token.actions.githubusercontent.comThe correct-by-default posture is a security feature: there is no public API to disable issuer / audience / signature / lifetime / algorithm validation, or to weaken a security control below its safe baseline. A report that such a control can be bypassed through the public surface is in scope.