Release on the forge: NuGet from macula-sdk, and both workflows on the forge runner #2

Open
opened 2026-11-24 03:10:32 +00:00 by pallas · 0 comments
Member

Purpose (port): macula-dotnet's two workflows run on git.macula.io's own runner, and a v* tag publishes Macula to the forge's NuGet registry under the public org macula-sdk — nothing that needs nuget.org, a NuGet API key, or a GitHub-hosted runner.

Refs macula-io/forge-setup#30 (section 4, step 5, "dotnet: dotnet nuget push --api-key from the secret, in place of NuGet/login"). DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign".

What comes across

ci.yml (structural lint of the interop capture helper, the four-OS test matrix, the C# doc blocks, the advisory scan) and release.yml (the release guard, the doc blocks and advisories again on the tag, then publish).

The rulings from the rust, php and go ports apply unchanged: runs-on: docker, the forge image by digest with the org's pull credential, plain-shell checkout, local stand-ins for the three ci-images reusables, the macOS and Windows jobs guarded if: github.server_url == 'https://github.com' and named open here, publishing gated on the event being a tag push, and a dispatch that proves the graph and publishes nothing.

How the push authenticates, proven against the forge (not only a stand-in)

dotnet nuget push --api-key <token> --source https://git.macula.io/api/packages/macula-sdk/nuget/index.json sends the token in an X-NuGet-ApiKey header, as a multipart PUT to the PackagePublish resource. Captured from the real client, then checked against this forge:

  • without a token: 401 reqPackageAccess;
  • with a member token that has no package write on the org: 401 Unauthorized at the client, so the request reaches the package-auth gate rather than a 404;
  • with a token on an org where the account does have access and a deliberately malformed body: 500, i.e. past authentication and into the parser.

So the header form works with the bare token this forge's secrets hold (a bare token in an Authorization header is what the forge refuses, and dotnet does not send one). Not proven, and named: a 201. That needs the sdk-publisher account (menu item), so the first tag is its proof.

Open points

  1. The package can only carry linux-x64 natives. scripts/fetch_libmacula.sh takes libmacula for five runtimes from macula-go's release, and scripts/check_package.sh refuses a package missing any of them. This forge builds only linux-x64 (macula-go#2's open point), so a package published from here carries one runtime and its consumers on Windows, macOS and arm64 get nothing usable. That is a product decision, not a port detail — it is named here for the Supervisor's menu, and check_package.sh will name the missing runtimes in every run until a runner or a published set for the other four exists.
  2. libmacula.version names v0.31.0, which is not in the public package yet. The generic package is filled by macula-go's ported release, and no tag has been cut through it. Until one is, fetch_libmacula.sh finds nothing to fetch and says which version it asked for.
  3. No build-provenance attestation. gh attestation verify goes with GitHub; SHA256SUMS from the same package is what a consumer checks.
  4. macOS and Windows have no forge runner: those legs are guarded and stay on GitHub.
  5. The .NET SDK is not in the house CI image. It comes from Microsoft's own tarball, pinned by version and sha512 in the workflow, the way Go comes from go.dev's.

Done when

  1. Every job in the two workflows is runs-on: docker on the forge's image by digest with the pull credential; no GitHub-hosted runner is named outside a guarded job.
  2. The macOS and Windows jobs are guarded on github.server_url and named open here.
  3. The three ci-images reusables are local stand-ins, byte for byte below a STAND-IN header.
  4. actionlint is clean and .github/actionlint.yaml declares the docker label.
  5. A workflow_dispatch of release on main runs the whole graph and stops before the push.
  6. On a v* tag the package is published to macula-sdk's NuGet feed and read back over the anonymous index; this one waits for the sdk-publisher account and for a libmacula version that exists in the public package.
Purpose (port): macula-dotnet's two workflows run on git.macula.io's own runner, and a `v*` tag publishes `Macula` to the forge's NuGet registry under the public org `macula-sdk` — nothing that needs nuget.org, a NuGet API key, or a GitHub-hosted runner. Refs macula-io/forge-setup#30 (section 4, step 5, "dotnet: `dotnet nuget push --api-key` from the secret, in place of `NuGet/login`"). DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign". ## What comes across `ci.yml` (structural lint of the interop capture helper, the four-OS test matrix, the C# doc blocks, the advisory scan) and `release.yml` (the release guard, the doc blocks and advisories again on the tag, then publish). The rulings from the rust, php and go ports apply unchanged: `runs-on: docker`, the forge image by digest with the org's pull credential, plain-shell checkout, local stand-ins for the three ci-images reusables, the macOS and Windows jobs guarded `if: github.server_url == 'https://github.com'` and named open here, publishing gated on the event being a tag push, and a dispatch that proves the graph and publishes nothing. ## How the push authenticates, proven against the forge (not only a stand-in) `dotnet nuget push --api-key <token> --source https://git.macula.io/api/packages/macula-sdk/nuget/index.json` sends the token in an `X-NuGet-ApiKey` header, as a multipart PUT to the `PackagePublish` resource. Captured from the real client, then checked against this forge: - without a token: `401 reqPackageAccess`; - with a member token that has no package write on the org: `401 Unauthorized` at the client, so the request reaches the package-auth gate rather than a 404; - with a token on an org where the account does have access and a deliberately malformed body: `500`, i.e. past authentication and into the parser. So the header form works with the bare token this forge's secrets hold (a bare token in an `Authorization` header is what the forge refuses, and dotnet does not send one). Not proven, and named: a `201`. That needs the `sdk-publisher` account (menu item), so the first tag is its proof. ## Open points 1. **The package can only carry linux-x64 natives.** `scripts/fetch_libmacula.sh` takes libmacula for five runtimes from macula-go's release, and `scripts/check_package.sh` refuses a package missing any of them. This forge builds only `linux-x64` (macula-go#2's open point), so a package published from here carries one runtime and its consumers on Windows, macOS and arm64 get nothing usable. **That is a product decision, not a port detail** — it is named here for the Supervisor's menu, and `check_package.sh` will name the missing runtimes in every run until a runner or a published set for the other four exists. 2. **`libmacula.version` names `v0.31.0`, which is not in the public package yet.** The generic package is filled by macula-go's ported release, and no tag has been cut through it. Until one is, `fetch_libmacula.sh` finds nothing to fetch and says which version it asked for. 3. **No build-provenance attestation.** `gh attestation verify` goes with GitHub; `SHA256SUMS` from the same package is what a consumer checks. 4. **macOS and Windows** have no forge runner: those legs are guarded and stay on GitHub. 5. **The .NET SDK** is not in the house CI image. It comes from Microsoft's own tarball, pinned by version and sha512 in the workflow, the way Go comes from go.dev's. ## Done when 1. Every job in the two workflows is `runs-on: docker` on the forge's image by digest with the pull credential; no GitHub-hosted runner is named outside a guarded job. 2. The macOS and Windows jobs are guarded on `github.server_url` and named open here. 3. The three ci-images reusables are local stand-ins, byte for byte below a STAND-IN header. 4. `actionlint` is clean and `.github/actionlint.yaml` declares the `docker` label. 5. A `workflow_dispatch` of `release` on main runs the whole graph and stops before the push. 6. On a `v*` tag the package is published to `macula-sdk`'s NuGet feed and read back over the anonymous index; this one waits for the `sdk-publisher` account and for a libmacula version that exists in the public package.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-io/macula-dotnet#2
No description provided.