Repository navigation
Description
Context
Even when packages exist, users must manually find and add the package repository before dnf install objectfs or apt install objectfs works. There is no curl-installable one-liner, no repo setup script, and no universal entry point. This is the last mile of the install experience.
What to implement
scripts/setup-repo-rhel.sh — adds objectfs repo to /etc/yum.repos.d/objectfs.repo:
[objectfs]
name=ObjectFS
baseurl=https://packages.objectfs.io/rpm/$releasever/$basearch/
gpgcheck=1
gpgkey=https://packages.objectfs.io/gpg.key
enabled=1Idempotent: check if file exists before writing.
scripts/setup-repo-debian.sh — adds signed apt source to /etc/apt/sources.list.d/objectfs.list. Downloads and installs GPG key to /usr/share/keyrings/objectfs-archive-keyring.gpg.
scripts/install.sh — universal entry point:
#!/usr/bin/env bash
detect_package_manager() { ... } # returns apt|dnf|yum|zypperDetects package manager, calls appropriate setup script, then installs objectfs package and enables the service. Idempotent throughout.
All three scripts must pass shellcheck. All three must be idempotent (running twice doesn't duplicate repo entries or reinstall unnecessarily).
Add CI job that runs scripts/install.sh inside Docker against:
ubuntu:24.04rockylinux:9opensuse/leap:15.6
(Use LocalStack or mock S3 endpoint to avoid real AWS dependency in CI.)
Acceptance criteria
curl -fsSL https://objectfs.io/install.sh | bashis the documented one-liner (scripts are ready for hosting even if not yet hosted)- All three scripts pass shellcheck
- CI job passes on all three distributions
- Running each script twice produces the same state
Sequencing
Independent — can land any time in v0.11.0.
Activity
scttfrdmn commentedon Aug 9, 2026
Scoping note: this issue specifies LocalStack, which this project rules out.
CLAUDE.md:130("Integration tests hit real AWS S3 (no LocalStack)") andCONTRIBUTING.md:189("Do not use LocalStack, and prefer not to write a mock") are both explicit, and #240 deleted an entiretests/integration/suite for targeting it. The issue text predates that decision.The replacement is
internal/testaws— the real S3 backend against an in-process substrate endpoint over real HTTP: no network, no credentials, no AWS account. For anything an emulator cannot answer, real AWS behind-tags=integrationwithAWS_PROFILE=aws AWS_REGION=us-west-2. A hand-written mock is the last resort, because a mock sits on the far side of a seam and agrees with its caller by construction — which is how 32,680 lines of tests missed roughly 45 defects.Whoever picks this up should substitute accordingly rather than following the issue body literally.
scttfrdmn commentedon Aug 9, 2026
Checked this against the tree and the network before starting, and two of its premises do not hold. Recording them here so the scope decision is visible rather than made silently in a PR.
1.
packages.objectfs.iodoes not exist, and neither doesobjectfs.ioas a web host.Both resolve to Porkbun parking IPs and neither completes a TLS handshake:
mkdocs.ymlalready records this for the apex domain, which is whysite_urlpoints at the repository. So thebaseurl, thegpgkeyURL, and thecurl -fsSL https://objectfs.io/install.sh | bashone-liner in the acceptance criteria all name addresses nothing serves.2. No release has ever published a
.debor an.rpm.make package-linuxandnfpm.yamlwork and CI'spackagingjob builds and installs both, butrelease.ymlcontains no reference topackage-linux,nfpm,.debor.rpm— it publishes fivetar.gzbinaries and their checksums, and nothing else. Confirmed against the published releases:So even with a repository host, there would be no package to serve from it.
nfpm.yamlsays this explicitly and deliberately: "Nobugs.url, no repository URL, and deliberately no reference to a package repository. There is no published apt or yum repository for ObjectFS; naming one here would put an address into every installed package's metadata that nothing serves."What that means for this issue. The acceptance criterion "scripts are ready for hosting even if not yet hosted" is the one part that can be honoured, but a repo-setup script whose
baseurlis a parked domain is not a script that is ready — it is a script that fails atdnf installwith a name-resolution error rather than a clear one, which is the same class of defect as the fabrications #148 and #152 turned up. And the CI job it asks for cannot pass: there is nothing at thebaseurlto install from, soinstall.shinsideubuntu:24.04has no package to fetch.Recommendation — split it, and do the deliverable half first. Two prerequisites are real work with real value and neither needs a domain:
.deband.rpmto releases.release.ymlgains apackage-linuxstep and uploads todist/. Small, entirely verifiable, and it meansdpkg -i objectfs_0.14.0_amd64.debfrom the releases page works — which is most of the install experience the issue is after, without a repository at all. Worth doing regardless of what happens to the rest.scripts/install.shdetecting the platform and installing a release artifact, from the GitHub releases API rather than a package repository. Checksum-verified, idempotent, shellcheck-clean, and testable in the three containers the issue names because it depends on nothing unhosted.The repo-setup scripts and the
curl | bashone-liner then become a separate issue blocked on a hosting decision — which is a question for @scttfrdmn, not something to answer in code: whether to stand uppackages.objectfs.io, or to use an existing host (Cloudsmith, Fury, a GitHub Pages apt/yum repo, COPR/OBS), or to stay with release artifacts and skip repositories entirely. Each of those makes the setup scripts look different, so writing them now means guessing.Not proceeding with any of it until the scope question is answered, since (1) and (2) are a different issue from the one filed.
feat(release): attach the .deb and .rpm nobody could obtain (#138) (#420
scttfrdmn commentedon Aug 9, 2026
Parts (a) and (b) are done. Part (c) is the one that needs a decision from you rather than code.
(a) — packages attached to releases. #420, merged. A
package-linuxjob builds the.deband.rpmfor amd64 and arm64,publishwaits on it, and the job reads the version back out of a built package withdpkg-deb --field— closing the gapnfpm.yaml's own comment names. Every release before this was ten assets, five tarballs and five checksums, with no packages:gh release view v0.13.0 --json assets --jq '[.assets[].name] | length'→10, same for v0.12.0 and v0.11.0.(b) —
scripts/install.sh. #421, open. Not the script specified here, because the spec'spackages.objectfs.iodoes not resolve to anything that serves TLS. Instead it downloads the release tarball for the running platform, verifies its SHA-256, and installs under~/.local/bin. Plus the CI job acrossubuntu:24.04,rockylinux:9,opensuse/leap:15.6, and a gate coupling the script'sunamemapping torelease.yml's asset names.Worth recording from (b), since it bears on how (c) should be built:
shellcheckwas clean and the local run worked, and the script still failed on two of the three images this issue names —ubuntu:24.04has neithercurlnorwget,opensuse/leap:15.6has neithertarnorgzip, and in both cases the error blamed the wrong thing (an unreachable GitHub API, a corrupt archive). Any repo-setup script written for (c) will hit the same class of problem, so it needs the same container matrix rather than shellcheck alone.(c) — the repository setup scripts and the
curl | bashone-liner. Blocked, and the blocker is not technical:curl: (35) LibreSSL/3.3.6: error:1404B410 … sslv3 alert handshake failureon both. Sosetup-repo-rhel.shandsetup-repo-debian.shcannot be written against thebaseurlandgpgkeythis issue specifies — there is nothing there to point at, and nothing to test against.There is also a GPG question underneath the hosting one, which the spec assumes away with
gpgcheck=1and agpg.keyURL. A package repository needs a signing key, and that means deciding where the private key lives (an Actions secret, a hardware token, a KMS), who can use it, and what the rotation story is. Note that the release tarballs are unsigned today too —install.shsays so explicitly rather than implying its checksum proves authenticity. A repo withgpgcheck=1and a key managed casually is weaker than it looks.Options, cheapest first:
apt install ./objectfs_*.debanddnf install ./objectfs-*.rpmagainst a downloaded release file, which now works. Zero infrastructure, no signing key, no domain. Costs thednf install objectfsexperience.aptandyumboth need only static files over HTTPS, andscttfrdmn.github.ioalready serves TLS. Free, no new domain, but the signing key is ours to manage andreprepro/createrepo_cmetadata has to be generated in the release workflow.packages.objectfs.io. Point the existing domain somewhere real. Most control, most work, and it still needs one of 2–4 behind it.My recommendation is (1) now and (3) or (2) when there is demand — the package files exist and are installable as of (a), which is most of the value, and (c) as specified buys the last mile at the cost of a signing key and a host. If you want a repository, (2) is the least work and (3) the least dependency.
Which way do you want to go? I will leave this issue open with (c) outstanding until then.
feat(install): a script that verifies what it downloads (#138) (#421)
feat(pages): serve the installer at objectfs.io/install.sh (#138) (#440)
docs: point the install one-liner at objectfs.io, and widen its gate (#…
scttfrdmn commentedon Aug 14, 2026
Part (c) decision is made and the first half is merged. Recording where this stands, plus one sequencing fact found while measuring rather than assumed.
Decided: GitHub Pages as the repository, signing key in an Actions secret
Per your answer: private signing subkey in an Actions secret, master key offline and never in CI, ~2-year subkey expiry, rotation documented. That is the least-dependency option that still gives
gpgcheck=1a real key behind it — noting the honest cost, which is that anyone with write access to workflows can exfiltrate a secret the workflow can read, so a compromise means rotate-and-re-sign rather than nothing.Merged: the one-liner in the acceptance criteria is now real
curl -fsSL https://objectfs.io/install.sh | bashanswers. #440 serves it, #441 points the docs at it.Verified against the deployed site rather than assumed — HTTP 200,
content-type: application/x-sh, byte-identical toscripts/install.sh, and the piped command resolving v0.13.0 for the running platform end to end. The docs were changed only after that measurement, because a documented URL that 404s is precisely the defect this issue's original spec contained.Served by copying
scripts/install.shat build time, not by committing a second copy underweb/. Every gate ininternal/configreadsscripts/install.sh, so a served copy that differed would be the file users run and the file nothing tests; the workflowcmps the two and a check refuses a committed duplicate.Worth recording: the first version of that gate named
README.mdandweb/index.html, passed, and missed three more surfaces documenting the same one-liner —docs/index.md,docs-platform/index.md,docs-platform/guide/getting-started.md. It now walks the tree with a floor on the match count. An enumerated list can only check the surfaces whoever wrote it already knew about, which is the same blindness that let four non-existent install channels survive ingetting-started.mdfor a year.Sequencing: there is nothing to index yet, and that is not a defect
The repository metadata has to be generated from packages that exist, and no release has a
.debor.rpmyet — including v0.13.0:The reason is benign and checkable: #420 added the
package-linuxjob atcbb73d0, merged 2026-08-09T21:16Z, and v0.13.0 was tagged atb92220a, 2026-08-09 04:07 local — about eleven hours earlier.git show v0.13.0:.github/workflows/release.yml | grep -c package-linux→0. So the job exists onmainand has simply never run for a tag. v0.14.0 will be the first release with packages attached, and therefore the first with anything for a repository to index.That is worth stating because it changes what "done" can mean here: the metadata generation can be built and unit-gated now, but the first end-to-end proof that
dnf install objectfsworks has to come from the v0.14.0 release, not from a PR.Two things the original spec gets wrong, and what replaces them
1. The metadata cannot be committed. Packages are release assets, not files in the tree, so
reprepro/createrepo_chave to run at Pages-build time against downloaded assets. And only one workflow can deploy Pages —pages.ymlowns thegithub-pagesenvironment — sorelease.ymlhas to trigger that deploy rather than publish its own site. A seconddeploy-pagesjob would race the first and the loser silently wins whichever ran last.2.
baseurlneeds a retention bound, and the spec has none. Measured: the four v0.13.0-equivalent packages are ~35 MB per release, and GitHub Pages has a 1 GB site limit with a soft 10-minute build timeout. Nineteen releases at that rate is ~670 MB and growing, so an unbounded repo hits the ceiling in roughly a year and the failure mode is a deploy that starts failing for reasons unrelated to whatever change triggered it. The repo will index the latest N releases with N stated in the workflow, and it willlogwhat it dropped — a silent truncation reads as "we index everything" when it does not.Building this next. It can only be verified in CI: Docker is unavailable in my local environment and
createrepo_chas no Homebrew formula, so the container matrix (ubuntu:24.04,rockylinux:9,opensuse/leap:15.6) is the only place the setup scripts can actually be run — which is the right place anyway, since #421's experience was that shellcheck-clean scripts still failed on two of those three images with errors that blamed the wrong thing.fix(ci): carry pages.yml's env block into the extracted repository step
fix(ci): stop writing workflow expressions inside comments, and gate it
feat(packaging): signed apt and yum repositories on Pages (#138) (#442)
scttfrdmn commentedon Aug 14, 2026
Part (c) is merged in #442. Where this issue now stands, measured against its acceptance criteria rather than described:
Done and verified live. All three scripts are served and byte-identical to the repository copies, checked just now against the deployed site:
scripts/objectfs.io/install.shobjectfs.io/setup-repo-debian.shobjectfs.io/setup-repo-rhel.shcurl -fsSL https://objectfs.io/install.sh | bashis the documented one-liner across all five surfaces that document an install, and a walk of the tree gates it so a sixth surface cannot quietly name a dead address. All three scripts pass shellcheck and are idempotent, asserted in CI rather than by hand.The CI job this issue asks for exists as
repo-install, and it goes further than "runs the scripts": it builds real signed apt and yum repositories usingpages.yml's own extracted steps — so the two copies cannot drift — and installs from them on all three distributions with verification on. Latest run, every assertion reporting rather than merely exiting 0:ubuntu:24.04— refused without a downloader (naming it), accepted the signed index, installed and ranobjectfs version 0.13.0, idempotent, refused an index signed by another key, package unreachable with the wrong keyrockylinux:9andopensuse/leap:15.6— installed and ran 0.13.0, the installed rpm is signed, idempotent, tampered metadata refusedNo LocalStack or mock S3, as the issue suggested: none is needed, since nothing here touches S3.
Two deviations from the spec, both deliberate. The addresses are
objectfs.io/aptandobjectfs.io/yum, notpackages.objectfs.io— that subdomain resolves (Porkbun answers a wildcard for the whole domain) and serves nothing, which is the failure mode that cannot be told from success without loading it. AndSigned-By:scopes the apt key to this repository only;rpm --importhas no equivalent, andsetup-repo-rhel.shsays so in its header rather than leaving the asymmetry implicit.What is left, and it is not code. The repositories are built, signed and verified in CI, but the deploy publishes them only when
secrets.GPG_SIGNING_KEYexists. Today's deploy off7d4dd6reported exactly that and published the docs and scripts without them:So
objectfs.io/aptandobjectfs.io/yumare 404 right now, on purpose. This is the correctness-capability rule from the project thesis: an unsigned repository is not a degraded version of a signed one, it is the thing both setup scripts are written to refuse, so the feature fails closed with an operator-facing reason instead of shipping something that installs fine until the day it matters.release.ymlfails closed for the same reason and in a harder way — it exits 1 without the secret, because an unsigned rpm installs fine from a downloaded file and fails atdnf installfor everyone who added the repository, which is the failure most likely to ship unnoticed. That makes the secret a blocker for the next release, not just for this issue.Leaving this open until the key exists, since closing it would claim two addresses serve something they do not.
scttfrdmn commentedon Sep 15, 2026
Decision: the repositories are built and will not be published
Closing out the last open part of this issue with a decision rather than more work. #491 implements it.
What this issue asked for, and where each part landed:
curl -fsSL https://objectfs.io/install.sh | bashscripts/install.shat deploy time, verified as a 200 of the exact bytessetup-repo-debian.sh/setup-repo-rhel.shubuntu:24.04,rockylinux:9andopensuse/leap:15.6on every PRobjectfs.io/aptandobjectfs.io/yumWhy (c) stops here. The code is written and verified end to end; the obstacle was never hosting or
the build. It is the signing key.
apt updaterefuses an unsigned repository and accepts one only whenit is marked
[trusted=yes], which turns authenticity off;gpgcheckis dnf's default. So an unsignedrepository is not a lesser version of a signed one — it is a repository nothing can install from.
Publishing means holding a key, keeping it out of reach, and rotating it for as long as anyone has the
repository configured. A key that goes stale is worse for those machines than no repository was, because
it leaves a trusted signer behind. That is an indefinite commitment, and it is not worth taking on for
this project's audience right now.
Worth noting for the record, since it came up: no release tool removes this. goreleaser does not
create or generate GPG keys — it signs with one you supply, and its defaults are archives plus
checksums.txtwith nosigns:block at all, which needs no key. It also generates no apt or yumrepository metadata in the OSS version; its hosted-repository answer is
furies:/Gemfury, which isPro-only and moves the key to a paid third party rather than eliminating it.
What ships instead. A
.deband an.rpmfor both architectures are attached to every release fromv0.14.0 onward, unsigned, with a published SHA-256 per asset.
install.shverifies the tarball's and hasno flag to skip it;
apt install ./file.debanddnf install ./file.rpmcheck the package's owndigests.
apt upgradewill not reach ObjectFS, and all five documentation surfaces now say so plainlyrather than advertising a one-liner that runs, fetches a signing key that 404s, and fails there.
Nothing was removed.
pages.ymlstill builds and signs both repositories whenever a key is present,both setup scripts stay,
nfpm.yamlkeeps its signature block, andci.yml'srepo-installjob keepsconstructing both repositories against a throwaway key and installing from them in all three containers
on every PR — including asserting that a tampered index is refused. Turning this on is one repository
secret and nothing else, and that stays true only while the path stays tested.
Two gates hold the decision in place:
TestTheDormantRepositoriesAreNotDocumentedwalks every.mdand.htmlin the tree and fails on any page naming a repository address, andTestTheRPMSigningPathStaysIntactrequires the absent-key branch to warn and skip rather than eitherfailing the release or going quiet. The first is a one-way gate on purpose — a test cannot read whether a
secret exists — and its doc comment says to delete it first when a repository is published again.
Recommend closing once #491 merges: (a) and (b) are delivered and (c) is a decision, not unfinished work.
feat(packaging): leave the package repositories dormant, unpublished (#…
scttfrdmn commentedon Sep 15, 2026
Closed: the work landed in #491.
scripts/setup-repo-debian.sh,scripts/setup-repo-rhel.shand the universalscripts/install.shall exist and are exercised by CI. The
repo-installjob builds both repositories against athrowaway key and installs from them in
ubuntu:24.04,rockylinux:9andopensuse/leap:15.6,including refusing a tampered index; the three
install-scriptrows coverinstall.shon the samethree images.
What #491 changed is the publish decision, not the code. The repositories are built and tested but
deliberately not published, so nothing points apt or dnf at an address that would 404. Releases carry
.deband.rpmfiles as attached assets instead, which is the stated requirement. Publishing lateris one repository secret away, and
internal/config/served_repositories_test.gopins the dormantstate so it cannot drift back silently.