non7top / non7top/nginx-modules

Publish a real apt-cosign-verified apt repo (dists/stable/...), not just per-file releases

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
0
Forks
0
Avg merge
4h 21m
Merged PRs (30d)
1

Description

wr-salt-new is switching from direct `.deb` downloads (`pkg.installed(sources=...)`, sha256-pinned) to installing via `non7top/apt-cosign`'s `sigstore+https://` apt acquire method, so this repo needs to actually serve a real apt tree, not just per-file GitHub Releases.

Per apt-cosign's README ("Hosting a repo on raw.githubusercontent.com"):

  1. Build a real apt tree in this repo, e.g. `dists/stable/{InRelease,Packages,...}` - since this is a tiny, single-package repo, a lightweight hand-generated `Packages`/`InRelease` (or a small script) is probably enough; full `reprepro`/`aptly` is likely overkill but worth a quick look.
  2. In CI (after the existing per-OS `.deb` build), commit the built `.deb`(s) into the tree and regenerate `Packages`/`InRelease`.
  3. Sign `InRelease` with `apt-cosign-sign` (keyless, GitHub Actions OIDC - same `id-token: write` permission and identity this repo's workflow already uses for cosign signing), committing the resulting `InRelease.sigstore` alongside it.
  4. Consumers point at `sigstore+https://raw.githubusercontent.com/non7top/nginx-modules/refs/heads/main/dists/stable\` and configure `Enforce::Repo` (Owner=non7top, Name=nginx-modules, Pipeline=<this build workflow's filename>) in their apt-cosign policy.

Verify end-to-end (install via real `apt-get install`, not just `dpkg -i`) before wiring wr-salt-new's `ispconfig3/vts.sls` to it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing per-OS .deb build workflow and the apt-cosign README section on hosting a repository on raw.githubusercontent.com. Trace how the workflow currently builds and signs packages, then verify the dists/stable tree end to end with apt-get install before changing wr-salt-new/ispconfig3/vts.sls.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, linux
Domain
ci-cd, infrastructure, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.